Skip to content

Commit

Permalink
Fix failing tests and correct error string
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Bansal <bansvaru@amazon.com>
  • Loading branch information
linuxpi committed Apr 10, 2023
1 parent 4fef117 commit e02f7d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void testRemoteStoreOverrideSegmentRepoIndexSettingsIllegalArgumentExcept
assertThat(
exc.getMessage(),
containsString(
"Settings index.remote_store.repository can only be set/enabled when index.remote_store.translog.enabled is set to true"
"Settings index.remote_store.repository can only be set/enabled when index.remote_store.enabled is set to true"
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private static void validateRemoteStoreSettingEnabled(final Map<Setting<?>, Obje
throw new IllegalArgumentException(
"Settings "
+ setting.getKey()
+ " can ont be set/enabled when "
+ " can only be set/enabled when "
+ INDEX_REMOTE_STORE_ENABLED_SETTING.getKey()
+ " is set to true"
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ public void testEnablingRemoteTranslogStoreFailsWhenRemoteSegmentDisabled() {
() -> IndexMetadata.INDEX_REMOTE_TRANSLOG_STORE_ENABLED_SETTING.get(indexSettings)
);
assertEquals(
"Settings index.remote_store.translog.enabled can ont be set/enabled when index.remote_store.enabled is set to true",
"Settings index.remote_store.translog.enabled can only be set/enabled when index.remote_store.enabled is set to true",
iae.getMessage()
);
}
Expand Down Expand Up @@ -936,7 +936,7 @@ public void testSetRemoteRepositoryFailsWhenRemoteStoreIsNotEnabled() {
() -> IndexMetadata.INDEX_REMOTE_STORE_REPOSITORY_SETTING.get(indexSettings)
);
assertEquals(
"Settings index.remote_store.repository can ont be set/enabled when index.remote_store.enabled is set to true",
"Settings index.remote_store.repository can only be set/enabled when index.remote_store.enabled is set to true",
iae.getMessage()
);
}
Expand Down

0 comments on commit e02f7d3

Please sign in to comment.