Use default demo credentials (#320)
This commit is contained in:
18
Makefile
18
Makefile
@@ -1,8 +1,3 @@
|
||||
export UNIFI_VERSION ?= latest
|
||||
export UNIFI_USERNAME ?= tfacctest
|
||||
export UNIFI_EMAIL ?= tfacctest@example.com
|
||||
export UNIFI_PASSWORD ?= tfacctest1234
|
||||
|
||||
TEST ?= ./...
|
||||
TESTARGS ?=
|
||||
TEST_COUNT ?= 1
|
||||
@@ -16,19 +11,12 @@ build:
|
||||
|
||||
.PHONY: testacc
|
||||
testacc:
|
||||
TF_ACC=1 UNIFI_ACC_WLAN_CONCURRENCY=3 UNIFI_API=https://localhost:8443 UNIFI_INSECURE=true go test $(TEST) -v -count=$(TEST_COUNT) $(TESTARGS)
|
||||
TF_ACC=1 UNIFI_ACC_WLAN_CONCURRENCY=3 UNIFI_API=https://localhost:8443 UNIFI_INSECURE=true UNIFI_USERNAME=admin UNIFI_PASSWORD=admin go test $(TEST) -v -count=$(TEST_COUNT) $(TESTARGS)
|
||||
|
||||
.PHONY: testacc-up
|
||||
testacc-up:
|
||||
docker-compose up --detach unifi
|
||||
|
||||
@echo -n "Waiting for container"
|
||||
@until test -n "$$(docker ps --filter id=$$(docker-compose ps --quiet unifi) --filter health=healthy --quiet)"; do echo -n .; sleep 1; done
|
||||
@echo
|
||||
|
||||
@echo "Bootstrapping Unifi controller"
|
||||
docker-compose up --abort-on-container-exit bootstrap
|
||||
docker compose up --detach --wait
|
||||
|
||||
.PHONY: testacc-down
|
||||
testacc-down:
|
||||
docker-compose down
|
||||
docker compose down
|
||||
|
||||
Reference in New Issue
Block a user