Skip to content

Commit

Permalink
Fix IT class
Browse files Browse the repository at this point in the history
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
  • Loading branch information
xuezhou25 committed Oct 14, 2022
1 parent 8c9c280 commit 0b6b827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ public void testClusterUpdateSettingNonExistent() {
highLevelClient().cluster()::putSettingsAsync
)
);
assertThat(exception.status(), equalTo(RestStatus.BAD_REQUEST));
assertThat(exception.status(), equalTo(RestStatus.INTERNAL_SERVER_ERROR));
assertThat(
exception.getMessage(),
equalTo("OpenSearch exception [type=illegal_argument_exception, reason=transient setting [" + setting + "], not recognized]")
equalTo("OpenSearch exception [type=invalid_argument_exception, reason=transient setting [" + setting + "], not recognized]")
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ public void testIndexPutSettings() throws IOException {
assertThat(
exception.getMessage(),
startsWith(
"OpenSearch exception [type=illegal_argument_exception, "
"OpenSearch exception [type=invalid_argument_exception, "
+ "reason=final index setting [index.number_of_shards], not updateable"
)
);
Expand Down Expand Up @@ -1471,7 +1471,7 @@ public void testIndexPutSettingNonExistent() throws IOException {
highLevelClient().indices()::putSettingsAsync
)
);
assertThat(exception.status(), equalTo(RestStatus.BAD_REQUEST));
assertThat(exception.status(), equalTo(RestStatus.INTERNAL_SERVER_ERROR));
assertThat(
exception.getMessage(),
equalTo(
Expand Down

0 comments on commit 0b6b827

Please sign in to comment.