From 7e5f72012326fd690828ac0680ac07a2acc355b0 Mon Sep 17 00:00:00 2001 From: AnnTian Shao Date: Mon, 27 Jan 2025 10:38:10 -0800 Subject: [PATCH] Update test names Signed-off-by: AnnTian Shao --- src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java b/src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java index c9936f2db..150ec2540 100644 --- a/src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java +++ b/src/test/java/org/opensearch/knn/index/RestoreSnapshotIT.java @@ -56,7 +56,7 @@ private void setupSnapshotRestore() throws Exception { createSnapshot(repository, snapshot, true); } - public void testUnmodifiableOnRestoreSettingModifiedOnRestore() throws Exception { + public void testKnnSettingIsUnmodifiableOnRestore() throws Exception { setupSnapshotRestore(); // invalid restore @@ -77,7 +77,7 @@ public void testUnmodifiableOnRestoreSettingModifiedOnRestore() throws Exception assertThat(error.getMessage(), containsString("cannot modify UnmodifiableOnRestore setting [index.knn]" + " on restore")); } - public void testUnmodifiableOnRestoreSettingIgnoredOnRestore() throws Exception { + public void testKnnSettingCannotBeIgnoredDuringRestore() throws Exception { setupSnapshotRestore(); // invalid restore