Skip to content

Commit 32fe1b2

Browse files
committed
Removing unused field
1 parent 17ab10c commit 32fe1b2

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

internal/testrunner/runners/system/runner.go

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ package system
77
import (
88
"encoding/json"
99
"fmt"
10-
"os"
1110
"path/filepath"
1211
"strings"
1312
"time"
@@ -39,8 +38,7 @@ const (
3938
)
4039

4140
type runner struct {
42-
options testrunner.TestOptions
43-
stackSettings stackSettings
41+
options testrunner.TestOptions
4442

4543
// Execution order of following handlers is defined in runner.TearDown() method.
4644
deleteTestPolicyHandler func() error
@@ -73,8 +71,6 @@ func (r *runner) String() string {
7371
// Run runs the system tests defined under the given folder
7472
func (r *runner) Run(options testrunner.TestOptions) ([]testrunner.TestResult, error) {
7573
r.options = options
76-
r.stackSettings = getStackSettingsFromEnv()
77-
7874
return r.run()
7975
}
8076

@@ -335,25 +331,6 @@ func (r *runner) run() ([]testrunner.TestResult, error) {
335331
return resultsWith(result, nil)
336332
}
337333

338-
func getStackSettingsFromEnv() stackSettings {
339-
s := stackSettings{}
340-
341-
s.elasticsearch.host = os.Getenv("ELASTIC_PACKAGE_ELASTICSEARCH_HOST")
342-
if s.elasticsearch.host == "" {
343-
s.elasticsearch.host = "http://localhost:9200"
344-
}
345-
346-
s.elasticsearch.username = os.Getenv("ELASTIC_PACKAGE_ELASTICSEARCH_USERNAME")
347-
s.elasticsearch.password = os.Getenv("ELASTIC_PACKAGE_ELASTICSEARCH_PASSWORD")
348-
349-
s.kibana.host = os.Getenv("ELASTIC_PACKAGE_KIBANA_HOST")
350-
if s.kibana.host == "" {
351-
s.kibana.host = "http://localhost:5601"
352-
}
353-
354-
return s
355-
}
356-
357334
func createPackageDatastream(
358335
p kibana.Policy,
359336
pkg packages.PackageManifest,

0 commit comments

Comments
 (0)