Skip to content

Commit ad2396b

Browse files
author
Seung Yeon Joo
committed
Fixed unit Test
Signed-off-by: Seung Yeon Joo <[email protected]>
1 parent 918ecc1 commit ad2396b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/step/AttemptRestoreStepTests.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class AttemptRestoreStepTests : OpenSearchTestCase() {
7979
@Before
8080
fun setup() {
8181
whenever(clusterService.clusterSettings).doReturn(ClusterSettings(Settings.EMPTY, setOf(SNAPSHOT_DENY_LIST)))
82-
whenever(scriptService.compile(any(), eq(TemplateScript.CONTEXT))).doReturn(MockTemplateScript.Factory("snapshot-pattern*"))
82+
whenever(scriptService.compile(any(), eq(TemplateScript.CONTEXT))).doReturn(MockTemplateScript.Factory("snapshot-pattern"))
8383
}
8484

8585
fun `test restore failure with no matching snapshots`() {
@@ -98,7 +98,7 @@ class AttemptRestoreStepTests : OpenSearchTestCase() {
9898
)
9999
assertEquals(
100100
"Did not get correct failure message",
101-
"Failed to start restore for [index=test], cause: No snapshots found matching pattern [test*]",
101+
"Failed to start restore for [index=test], cause: No snapshots found matching pattern [snapshot-pattern*]",
102102
updatedMetadata.info!!["message"],
103103
)
104104
}

0 commit comments

Comments
 (0)