Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Ensure tests are running with debug (#304)
Browse files Browse the repository at this point in the history
* fix erroneous image name and machines filename
* ensure all test calls turn on debugging.
  • Loading branch information
D3nn authored Sep 10, 2020
1 parent 3393f40 commit 69d2203
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ push:
# We select which directory we want to descend into to not execute integration
# tests here.
unit-tests: generated
go test -p 1 -v ./cmd/... ./pkg/...
WKP_DEBUG=true go test -p 1 -v ./cmd/... ./pkg/...

# Tests running in containers
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))

container-tests: pkg/apis/wksprovider/machine/scripts/scripts_vfsdata.go pkg/apis/wksprovider/controller/manifests/manifests_vfsdata.go
go test -count=1 ./test/container/...
WKP_DEBUG=true go test -v -count=1 ./test/container/...


integration-tests-container: cmd/wksctl/wksctl
Expand All @@ -143,8 +143,9 @@ integration-tests-container: cmd/wksctl/wksctl

NODE_OS1="centos"
NODE_OS2="ubuntu"

NODE_OS=$${NODE_OS:-"$$(echo $$NODE_OS1 $$NODE_OS2 | tr ' ' '\n' | shuf | head -1)"}
IMAGE_TAG=$(IMAGE_TAG) NODE_OS="$${NODE_OS}" go test -v -timeout 60m ./test/integration/container/...
WKP_DEBUG=true IMAGE_TAG=$(IMAGE_TAG) NODE_OS="$${NODE_OS}" go test -v -timeout 60m ./test/integration/container/...

FORCE:

Expand Down
2 changes: 1 addition & 1 deletion test/integration/container/multimaster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func TestMultimasterSetup(t *testing.T) {
}
// TODO: Use CAPEI upstream when its build system has been set up
run(t, "docker", "pull", "weaveworks/cluster-api-existinginfra-controller:v0.0.2")
run(t, "docker", "tag", "weaveworks/cluster-api-existinginfra-controller:v0.0.2", fmt.Sprintf("localhost:%d/weaveworks/wksctl-controller:%s", registryPort, tag))
run(t, "docker", "tag", fmt.Sprintf("weaveworks/cluster-api-existinginfra-controller:%s", "v0.0.2"), fmt.Sprintf("localhost:%d/weaveworks/wksctl-controller:%s", registryPort, tag))
run(t, "docker", "push", fmt.Sprintf("localhost:%d/weaveworks/wksctl-controller:%s", registryPort, tag))
registryIP = sanitizeIP(run(t, "docker", "inspect", "registry", "--format='{{.NetworkSettings.IPAddress}}'"))

Expand Down

0 comments on commit 69d2203

Please sign in to comment.