Add CI for etcd IAM backend (#13614)

Runs when ETCD_SERVER env var is set
This commit is contained in:
Aditya Manthramurthy
2021-11-09 09:25:13 -08:00
committed by GitHub
parent edf1f4233b
commit 1946922de3
7 changed files with 273 additions and 98 deletions

View File

@@ -46,11 +46,11 @@ test-race: verifiers build
@echo "Running unit tests under -race"
@(env bash $(PWD)/buildscripts/race.sh)
test-ldap: build
@echo "Running tests for LDAP integration"
@CGO_ENABLED=0 go test -tags kqueue -v -run TestIAMWithLDAPServerSuite ./cmd
@echo "Running tests for LDAP integration with -race"
@CGO_ENABLED=1 go test -race -tags kqueue -v -run TestIAMWithLDAPServerSuite ./cmd
test-iam: build
@echo "Running tests for IAM (external IDP, etcd backends)"
@CGO_ENABLED=0 go test -tags kqueue -v -run TestIAM* ./cmd
@echo "Running tests for IAM (external IDP, etcd backends) with -race"
@CGO_ENABLED=1 go test -race -tags kqueue -v -run TestIAM* ./cmd
verify: ## verify minio various setups
@echo "Verifying build with race"