File tree Expand file tree Collapse file tree
plugins/repository-s3/src/test/java/org/opensearch/repositories/s3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1713,7 +1713,7 @@ public void testExecuteMultipartUploadConditionallyPreconditionFailed() {
17131713 Exception exception = capturedException .get ();
17141714 assertNotNull ("Expected an exception to be captured" , exception );
17151715 assertTrue ("Exception should be an OpenSearchException" , exception instanceof OpenSearchException );
1716- assertEquals ("stale_primary_shard " , exception .getMessage ());
1716+ assertEquals ("Precondition Failed : Etag Mismatch " , exception .getMessage ());
17171717
17181718 verify (client ).createMultipartUpload (any (CreateMultipartUploadRequest .class ));
17191719 verify (client ).completeMultipartUpload (any (CompleteMultipartUploadRequest .class ));
@@ -1839,7 +1839,7 @@ public void testExecuteMultipartUploadConditionallyS3ExceptionTypes() {
18391839
18401840 if ("S3Exception" .equals (exceptionType ) && statusCode == 412 ) {
18411841 assertTrue (listenerException instanceof OpenSearchException );
1842- assertEquals ("stale_primary_shard " , (( OpenSearchException ) listenerException ) .getMessage ());
1842+ assertEquals ("Precondition Failed : Etag Mismatch " , listenerException .getMessage ());
18431843 } else {
18441844 assertTrue (listenerException instanceof IOException );
18451845 }
You can’t perform that action at this time.
0 commit comments