2017-08-16 23:19:41 +03:00
|
|
|
LOCATION ?= westus2
|
|
|
|
CLUSTER_DEFINITION ?= examples/kubernetes.json
|
|
|
|
SSH_KEY_NAME ?= id_rsa
|
2019-03-06 20:51:22 +03:00
|
|
|
SKIP_TEST ?= false
|
2017-08-16 23:19:41 +03:00
|
|
|
|
|
|
|
TEST_CMD = docker run --rm \
|
|
|
|
-v ${CURDIR}:${DEV_ENV_WORK_DIR} \
|
|
|
|
-w ${DEV_ENV_WORK_DIR} \
|
|
|
|
-e LOCATION=${LOCATION} \
|
|
|
|
-e CLIENT_ID=${CLIENT_ID} \
|
|
|
|
-e CLIENT_SECRET=${CLIENT_SECRET} \
|
|
|
|
-e TENANT_ID=${TENANT_ID} \
|
|
|
|
-e SUBSCRIPTION_ID=${SUBSCRIPTION_ID} \
|
|
|
|
-e CLUSTER_DEFINITION=${CLUSTER_DEFINITION} \
|
|
|
|
-e DNS_PREFIX=${DNS_PREFIX} \
|
2019-03-06 20:51:22 +03:00
|
|
|
-e SSH_KEY_NAME=${SSH_KEY_NAME} \
|
|
|
|
-e SKIP_TEST=${SKIP_TEST}
|
2017-08-16 23:19:41 +03:00
|
|
|
|
|
|
|
test-interactive:
|
|
|
|
${TEST_CMD} -it -e TEST=kubernetes ${DEV_ENV_IMAGE} bash
|
|
|
|
|
|
|
|
test-functional: test-kubernetes
|
|
|
|
|
|
|
|
test-kubernetes-with-container:
|
2017-08-30 21:38:09 +03:00
|
|
|
${TEST_CMD} -e ORCHESTRATOR=kubernetes ${DEV_ENV_IMAGE} test/e2e/runner
|
2017-08-16 23:19:41 +03:00
|
|
|
|
2019-08-30 19:51:24 +03:00
|
|
|
build-binary-e2e-runner:
|
|
|
|
$(GO) build $(GOFLAGS) -ldflags '$(LDFLAGS)' -o $(BINDIR)/$(PROJECT)-e2e-runner$(EXTENSION) $(REPO_PATH)
|
|
|
|
|
2017-08-16 23:19:41 +03:00
|
|
|
test-kubernetes:
|
2019-04-12 01:19:15 +03:00
|
|
|
@ORCHESTRATOR=kubernetes bash -c 'pgrep ssh-agent || eval `ssh-agent` && go run ./test/e2e/runner.go'
|
2017-10-09 22:29:25 +03:00
|
|
|
|
|
|
|
test-dcos:
|
2017-10-31 23:15:19 +03:00
|
|
|
@ORCHESTRATOR=dcos go run ./test/e2e/runner.go
|
|
|
|
|
|
|
|
test-azure-constants:
|
2019-08-30 19:51:24 +03:00
|
|
|
./scripts/azure-const.sh
|