Task #7065
Story #6723: test v2 MN and CN buildouts
Create functional tests for v2 SystemMetadata updating use cases.
100%
Description
With the MN now in charge of the system metadata, we added MN.updateSystemMetadata(), CN.synchronize(), and CN.updateSystemMetadata().
Write functional tests to make sure a metadata change triggers the expected updates.
Subtasks
History
#1 Updated by Rob Nahf over 9 years ago
- Assignee set to Rob Nahf
- Description updated (diff)
Tests:
1. MN.updateSystemMetadata - rightsholders can update mutable fields
2. MN.updateSystemMetadata - rightsholders cannot update immutable fields
3. MN.updateSystemMetadata - serial version does not matter
4. MN.updateSystemMetadata - non-rightsHolders cannot update
5. MN.updateSystemMetadata - rightsHolders cannot update on non-authoritative MN
6. CN.synchronize - can only be called by authMN or rightHolders(?)
7. CN.updateSystemMetadata - can only be called by CNs
8. CN.synchronize - actually synchronizes the sysmeta (or new unsynced object)
9. CN.updateSystemMetadata - does update the systemMetadata tables.
#2 Updated by Andrei Buium over 9 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
Tests are all written and need to be tested against the actual implementations.
(Except CN.synchronize() for now. That is tested as an MN.updateSystemMetadata() consequence, but not by itself since it would require MN certs.)
#3 Updated by Rob Nahf about 9 years ago
- Assignee changed from Rob Nahf to Andrei Buium
#4 Updated by Andrei Buium about 9 years ago
- Status changed from In Progress to Closed
- % Done changed from 30 to 100
All sub-tasks are closed, closing this task. Tests for CN.synchronize and v2 updateSystemMetadata are working properly and passing against current trunk implementation.