Skip to content

Commit

Permalink
Renames sample resource plugin and adds a logger statement
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Oct 4, 2024
1 parent 7b927fd commit a395541
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions sample-resource-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ import org.opensearch.gradle.test.RestIntegTestTask


opensearchplugin {
name 'opensearch-security-sample-resource-plugin'
name 'opensearch-sample-resource-plugin'
description 'Sample plugin that extends OpenSearch Resource Plugin'
classname 'org.opensearch.security.sampleresourceplugin.SampleResourcePlugin'
extendedPlugins = ['opensearch-security']
classname 'org.opensearch.security.sample.SampleResourcePlugin'
}

ext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public Collection<Object> createComponents(
Supplier<RepositoriesService> repositoriesServiceSupplier
) {
this.client = client;
log.info("Loaded SampleResourcePlugin components.");
return Collections.emptyList();
}

Expand Down Expand Up @@ -118,7 +119,7 @@ public String getResourceType() {

@Override
public String getResourceIndex() {
return "";
return RESOURCE_INDEX_NAME;
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
rootProject.name = 'opensearch-security'

include "sample-resource-plugin"
project(":sample-resource-plugin").name = rootProject.name + "-sample-resource-plugin"
project(":sample-resource-plugin").name = "opensearch-sample-resource-plugin"

0 comments on commit a395541

Please sign in to comment.