Skip to content

Commit 99b81ae

Browse files
committed
Fix IndexSettingsTests
Updated the asserts in IndexSettingsTests to account for the new defaulting behavior. Signed-off-by: Kartik Ganesh <[email protected]>
1 parent 4339244 commit 99b81ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/test/java/org/opensearch/index/IndexSettingsTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -974,10 +974,10 @@ public void testExtendedCompatibilityVersionForNonRemoteSnapshot() {
974974
);
975975
IndexSettings settings = new IndexSettings(metadata, Settings.EMPTY);
976976
assertFalse(settings.isRemoteSnapshot());
977-
assertNull(settings.getExtendedCompatibilitySnapshotVersion());
977+
assertEquals(Version.CURRENT.minimumIndexCompatibilityVersion(), settings.getExtendedCompatibilitySnapshotVersion());
978978
}
979979

980-
public void testExtendedCompatibilityVersionMissingKey() {
980+
public void testExtendedCompatibilityVersionWithoutFeatureFlag() {
981981
IndexMetadata metadata = newIndexMeta(
982982
"index",
983983
Settings.builder()
@@ -987,6 +987,6 @@ public void testExtendedCompatibilityVersionMissingKey() {
987987
);
988988
IndexSettings settings = new IndexSettings(metadata, Settings.EMPTY);
989989
assertTrue(settings.isRemoteSnapshot());
990-
assertNull(settings.getExtendedCompatibilitySnapshotVersion());
990+
assertEquals(Version.CURRENT.minimumIndexCompatibilityVersion(), settings.getExtendedCompatibilitySnapshotVersion());
991991
}
992992
}

0 commit comments

Comments
 (0)