Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Extensions] Removed unused extension directory #8674

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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