Test Documentation

Environment: default
Test Session: default

Test: 12323

Description: R.b Folder lastUpdateTime
Profile: XDS

This test verifies that the registry properly sets the XDSFolder.lastUpdateTime attribute.

Sections

no_time - submit folder with no lastUpdateTime attribute

has_time - submit folder with lastUpdateTime attribute (old date)

verify_no_submission_time - use GetFolder stored query to retrieve folder from no_time step. Verify the XDSFolder.lastUpdateTime attribute shows today's date.

verify_has_submission_time - use GetFolder stored query to retrieve folder from has_time step. Verify the XDSFolder.lastUpdateTime attribute shows today's date.

add_to_folder - submit a new DocumentEntry adding it to the folder submitted in step has_time

verify_time_updated - use GetFolder stored query to verify that XDSFolder.lastUpdateTime was updated by the add_to_folder step. Your ability to pass this step depends on how you test and the precision of XDSFolder.lastUpdateTime in your implementation. The XD* profiles do not specify the time precision. If you only support time precision to the minute and you run step add_to_folder a few seconds after step has_time then XDSFolder.lastUpdateTime will not show any change. You will have to wait a minute or two before running this step to show that your Registry manages this attribute correctly. If you support a 1 second granularity or better then the automatic running of this test will probably work fine for you.

rplc - replace document submitted in step add_to_folder. This must update the lastUpdateTime on the folder

verify_time_updated_by_rplc - verify the rplc step did update lastUpdateTime on the folder


Section no_time

Transaction: no_time

Submit empty Folder with no lastUpdateTime attribute
Target Actor: XDS
Transaction: Register
Expected Status in Response: Success

Additional Evaluation


Section verify_no_submission_time

Transaction: getFolder

Get Folder
Target Actor: XDS
Transaction: Stored Query
Expected Status in Response: Success

Additional Evaluation

Verify contents: Metadata contains 0 SubmissionSets
Verify contents: Metadata contains 0 Associations
Verify contents: Metadata contains 0 DocumentEntries
Verify contents: Metadata contains 1 Folders

Validation: verify_has_todays_date

Verify folder submitted has today's date
Expected Status in Response:

Additional Evaluation

Verify contents:

Section has_time

Transaction: has_time

Submit folder with lastUpdateTime
Target Actor: XDS
Transaction: Register
Expected Status in Response: Success

Additional Evaluation


Section verify_has_submission_time

Transaction: verify_has_time_submission

Verify folder submitted in has_time section has today's date
This submission had an old time that must be overwritten by the Registry
Target Actor: XDS
Transaction: Stored Query
Expected Status in Response: Success

Additional Evaluation

Verify contents: Metadata contains 0 SubmissionSets
Verify contents: Metadata contains 0 Associations
Verify contents: Metadata contains 0 DocumentEntries
Verify contents: Metadata contains 1 Folders

Section add_to_folder

Transaction: add_to_folder

Add DocumentEntry to Folder
Target Actor: XDS
Transaction: Register
Expected Status in Response: Success

Additional Evaluation


Section verify_time_updated

Transaction: verify_time_updated

Get Folder
Target Actor: XDS
Transaction: Stored Query
Expected Status in Response: Success

Additional Evaluation

Verify contents: Metadata contains 0 SubmissionSets
Verify contents: Metadata contains 1 Associations
Verify contents: Metadata contains 1 DocumentEntries
Verify contents: Metadata contains 1 Folders

Validation: validation

Verify folder lastUpdatedTime has been updated with DocumentEntry addition
Expected Status in Response:

Additional Evaluation

Verify contents:

Section rplc

Transaction: rplc

Submit replacement DocumentEntry. Original DocumentEntry is in Folder
Target Actor: XDS
Transaction: Register
Expected Status in Response: Success

Additional Evaluation


Section verify_time_updated_by_rplc

Transaction: getFolder

Issue a GetFolders query
Target Actor: XDS
Transaction: Stored Query
Expected Status in Response: Success

Additional Evaluation

Verify contents: Metadata contains 0 SubmissionSets
Verify contents: Metadata contains 0 Associations
Verify contents: Metadata contains 0 DocumentEntries
Verify contents: Metadata contains 1 Folders

Validation: verify_time_updated_by_rplc

Verify Folder lastUpdatedTime was updated by document replace
Expected Status in Response:

Additional Evaluation

Verify contents: