Skip to content

Commit

Permalink
[8.6] [TEST] Fix FileSettingsRoleMappingsStartupIT (PR #92653) (#92689)
Browse files Browse the repository at this point in the history
Backport 92653

[TEST] Fix FileSettingsRoleMappingsStartupIT
  • Loading branch information
grcevski committed Jan 4, 2023
1 parent fea57ce commit 04f8a19
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package org.elasticsearch.reservedstate.service;

import org.apache.lucene.tests.util.LuceneTestCase;
import org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsAction;
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
Expand Down Expand Up @@ -42,7 +43,8 @@
* Tests that snapshot restore behaves correctly when we have file based settings that reserve part of the
* cluster state
*/
public class SnaphotsAndFileSettingsIT extends AbstractSnapshotIntegTestCase {
@LuceneTestCase.SuppressFileSystems("*")
public class SnapshotsAndFileSettingsIT extends AbstractSnapshotIntegTestCase {
private static AtomicLong versionCounter = new AtomicLong(1);

private static String testFileSettingsJSON = """
Expand Down Expand Up @@ -259,7 +261,6 @@ public void testRestoreWithPersistedFileSettings() throws Exception {
String masterNode = internalCluster().getMasterName();

var savedClusterState = setupClusterStateListener(masterNode);
FileSettingsService fs = internalCluster().getInstance(FileSettingsService.class, masterNode);

logger.info("--> write some file based settings, putting some reserved state");
writeJSONFile(masterNode, testFileSettingsJSON);
Expand Down Expand Up @@ -331,5 +332,4 @@ public void testRestoreWithPersistedFileSettings() throws Exception {
)
);
}

}

0 comments on commit 04f8a19

Please sign in to comment.