3t fVW XY Z[ \] ^_ `a bc d ef ghi Vj k l mnopqr s t uv uwx y z{ "|} ~ " '  ) )  *   7V 7  " >V  C  > GV   K      U U U U )  "    g'  "     q q  x x | "  | ()VCodeLineNumberTableLocalVariableTablethisILorg/dataone/integration/it/testImplementations/SidMNTestImplementations;getTestDescription()Ljava/lang/String;getNodeIterator()Ljava/util/Iterator; Signature;()Ljava/util/Iterator; getSetupClassO()Lorg/dataone/integration/it/testImplementations/SidCommonTestImplementations;getCasesToTest()[I getPidsPerSid setupMNCase1IdPair InnerClasses(Lorg/dataone/integration/adapters/CommonCallAdapter;Lorg/dataone/service/types/v1/Node;)Lorg/dataone/integration/it/testImplementations/SidCommonTestImplementations$IdPair; callAdapter4Lorg/dataone/integration/adapters/CommonCallAdapter;node#Lorg/dataone/service/types/v1/Node;p1)Lorg/dataone/service/types/v1/Identifier;s1 Exceptions setupMNCase2p2 setupMNCase3s2 setupMNCase4 setupMNCase5 setupMNCase6 setupMNCase7p3 setupMNCase8 setupMNCase9 setupMNCase10 setupMNCase11 setupMNCase12 setupMNCase13 setupMNCase14 setupMNCase15setupResourcePkgMNCase1setupResourcePkgMNCase2setupResourcePkgMNCase3setupResourcePkgMNCase4setupResourcePkgMNCase5setupResourcePkgMNCase6setupResourcePkgMNCase7setupResourcePkgMNCase8setupResourcePkgMNCase9setupResourcePkgMNCase10setupResourcePkgMNCase11setupResourcePkgMNCase12setupResourcePkgMNCase13setupResourcePkgMNCase14setupResourcePkgMNCase15testGetPackagee1Ljava/lang/Exception;manifest#Lgov/loc/repository/bagit/Manifest;filepathLjava/lang/String;sess&Lorg/dataone/service/types/v1/Session;format5Lorg/dataone/service/types/v1/ObjectFormatIdentifier; bagFactory%Lgov/loc/repository/bagit/BagFactory; sidBagFileLjava/io/File;sidBagLgov/loc/repository/bagit/Bag; sidFilePathsLjava/util/List; manifestIterLjava/util/Iterator; pidBagFilepidBag pidFilePathspidManifestIter contentsEqualZe.Lorg/dataone/service/exceptions/BaseException;0Lorg/dataone/integration/adapters/MNCallAdapter;idPairTLorg/dataone/integration/it/testImplementations/SidCommonTestImplementations$IdPair;sidpidformatIDsidPkgLjava/io/InputStream;pidPkg setupMethodLjava/lang/reflect/Method;nodeItercaseNumILocalVariableTypeTable$Ljava/util/List;9Ljava/util/Iterator;9Ljava/util/Iterator; StackMapTablenrx]iRuntimeVisibleAnnotations-Lorg/dataone/integration/webTest/WebTestName;valueEgetPackage: tests that getPackage() works whether given a sid and pid4Lorg/dataone/integration/webTest/WebTestDescription;this test checks that calling getPackage() with a sid and with the pid that's the head of that sid chain, then compares the resulting InputStreams for equalityLorg/junit/Test; testUpdatenodeCapnewPid contentBytes[Bd1o$Lorg/dataone/client/v1/itk/D1Object;sysmeta-Lorg/dataone/service/types/v2/SystemMetadata;objectInputStreamir/Lorg/dataone/service/exceptions/InvalidRequest;invalidRequestCaughtnodeId,Lorg/dataone/service/types/v1/NodeReference;i casesToTest[I?Eupdate: tests that update fails if given a SID's head PID is archived^this test checks that calling update with a SID doesn't work if the head PID has been archivedtestSystemMetadataChanged8systemMetadataChanged: ... test not yet implemented ... " ... test not yet implemented ... Lorg/junit/Ignore; testSidReuse6Lorg/dataone/service/exceptions/InvalidSystemMetadata;qsid reuse not allowedthis test checks that reusing a sid in a pid chain yields an InvalidSystemMetadata exception if the chain containing that sid has beenended (obsoleted by another sid). Scenario: P1(S1) <-> P2(S2) <-> P3(S1)testSidReuseDiffChainp4s3,sid reuse not allowed - different pid chainsthis test checks that reusing a sid, even in a different pid chain, yields an InvalidSystemMetadata exception if the chain containing that sid has been ended (obsoleted by another sid). Scenario: P1(S1) <-> P2(S2), separate chain: P3(S3) <-> P4(S1) SourceFileSidMNTestImplementations.java 7Tests v2 API methods for MNs that accept SID parameters  P1_   S1_   Rorg/dataone/integration/it/testImplementations/SidCommonTestImplementations$IdPair P2_ S2_ P3_   Testing getPackage() method ...  java/lang/StringBuilderTesting getPackage(), Case   Gorg/dataone/integration/it/testImplementations/SidMNTestImplementationssetupResourcePkgMNCasejava/lang/Class2org/dataone/integration/adapters/CommonCallAdapter!org/dataone/service/types/v1/Node    !".org/dataone/integration/adapters/MNCallAdapter # $%v2 &java/lang/Object '(java/lang/Exceptionjava/lang/AssertionError ) Case:  : *+ , - ./   03org/dataone/service/types/v1/ObjectFormatIdentifierapplication/bagit-097 12testRightsHolder3 $4 56#gov/loc/repository/bagit/BagFactory sidBagit..zip 78java/io/FileOutputStream 9: ;< =>java/util/ArrayList ?@ A!gov/loc/repository/bagit/Manifest B CD pidBagit.  EFgetPackage() Case 8, getPackage for sid and pid should return same content.G HI JK,org/dataone/service/exceptions/BaseException L M NTesting update() method ... Testing update(), Case OP QR ST,Unable to fetch node identifier for node at U VW setupMNCasetestUpdate unable to set up : Korg/dataone/integration/it/testImplementations/SidCommonTestImplementationsX YZ [update() Case A, setup step failed for testUpdate(): couldn't archive(). Error: P9_3org/dataone/integration/ContextAwareTestCaseDataone"eml://ecoinformatics.org/eml-2.0.1\ ]^"org/dataone/client/v1/itk/D1Object_ `a bcbogusAuthoritativeNode de f gh+org/dataone/service/types/v2/SystemMetadatai jk lT mnjava/io/ByteArrayInputStream o pq-org/dataone/service/exceptions/InvalidRequest3, an exception occurred while trying to update() : 7, InvalidRequest expected on update of archived object.+Testing systemMetadataChanged() method ... %Testing systemMetadataChanged(), CaseCase: rstestSidReuse() method ... *testSidReuse() : unable to set up test! : testSidReuse() : should not be able to reuse a sid in a pid chain if it was used earlier but obsoleted by another sid! However, the update() call succeeded. Scenario: P1(S1) <-> P2(S2) <-> P3(S1)4org/dataone/service/exceptions/InvalidSystemMetadata@testSidReuse() : yielded an exception on update() as expected : PtestSidReuseDiffChain() : expected an InvalidSystemMetadata exception but got : #testSidReuseDiffChain() method ... P4_S3_3testSidReuseDiffChain() : unable to set up test! : testSidReuseDiffChain() : should not be able to reuse a sid in a different pid chain if it was used in another pid chain and obsoleted by a different sid! However, the update() call succeeded. Scenario: P1(S1) <-> P2(S2), P3(S3) <-> P4(S1)ItestSidReuseDiffChain() : yielded an exception on update() as expected : +org/dataone/service/exceptions/InvalidToken-org/dataone/service/exceptions/ServiceFailure,org/dataone/service/exceptions/NotAuthorized2org/dataone/service/exceptions/IdentifierNotUnique.org/dataone/service/exceptions/UnsupportedType4org/dataone/service/exceptions/InsufficientResources-org/dataone/service/exceptions/NotImplemented'org/dataone/service/exceptions/NotFound0org/dataone/client/exception/ClientSideException&java/security/NoSuchAlgorithmException java/lang/InstantiationException java/lang/IllegalAccessException+java/lang/reflect/InvocationTargetExceptionjava/io/IOException+org/dataone/exceptions/MarshallingExceptionjava/lang/NoSuchMethodExceptionjava/lang/reflect/Methodjava/util/Iteratorjava/lang/String'org/dataone/service/types/v1/Identifierjava/io/InputStream$org/dataone/service/types/v1/Session java/io/Filegov/loc/repository/bagit/Bagjava/util/Listjava/lang/Throwablejava/lang/SecurityException"java/lang/IllegalArgumentException*org/dataone/service/types/v1/NodeReferencegetV2MemberNodeIteratorcreateIdentifier`(Ljava/lang/String;Lorg/dataone/service/types/v1/Node;)Lorg/dataone/service/types/v1/Identifier;createTestObject(Lorg/dataone/integration/adapters/CommonCallAdapter;Lorg/dataone/service/types/v1/Identifier;Lorg/dataone/service/types/v1/Identifier;Lorg/dataone/service/types/v1/Identifier;Lorg/dataone/service/types/v1/Identifier;)Lorg/dataone/service/types/v1/Identifier;U(Lorg/dataone/service/types/v1/Identifier;Lorg/dataone/service/types/v1/Identifier;)VupdateTestObject(Lorg/dataone/integration/adapters/CommonCallAdapter;Lorg/dataone/service/types/v1/Identifier;Lorg/dataone/service/types/v1/Identifier;Lorg/dataone/service/types/v1/Identifier;)Lorg/dataone/service/types/v1/Identifier;deletez(Lorg/dataone/service/types/v1/Session;Lorg/dataone/service/types/v1/Identifier;)Lorg/dataone/service/types/v1/Identifier; createPackagelog Lorg/apache/commons/logging/Log;org/apache/commons/logging/Loginfo(Ljava/lang/Object;)Vappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;(I)Ljava/lang/StringBuilder;toStringgetDeclaredMethod@(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;hasNext()Znext()Ljava/lang/Object; subjectLabel getSessionA(Ljava/lang/String;)Lorg/dataone/client/rest/MultipartRestClient;e(Lorg/dataone/client/rest/MultipartRestClient;Lorg/dataone/service/types/v1/Node;Ljava/lang/String;)Vinvoke9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;getNodeBaseServiceUrlgetClass()Ljava/lang/Class; getSimpleName getMessagegetCause()Ljava/lang/Throwable;headPidsetValue(Ljava/lang/String;)V+org/dataone/client/rest/MultipartRestClient'()Lorg/dataone/client/auth/X509Session; getPackage(Lorg/dataone/service/types/v1/Session;Lorg/dataone/service/types/v1/ObjectFormatIdentifier;Lorg/dataone/service/types/v1/Identifier;)Ljava/io/InputStream;createTempFile4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;(Ljava/io/File;)Vorg/apache/commons/io/IOUtilscopy.(Ljava/io/InputStream;Ljava/io/OutputStream;)I createBag.(Ljava/io/File;)Lgov/loc/repository/bagit/Bag;getTagManifests()Ljava/util/List;iterator getFilepathadd(Ljava/lang/Object;)Z containsAll(Ljava/util/Collection;)Zorg/junit/Assert assertTrue(Ljava/lang/String;Z)V closeQuietly(Ljava/io/InputStream;)VprintStackTracegetDetail_codegetDescriptiongetCapabilities%()Lorg/dataone/service/types/v1/Node; getIdentifier.()Lorg/dataone/service/types/v1/NodeReference; setIdentifier/(Lorg/dataone/service/types/v1/NodeReference;)V getBaseURLerror*(Ljava/lang/Object;Ljava/lang/Throwable;)Vjava/lang/Threadsleep(J)Varchive(org/dataone/integration/ExampleUtilitiesgetExampleObjectOfType(Ljava/lang/String;)[B)org/dataone/client/v1/types/D1TypeBuilderbuildFormatIdentifierI(Ljava/lang/String;)Lorg/dataone/service/types/v1/ObjectFormatIdentifier; buildSubject:(Ljava/lang/String;)Lorg/dataone/service/types/v1/Subject;buildNodeReference@(Ljava/lang/String;)Lorg/dataone/service/types/v1/NodeReference;(Lorg/dataone/service/types/v1/Identifier;[BLorg/dataone/service/types/v1/ObjectFormatIdentifier;Lorg/dataone/service/types/v1/Subject;Lorg/dataone/service/types/v1/NodeReference;)VgetSystemMetadata/()Lorg/dataone/service/types/v1/SystemMetadata;(org/dataone/service/types/v2/TypeFactoryconvertTypeFromType7(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;setAuthoritativeMemberNode setObsoletes,(Lorg/dataone/service/types/v1/Identifier;)V([B)Vupdate(Lorg/dataone/service/types/v1/Session;Lorg/dataone/service/types/v1/Identifier;Ljava/io/InputStream;Lorg/dataone/service/types/v1/Identifier;Lorg/dataone/service/types/v2/SystemMetadata;)Lorg/dataone/service/types/v1/Identifier; handleFail'(Ljava/lang/String;Ljava/lang/String;)V!f)/*4 -8 /*@ ,*E 2 YOI tJ YOYOYOYOYOYOYOYOYOY OY OY OY OY OYON J'*,N*,:*+-WY- YZ\^4'''$<*,N* ,:*,:*+-W*+- WY ijkm%n0p><<<4+"$D*,N* ,:*,:* ,:*+-W*+- WY- {|}~#.9HDDD<3*#!$E*,N* ,:*,:* ,:*+-W*+- WY #.9HEEE=4+#"$L*,N* ,:*,:* ,:*+-W*+- W+- WY "#.9@HLLLD;2#)$L*,N* ,:*,:* ,:*+-W*+- W+ WY- "#.9AHLLLD;2#)$R*,N* ,:*,:*,:*+-W*+- W*+ WY "#/:FHRRRJA8#/$Z*,N* ,:*,:*,:*+-W*+- W*+ W+ WY & #/:FNHZZZRI@#7$Z*,N* ,:*,:*,:*+-W*+- W*+ W+ WY & #/:FNHZZZRI@#7$[*,N* ,:*,:*,:* ,:*+-W*+- W*+ WY &   # , 8COR[[[SJA#8,/$[*,N* ,:*,:*,:* ,:*+-W*+- W*+ WY & # ,"8#C$O&R[[[SJA#8,/$b*,N* ,:*,:*,:* ,:*+-W*+- W*+ W+ WY- * 1234#5,788C9O:W<RbbbZQH#?,6$c*,N* ,:*,:*,:* ,:*+-W*+- W*+ W+ WY * GHIJ#K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E -TYbm!*147CP]fmv(1;>DJUrw| '.6 9? 8s (1 C/ f vwn`U_ E m!*  4 7 T Y  3  @ 4n`Y  LDP  !"+7 !" !"+@ #`F$ %&'()s*+)s,-.'G[*\L=+2+.>Y]:*: !:"Y;$%&::^:  _:`&: Yab cYdYSYS:  *'YSYS(:F:  Z*YYe+- ./- 045: 6: gi jW): Ykl 0S6 *m: op: qY  or#stuv:wxyx:z {|Y }:  ~WF: 6 >: Yk ./- 0S ZYk Sαj)):IL)uu)< 69 ?!I"U#g$j(q)x*.+,-,2384567,:3;:?@@IDLANBeCoBrFuIJKLMNOPQRS[TV[WXYXZ ]=^@F`q/ !  A N$ [0 T12 734(56789 9 Ugj3  : u: %  9;<? 5= G8>? ?  @-AB @A"CB @A%j @ABG:@'()sC+)sD-E *\L=++.>Y*: !:"Y#$%&:YdYSYS:*'YSYS(:5: 6: 3:Z*+Y-0U$e)Rg ijkl6n<oFpRqestuvjp '  .Re  < = >? < 4@*z@/'!()sF+)sGH)sG-I ,*L+ +!MY#$,%N*,:* ,:*,:*,:* ,:*-W*- W4: *YY ./- 04*- W*Y4: Y ./- 4: *YY ./- 04`y|))r "3<ENW`my|~ (+z ~/ /J / "3<ENW`,   Dl K0ULs0'()sM+)sN-O K*L+ 5+!MY#$,%N*,:* ,:*,:*,:*,:* ,: *,: *-W*- W*- W4: *YY ./- 04*- W*Y4: Y ./- 4: *YY ./- 04ȱr))~ "3<ENW`ir*GJ/ /J / "%3< ENWP`i rQ K<  < J K0ULs0'()sR+)sS-TU f