Skip to content

Commit

Permalink
Remove unused extension directory (opensearch-project#8674)
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 committed Jul 13, 2023
1 parent 3254efd commit ab68d3e
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@

import java.io.IOException;
import java.net.InetAddress;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -95,33 +93,11 @@ public class ExtensionsManagerTests extends OpenSearchTestCase {
private Setting customSetting = Setting.simpleString("custom_extension_setting", "none", Property.ExtensionScope);
private NodeClient client;
private MockNioTransport transport;
private Path extensionDir;
private final ThreadPool threadPool = new TestThreadPool(ExtensionsManagerTests.class.getSimpleName());
private final Settings settings = Settings.builder()
.put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT)
.put(Environment.PATH_HOME_SETTING.getKey(), createTempDir().toString())
.build();
private final List<String> extensionsYmlLines = Arrays.asList(
"extensions:",
" - name: firstExtension",
" uniqueId: uniqueid1",
" hostAddress: '127.0.0.0'",
" port: '9300'",
" version: '0.0.7'",
" opensearchVersion: '3.0.0'",
" minimumCompatibleVersion: '3.0.0'",
" custom_extension_setting: 'custom_setting'",
" - name: secondExtension",
" uniqueId: 'uniqueid2'",
" hostAddress: '127.0.0.1'",
" port: '9301'",
" version: '3.14.16'",
" opensearchVersion: '2.0.0'",
" minimumCompatibleVersion: '2.0.0'",
" dependencies:",
" - uniqueId: 'uniqueid0'",
" version: '2.0.0'"
);

private DiscoveryExtensionNode extensionNode;

Expand Down Expand Up @@ -178,8 +154,6 @@ public List<Setting<?>> getExtensionSettings() {
settingsModule = new SettingsModule(Settings.EMPTY, emptyList(), emptyList(), emptySet());
clusterService = createClusterService(threadPool);

extensionDir = createTempDir();

extensionNode = new DiscoveryExtensionNode(
"firstExtension",
"uniqueid1",
Expand Down

0 comments on commit ab68d3e

Please sign in to comment.