Task #7330
CN.updateSystemMetadata should fail with InvalidRequest when changing immutable fields.
Start date:
2015-09-08
Due date:
% Done:
100%
Milestone:
None
Product Version:
*
Story Points:
Sprint:
Description
There are a few CN.updateSystemMetadata() calls that need to fail with an InvalidRequest exception but aren't.
Details:
The tests are using CN.updateSystemMetadata(), calling it with a modified sysmeta field that should not be modifiable, expecting an InvalidRequest.
These are the tests / fields they try to modify / and the results:
testUpdateSystemMetadata_InvalidRequest_ModifiedIdentifier() - attempts to change the pid in sysmeta Fails with a different exception: ServiceFailure: 0000: <no message> testUpdateSystemMetadata_InvalidRequest_ModifiedSubmitter() - attempts to change the submitter in sysmeta Test should have failed (?) but didn't. testUpdateSystemMetadata_InvalidRequest_ModifiedOriginMN() - attempts to change the origin MN in sysmeta Test should have failed (?) but didn't.
More detailed output here:
http://jenkins-1.dataone.org/jenkins/view/Integration%20Testing/job/d1_integration_DEV_cn_v2/188/testReport/
History
#1 Updated by Jing Tao about 9 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
- translation missing: en.field_remaining_hours set to 0.0
We modified some checking and it works now.