Skip to content

Commit 6ccfcdf

Browse files
Removes test inheritance and update suppresswarning note
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
1 parent c74c4ef commit 6ccfcdf

File tree

9 files changed

+736
-307
lines changed

9 files changed

+736
-307
lines changed

sample-resource-plugin/src/integrationTest/java/org/opensearch/sample/AbstractSampleResourcePluginFeatureEnabledTests.java

Lines changed: 0 additions & 276 deletions
This file was deleted.

sample-resource-plugin/src/integrationTest/java/org/opensearch/sample/SampleResourcePluginFeatureDisabledTests.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
import static org.hamcrest.MatcherAssert.assertThat;
2727
import static org.hamcrest.Matchers.containsString;
2828
import static org.hamcrest.Matchers.equalTo;
29+
import static org.opensearch.sample.SampleResourcePluginTestHelper.SAMPLE_RESOURCE_CREATE_ENDPOINT;
30+
import static org.opensearch.sample.SampleResourcePluginTestHelper.SAMPLE_RESOURCE_DELETE_ENDPOINT;
31+
import static org.opensearch.sample.SampleResourcePluginTestHelper.SAMPLE_RESOURCE_GET_ENDPOINT;
32+
import static org.opensearch.sample.SampleResourcePluginTestHelper.SAMPLE_RESOURCE_REVOKE_ENDPOINT;
33+
import static org.opensearch.sample.SampleResourcePluginTestHelper.SAMPLE_RESOURCE_SHARE_ENDPOINT;
34+
import static org.opensearch.sample.SampleResourcePluginTestHelper.SAMPLE_RESOURCE_UPDATE_ENDPOINT;
35+
import static org.opensearch.sample.SampleResourcePluginTestHelper.SHARED_WITH_USER;
36+
import static org.opensearch.sample.SampleResourcePluginTestHelper.revokeAccessPayload;
37+
import static org.opensearch.sample.SampleResourcePluginTestHelper.shareWithPayload;
2938
import static org.opensearch.sample.utils.Constants.RESOURCE_INDEX_NAME;
3039
import static org.opensearch.security.resources.ResourceSharingConstants.OPENSEARCH_RESOURCE_SHARING_INDEX;
3140
import static org.opensearch.security.spi.resources.FeatureConfigConstants.OPENSEARCH_RESOURCE_SHARING_ENABLED;
@@ -37,7 +46,7 @@
3746
*/
3847
@RunWith(com.carrotsearch.randomizedtesting.RandomizedRunner.class)
3948
@ThreadLeakScope(ThreadLeakScope.Scope.NONE)
40-
public class SampleResourcePluginFeatureDisabledTests extends AbstractSampleResourcePluginTests {
49+
public class SampleResourcePluginFeatureDisabledTests {
4150

4251
@ClassRule
4352
public static LocalCluster cluster = new LocalCluster.Builder().clusterManager(ClusterManager.SINGLENODE)

0 commit comments

Comments
 (0)