diff --git a/DESIGN.md b/DESIGN.md index 2d533c4a..a8a7ea11 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -41,7 +41,7 @@ Extensions are registered through the below REST request within OpenSearch. ```bash curl -XPOST "localhost:9200/_extensions/initialize" -H "Content-Type:application/json" --data '{ \ -"name":"hello-world", \ // extension name +"name":"helloWorld", \ // extension name "uniqueId":"hello-world", \ // identifier for the extension "hostAddress":"127.0.0.1", \ // host address "port":"4532", \ // port number diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md index e9957f47..a859f8ed 100644 --- a/DEVELOPER_GUIDE.md +++ b/DEVELOPER_GUIDE.md @@ -147,7 +147,7 @@ To **run OpenSearch from a compiled binary**, follow these steps: - Send the below sample REST API to initialize an extension ```bash curl -XPOST "localhost:9200/_extensions/initialize" -H "Content-Type:application/json" --data '{ -"name":"hello-world", +"name":"helloWorld", "uniqueId":"hello-world", "hostAddress":"127.0.0.1", "port":"4532", @@ -163,8 +163,8 @@ To **run OpenSearch from Gradle**, follow these steps: - Send the below sample REST API to initialize an extension ```bash curl -XPOST "localhost:9200/_extensions/initialize" -H "Content-Type:application/json" --data '{ -"name":"hello-world", -"uniqueId":"hello-world", +"name":"helloWorld", +"uniqueId":"helloWorld", "hostAddress":"127.0.0.1", "port":"4532", "version":"1.0", @@ -296,7 +296,7 @@ tar -xvf opensearch-sdk-java-1.0.0-SNAPSHOT.tar The artifact will include extension settings for the sample Hello World extension on the class path under the path `/sample/extension-settings.yml`: ```yaml - extensionName: hello-world + extensionName: helloWorld hostAddress: 127.0.0.1 hostPort: 4532 opensearchAddress: 127.0.0.1 diff --git a/src/main/resources/sample/helloworld-settings.yml b/src/main/resources/sample/helloworld-settings.yml index 15cdbdcf..52075dbc 100644 --- a/src/main/resources/sample/helloworld-settings.yml +++ b/src/main/resources/sample/helloworld-settings.yml @@ -1,4 +1,4 @@ -extensionName: hello-world +extensionName: helloWorld hostAddress: 127.0.0.1 hostPort: 4500 opensearchAddress: 127.0.0.1 diff --git a/src/test/java/org/opensearch/sdk/sample/helloworld/TestHelloWorldExtension.java b/src/test/java/org/opensearch/sdk/sample/helloworld/TestHelloWorldExtension.java index 451de7be..dd25ceff 100644 --- a/src/test/java/org/opensearch/sdk/sample/helloworld/TestHelloWorldExtension.java +++ b/src/test/java/org/opensearch/sdk/sample/helloworld/TestHelloWorldExtension.java @@ -108,7 +108,7 @@ public void tearDown() throws Exception { public void testExtensionSettings() { // This effectively tests the Extension interface helper method ExtensionSettings extensionSettings = extension.getExtensionSettings(); - ExtensionSettings expected = new ExtensionSettings("hello-world", "127.0.0.1", "4532", "127.0.0.1", "9200"); + ExtensionSettings expected = new ExtensionSettings("helloWorld", "127.0.0.1", "4532", "127.0.0.1", "9200"); assertEquals(expected.getExtensionName(), extensionSettings.getExtensionName()); assertEquals(expected.getHostAddress(), extensionSettings.getHostAddress()); assertEquals(expected.getHostPort(), extensionSettings.getHostPort()); diff --git a/src/test/java/org/opensearch/sdk/sample/helloworld/rest/TestRestHelloAction.java b/src/test/java/org/opensearch/sdk/sample/helloworld/rest/TestRestHelloAction.java index f45930f8..2741fbc9 100644 --- a/src/test/java/org/opensearch/sdk/sample/helloworld/rest/TestRestHelloAction.java +++ b/src/test/java/org/opensearch/sdk/sample/helloworld/rest/TestRestHelloAction.java @@ -36,7 +36,7 @@ public class TestRestHelloAction extends OpenSearchTestCase { private ExtensionRestHandler restHelloAction; // Temporarily removed pending integration of feature/identity branch - // private static final String EXTENSION_NAME = "hello-world"; + // private static final String EXTENSION_NAME = "helloWorld"; @Override @BeforeEach diff --git a/src/test/resources/hello-world-extension.yml b/src/test/resources/hello-world-extension.yml index 1ccaec91..7fb5e567 100644 --- a/src/test/resources/hello-world-extension.yml +++ b/src/test/resources/hello-world-extension.yml @@ -1,4 +1,4 @@ -name: hello-world +name: helloWorld uniqueId: opensearch-sdk-java-1 hostAddress: '127.0.0.1' port: '4500'