Skip to content

Commit ca185d3

Browse files
mboersmaarschles
authored andcommitted
ref(_tests): shorten config var to DEIS_HOST
1 parent 26a2b1d commit ca185d3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

_tests/tests_suite_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ var (
4141
)
4242

4343
var _ = BeforeSuite(func() {
44-
workflowHost := os.Getenv("DEIS_WORKFLOW_SERVICE_HOST")
45-
Expect(workflowHost).ShouldNot(BeEmpty())
4644
// use the "deis" executable in the search $PATH
4745
_, err := exec.LookPath("deis")
4846
Expect(err).NotTo(HaveOccurred())
@@ -131,11 +129,13 @@ func addKey(name string) {
131129
}
132130

133131
func getController() string {
134-
host := os.Getenv("DEIS_WORKFLOW_SERVICE_HOST")
132+
host := os.Getenv("DEIS_HOST")
135133
if host == "" {
136-
panic("DEIS_WORKFLOW_SERVICE_HOST isn't set")
134+
panic(`Set DEIS_HOST to the workflow controller hostname for tests, such as:
135+
136+
$ DEIS_HOST=deis.10.245.1.3.xip.io make test-integration`)
137137
}
138-
port := os.Getenv("DEIS_WORKFLOW_SERVICE_PORT")
138+
port := os.Getenv("DEIS_PORT")
139139
switch port {
140140
case "443":
141141
return "https://" + host

0 commit comments

Comments
 (0)