public ClientTestClusterConfiguration(ClusterFeatures features = ClusterFeatures.None, int numberOfNodes = 1,
                                              params ElasticsearchPlugin[] plugins
                                              )
            : base(TestClient.Configuration.ElasticsearchVersion, features, new ElasticsearchPlugins(plugins), numberOfNodes)
        {
            TestConfiguration = TestClient.Configuration;
            ShowElasticsearchOutputAfterStarted = TestConfiguration.ShowElasticsearchOutputAfterStarted;
            HttpFiddlerAware = true;

            CacheEsHomeInstallation = true;

            Add(AttributeKey("testingcluster"), "true");
            Add(AttributeKey("gateway"), "true");
            Add("search.remote.connect", "true");

            Add($"script.max_compilations_per_minute", "10000", "<6.0.0-rc1");
            Add($"script.max_compilations_rate", "10000/1m", ">=6.0.0-rc1");

            Add($"script.inline", "true", "<5.5.0");
            Add($"script.stored", "true", ">5.0.0-alpha1 <5.5.0");
            Add($"script.indexed", "true", "<5.0.0-alpha1");
            Add($"script.allowed_types", "inline,stored", ">=5.5.0");

            AdditionalBeforeNodeStartedTasks.Add(new WriteAnalysisFiles());
        }
Esempio n. 2
0
        public ClientTestClusterConfiguration(ClusterFeatures features = ClusterFeatures.None, int numberOfNodes = 1,
                                              params ElasticsearchPlugin[] plugins
                                              )
            : base(TestClient.Configuration.ElasticsearchVersion, features, new ElasticsearchPlugins(plugins),
                   numberOfNodes)
        {
            TestConfiguration = TestClient.Configuration;
            ShowElasticsearchOutputAfterStarted = TestConfiguration.ShowElasticsearchOutputAfterStarted;
            HttpFiddlerAware = true;

            CacheEsHomeInstallation = true;

            Add(AttributeKey("testingcluster"), "true");
            Add(AttributeKey("gateway"), "true");
            Add("search.remote.connect", "true", "<8.0.0");
            //Add("node.remote_cluster_client", "true", ">=8.0.0-SNAPSHOT");

            //Add("cluster.routing.allocation.disk.watermark.high", "95%");
            Add($"script.max_compilations_per_minute", "10000", "<6.0.0-rc1");
            Add($"script.max_compilations_rate", "10000/1m", ">=6.0.0-rc1 <7.9.0-SNAPSHOT");
            Add($"script.disable_max_compilations_rate", "true", ">=7.9.0-SNAPSHOT");

            Add($"ingest.geoip.downloader.enabled", "false");
            Add($"script.inline", "true", "<5.5.0");
            Add($"script.stored", "true", ">5.0.0-alpha1 <5.5.0");
            Add($"script.indexed", "true", "<5.0.0-alpha1");
            Add($"script.allowed_types", "inline,stored", ">=5.5.0");

            Add($"xpack.security.http.ssl.enabled", "false", ">=7.99.99");

            AdditionalBeforeNodeStartedTasks.Add(new WriteAnalysisFiles());
        }
Esempio n. 3
0
        public XPackClusterConfiguration(ClusterFeatures features) : base(ClusterFeatures.XPack | features, 1)
        {
            // Get license file path from environment variable
            var licenseFilePath = Environment.GetEnvironmentVariable("ES_LICENSE_FILE");

            if (!string.IsNullOrEmpty(licenseFilePath) && File.Exists(licenseFilePath))
            {
                var licenseContents = File.ReadAllText(licenseFilePath);
                XPackLicenseJson = licenseContents;
            }
            AdditionalBeforeNodeStartedTasks.Add(new EnsureWatcherActionConfigurationInElasticsearchYaml());
            ShowElasticsearchOutputAfterStarted = true;             //this.TestConfiguration.ShowElasticsearchOutputAfterStarted;
        }
Esempio n. 4
0
        public XPackClusterConfiguration(ClusterFeatures features) : base(ClusterFeatures.XPack | features, 1, ElasticsearchPlugin.IngestAttachment)
        {
            // Get license file path from environment variable
            var licenseFilePath = Environment.GetEnvironmentVariable("ES_LICENSE_FILE");

            if (!string.IsNullOrEmpty(licenseFilePath) && File.Exists(licenseFilePath))
            {
                var licenseContents = File.ReadAllText(licenseFilePath);
                XPackLicenseJson = licenseContents;
            }
            TrialMode = XPackTrialMode.Trial;
            AdditionalBeforeNodeStartedTasks.Add(new EnsureWatcherActionConfigurationInElasticsearchYaml());
            AdditionalBeforeNodeStartedTasks.Add(new EnsureWatcherActionConfigurationSecretsInKeystore());
            AdditionalBeforeNodeStartedTasks.Add(new EnsureNativeSecurityRealmEnabledInElasticsearchYaml());
            ShowElasticsearchOutputAfterStarted = true;             //this.TestConfiguration.ShowElasticsearchOutputAfterStarted;
        }