File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
server/src/test/java/org/elasticsearch/common/settings Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 4343import static org .hamcrest .CoreMatchers .containsString ;
4444import static org .hamcrest .CoreMatchers .equalTo ;
4545import static org .hamcrest .CoreMatchers .startsWith ;
46+ import static org .hamcrest .Matchers .both ;
4647import static org .hamcrest .Matchers .hasToString ;
4748import static org .mockito .Mockito .clearInvocations ;
4849import static org .mockito .Mockito .never ;
@@ -343,13 +344,10 @@ public void testValidateArchivedSetting() {
343344 );
344345 assertThat (
345346 e .getMessage (),
346- equalTo (
347- "unknown setting [archived.index.store.type] was archived after upgrading, and must be removed."
348- + " See [https://www.elastic.co/docs/deploy-manage/upgrade/deployment-or-cluster/archived-settings?version=master] "
349- + "for details."
347+ both (containsString ("unknown setting [archived.index.store.type] was archived after upgrading, and must be removed." )).and (
348+ containsString ("https://www.elastic.co/docs/deploy-manage/upgrade/deployment-or-cluster/archived-settings" )
350349 )
351350 );
352-
353351 }
354352
355353 public void testTupleAffixUpdateConsumer () {
You can’t perform that action at this time.
0 commit comments