Revision 6751
Added by ben leinfelder almost 13 years ago
test/edu/ucsb/nceas/metacattest/OnlineDataAccessTest.java | ||
---|---|---|
484 | 484 |
insertDocid(newdocid + ".1", testdocument, SUCCESS, false); |
485 | 485 |
m.logout(); |
486 | 486 |
|
487 |
// check if the permissions were set properly |
|
487 |
// check if the permissions were set properly, permission is per-revision
|
|
488 | 488 |
m.login(anotheruser, anotherpassword); |
489 |
readDocid(onlineDocid + ".1", SUCCESS, false);
|
|
489 |
readDocid(onlineDocid + ".1", FAILURE, true);
|
|
490 | 490 |
readDocid(onlineDocid + ".2", SUCCESS, false); |
491 | 491 |
m.logout(); |
492 | 492 |
|
... | ... | |
563 | 563 |
|
564 | 564 |
// check if the permissions were set properly |
565 | 565 |
m.login(anotheruser, anotherpassword); |
566 |
readDocid(onlineDocid + ".1", SUCCESS, false);
|
|
566 |
readDocid(onlineDocid + ".1", FAILURE, true);
|
|
567 | 567 |
readDocid(onlineDocid + ".2", SUCCESS, false); |
568 | 568 |
m.logout(); |
569 | 569 |
|
Also available in: Unified diff
Metacat now keeps track of permissions on a per-version basis -- the test reflects this change in behavior.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5560