You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WORKTREE_CLEAN := $(shell git status --porcelain 1>/dev/null 2>&1; echo $$?)
@@ -33,6 +33,15 @@ test-e2e-connect: ## Run e2e tests using Connect (requires OP_CONNECT_TOKEN and
33
33
@echo "[INFO] Running e2e tests with Connect authentication..."
34
34
@sh -c 'unset OP_SERVICE_ACCOUNT_TOKEN; OP_CONNECT_TOKEN="$(OP_CONNECT_TOKEN)" OP_CONNECT_HOST="$(OP_CONNECT_HOST)" TF_ACC=1 go test -v ./test/e2e/... -timeout 30m'
35
35
36
+
test-e2e-account: ## Run e2e test using account methodology with Touch ID (requires OP_ACCOUNT and OP_TEST_VAULT_NAME, manual only). Creates multiple items to verify biometrics is only prompted once.
37
+
@test -n "$(OP_ACCOUNT)"|| (echo "[ERROR] OP_ACCOUNT environment variable is not set.";exit 1)
38
+
@test -n "$(OP_TEST_VAULT_NAME)"|| (echo "[ERROR] OP_TEST_VAULT_NAME environment variable is not set.";exit 1)
39
+
@echo "[INFO] Running e2e test with account-based authentication (Touch ID)..."
40
+
@echo "[WARNING] This test will prompt for Touch ID/biometric authentication."
41
+
@echo "[WARNING] Please ensure you add a vault titled 'terraform-provider-acceptance-tests' or set OP_TEST_VAULT_NAME environment variable for this test to pass."
42
+
@echo "[INFO] Ensure that biometrics are only prompted once."
43
+
@sh -c 'unset OP_CONNECT_TOKEN OP_CONNECT_HOST OP_SERVICE_ACCOUNT_TOKEN; OP_ACCOUNT="$(OP_ACCOUNT)" TF_ACC=1 go test -v ./test/e2e/... -run TestAccItemResource -timeout 30m'
44
+
36
45
build: clean ## Build project
37
46
go build -o ./dist/terraform-provider-onepassword .
0 commit comments