@@ -7,7 +7,6 @@ package system
7
7
import (
8
8
"encoding/json"
9
9
"fmt"
10
- "os"
11
10
"path/filepath"
12
11
"strings"
13
12
"time"
@@ -39,8 +38,7 @@ const (
39
38
)
40
39
41
40
type runner struct {
42
- options testrunner.TestOptions
43
- stackSettings stackSettings
41
+ options testrunner.TestOptions
44
42
45
43
// Execution order of following handlers is defined in runner.TearDown() method.
46
44
deleteTestPolicyHandler func () error
@@ -73,8 +71,6 @@ func (r *runner) String() string {
73
71
// Run runs the system tests defined under the given folder
74
72
func (r * runner ) Run (options testrunner.TestOptions ) ([]testrunner.TestResult , error ) {
75
73
r .options = options
76
- r .stackSettings = getStackSettingsFromEnv ()
77
-
78
74
return r .run ()
79
75
}
80
76
@@ -335,25 +331,6 @@ func (r *runner) run() ([]testrunner.TestResult, error) {
335
331
return resultsWith (result , nil )
336
332
}
337
333
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
-
357
334
func createPackageDatastream (
358
335
p kibana.Policy ,
359
336
pkg packages.PackageManifest ,
0 commit comments