3 8{| 7} 7~   7 7 7     7    7  7  ( ( . . 7 8(Lorg/dataone/integration/ContextAwareTestCaseDataone;)VCodeLineNumberTableLocalVariableTablethisZLorg/dataone/integration/it/testImplementations/CNUpdateSystemMetadataTestImplementations;catc5Lorg/dataone/integration/ContextAwareTestCaseDataone;getCallAdapterg(Lorg/dataone/service/types/v1/Node;Ljava/lang/String;)Lorg/dataone/integration/adapters/CNCallAdapter;node#Lorg/dataone/service/types/v1/Node;versionLjava/lang/String;(testUpdateSystemMetadata_NotAuthorizedMN)(Ljava/util/Iterator;Ljava/lang/String;)V nodeIteratorLjava/util/Iterator;LocalVariableTypeTable9Ljava/util/Iterator; StackMapTable SignatureN(Ljava/util/Iterator;Ljava/lang/String;)VRuntimeVisibleAnnotations-Lorg/dataone/integration/webTest/WebTestName;valueNupdateSystemMetadata - tests if the call fails with any MN certificate subject4Lorg/dataone/integration/webTest/WebTestDescription;this test calls updateSystemMetadata() with an MN certificate subject and expects a NotAuthorized exception to be thrown since this call is CN-to-CN only8(Lorg/dataone/service/types/v1/Node;Ljava/lang/String;)V3testUpdateSystemMetadata_NotAuthorized_RightsHolderfupdateSystemMetadata - tests that the updateSystemMetadata call fails with a rights holder certificatethis test calls updateSystemMetadata() using an object's rights-holder as the certificate subject to update the metadata, checks that the call fails since this should only work for a CN accessRule)Lorg/dataone/service/types/v1/AccessRule;pid)Lorg/dataone/service/types/v1/Identifier; testObjPidsysmeta-Lorg/dataone/service/types/v2/SystemMetadata;newSerialVersionLjava/math/BigInteger;e.Lorg/dataone/service/exceptions/BaseException;Ljava/lang/Exception; cnCallAdapter4Lorg/dataone/integration/adapters/CommonCallAdapter;rightsHolderCallAdapter currentUrltestUpdateSystemMetadata_CNWupdateSystemMetadata - tests that the updateSystemMetadata call works with a CN callingthis test calls updateSystemMetadata() using a certificate with a coordinating node subject to update the metadata, checks that the call was successful, then also uses getSystemMetadata() to fetch the new metadata and check that for updated dateSysMetadataModifiedsuccessZ callAdapterk(Lorg/dataone/service/types/v1/Node;Ljava/lang/String;)Lorg/dataone/integration/adapters/CommonCallAdapter; SourceFile.CNUpdateSystemMetadataTestImplementations.java 9:.org/dataone/integration/adapters/CNCallAdapter G 9 !org/dataone/service/types/v1/Node HW XW BCtestRightsHolder java/lang/StringBuilder 95testUpdateSystemMetadata_RightsHolder(...) vs. node:    'org/dataone/service/types/v1/Identifier&testUpdateSystemMetadata_RightsHolder_ @A   c NupdateSystemMetadata call should fail for a connection with non-CN certificate ,org/dataone/service/exceptions/NotAuthorized,org/dataone/service/exceptions/BaseException  : java/lang/Exception rW,testUpdateSystemMetadata_CN_(...) vs. node: testUpdateSystemMetadata_CN_4Call to updateSystemMetadata() should be successful. Xorg/dataone/integration/it/testImplementations/CNUpdateSystemMetadataTestImplementationsVorg/dataone/integration/it/testImplementations/UpdateSystemMetadataTestImplementationsjava/lang/String2org/dataone/integration/adapters/CommonCallAdapter cnSubmitter getSessionA(Ljava/lang/String;)Lorg/dataone/client/rest/MultipartRestClient;e(Lorg/dataone/client/rest/MultipartRestClient;Lorg/dataone/service/types/v1/Node;Ljava/lang/String;)Vjava/util/IteratorhasNext()Znext()Ljava/lang/Object; getBaseURL()Ljava/lang/String;()Vappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;toStringprintTestHeader(Ljava/lang/String;)VgetNodeBaseServiceUrl'org/dataone/service/types/v1/PermissionCHANGE_PERMISSION)Lorg/dataone/service/types/v1/Permission;$org/dataone/integration/APITestUtilsbuildAccessRulef(Ljava/lang/String;Lorg/dataone/service/types/v1/Permission;)Lorg/dataone/service/types/v1/AccessRule;(org/dataone/integration/ExampleUtilitiesgenerateIdentifiersetValue3org/dataone/integration/ContextAwareTestCaseDataoneprocureTestObject(Lorg/dataone/integration/adapters/CommonCallAdapter;Lorg/dataone/service/types/v1/AccessRule;Lorg/dataone/service/types/v1/Identifier;)Lorg/dataone/service/types/v1/Identifier;getSystemMetadata~(Lorg/dataone/service/types/v1/Session;Lorg/dataone/service/types/v1/Identifier;)Lorg/dataone/service/types/v2/SystemMetadata;+org/dataone/service/types/v2/SystemMetadatagetSerialVersion()Ljava/math/BigInteger;java/math/BigIntegerONEadd.(Ljava/math/BigInteger;)Ljava/math/BigInteger;setSerialVersion(Ljava/math/BigInteger;)VupdateSystemMetadata(Lorg/dataone/service/types/v1/Session;Lorg/dataone/service/types/v1/Identifier;Lorg/dataone/service/types/v2/SystemMetadata;)ZgetLatestRequestUrl handleFail'(Ljava/lang/String;Ljava/lang/String;)Vjava/lang/ObjectgetClass()Ljava/lang/Class;java/lang/Class getSimpleNamegetDetail_codegetDescriptionprintStackTracegetName getMessageorg/junit/Assert assertTrue(Ljava/lang/String;Z)V!78 9:;>*+< =>?@ABC;PY**+,<= >?DEFGHI;}+*+, <& '(= >?JKFGL JMNOPQRSsTUSsVHW;?<K= >?DEFGXI;}+*+, <R ST= >?JKFGL JMNOPQRSsYUSsZXW;e "*+, NY* +,:+ :*Y-: :Y:Y*-:-:   !:   " #W*$%&w:r:*$Y)*+,+-&5:/*$Y)0+1&<'<(<.<bXYZ[6\<_F`Oaibwdefhirjrlmropq!s= Fd[\O[]^w3_^*`a bc 8de0df">?"DE"FGgh ihjGN'klmnnmoDp|q1rI;}+*+,2<| }~= >?JKFGL JMNOPQRSssUSstrW; *+, N+ :*Y3-:*:Y:Y4*-:-:-#6 5 6n:*-$Y)*+,+-&2:/*Y)0+1&+(+.<N %+7@Zhq|=z 7L[\@C]^h_^q`a|uv 7de-df>?DEFGwh jGN klmnmp{q.DBx;1*+, <= >?yz