Skip to content

Commit

Permalink
Created ScriptExtension interface opensearch-project#318 (opensearch-…
Browse files Browse the repository at this point in the history
…project#534)

* Created ScriptExtension interface opensearch-project#318

Signed-off-by: Aisara Imangaliyeva <imangaliyeva.aisara@gmail.com>

* Created ScriptExtension interface opensearch-project#318

Signed-off-by: Aisara Imangaliyeva <imangaliyeva.aisara@gmail.com>

* Created ScriptExtension interface opensearch-project#318

Signed-off-by: Aisara Imangaliyeva <imangaliyeva.aisara@gmail.com>

---------

Signed-off-by: Aisara Imangaliyeva <imangaliyeva.aisara@gmail.com>
Co-authored-by: Aisara Imangaliyeva <imangaliyeva.aisara@gmail.com>
  • Loading branch information
2 people authored and kokibas committed Mar 17, 2023
1 parent a22770c commit 12dcee1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/org/opensearch/sdk/TestExtensionInterfaces.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ void testActionExtension() {
assertTrue(actionExtension.mappingRequestValidators().isEmpty());
}

@Test
void testScriptExtension() {
ScriptExtension scriptExtension = new ScriptExtension() {
};
assertNull(scriptExtension.getScriptEngine(null, null));
assertTrue(scriptExtension.getContexts().isEmpty());

}

@Test
void testEngineExtension() {
EngineExtension engineExtension = new EngineExtension() {
Expand Down

0 comments on commit 12dcee1

Please sign in to comment.