File tree 1 file changed +2
-2
lines changed
src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/step
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class AttemptRestoreStepTests : OpenSearchTestCase() {
79
79
@Before
80
80
fun setup () {
81
81
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" ))
83
83
}
84
84
85
85
fun `test restore failure with no matching snapshots` () {
@@ -98,7 +98,7 @@ class AttemptRestoreStepTests : OpenSearchTestCase() {
98
98
)
99
99
assertEquals(
100
100
" 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 *]" ,
102
102
updatedMetadata.info!! [" message" ],
103
103
)
104
104
}
You can’t perform that action at this time.
0 commit comments