Project

General

Profile

« Previous | Next » 

Revision 2328

Added by sgarg about 20 years ago

Fixed a bug.

View differences:

test/edu/ucsb/nceas/metacattest/OnlineDataAccessTest.java
350 350

  
351 351
            m.login(username, password);
352 352

  
353
            // delete the document - should not be able to delete .1
354
            // but should be able to delete .2
355
            deleteDocid(onlineDocid + ".1", FAILURE, false);
356
            deleteDocid(onlineDocid + ".2", SUCCESS, false);
353
            // delete the document - able to delete .1
354
            // but not able to delete .2 as no rules 
355
	    // written to access table when a document 
356
	    // is 'uploaded'
357
            deleteDocid(onlineDocid + ".1", SUCCESS, false);
358
            deleteDocid(onlineDocid + ".2", FAILURE, true);
357 359

  
358 360
            // try to read the documents now
359 361
            readDocid(onlineDocid + ".1", FAILURE, false);
......
425 427

  
426 428
            // delete the document - should not be able to delete .1
427 429
            // but should be able to delete .2
428
            deleteDocid(onlineDocid + ".1", FAILURE, false);
430
            deleteDocid(onlineDocid + ".1", FAILURE, true);
429 431
            deleteDocid(onlineDocid + ".2", FAILURE, true);
430 432

  
431 433
            m.logout();

Also available in: Unified diff