Skip to content

Commit 6cd604d

Browse files
committed
fix(Makefile,tests_suite_test.go): check for env vars in code
1 parent 0f5c965 commit 6cd604d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

_tests/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# These environment variables tell the tests where the deis router is, which it uses to communicate with the controller.
2-
# Router's default is to server on 'example.com', so 'deis.example.com' should route to controller.
3-
DEIS_WORKFLOW_SERVICE_HOST ?= deis.example.com
4-
DEIS_WORKFLOW_SERVICE_PORT ?= 80
51

62
test-setup:
73
go get github.com/onsi/ginkgo/ginkgo

_tests/tests_suite_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ var (
3232
)
3333

3434
var _ = BeforeSuite(func() {
35+
workflowHost := os.Getenv("DEIS_WORKFLOW_SERVICE_HOST")
36+
workflowPort := os.Getenv("DEIS_WORKFLOW_SERVICE_HOST")
37+
Expect(workflowHost).ShouldNot(BeEmpty())
38+
Expect(workflowPort).ShouldNot(BeEmpty())
3539
Expect("../client/deis").Should(BeAnExistingFile())
3640

3741
// register the test-admin user

0 commit comments

Comments
 (0)