Skip to content

Commit 130413c

Browse files
authored
having idp configured via env variable only (#1931)
1 parent 0622cc6 commit 130413c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,12 @@ test-sso-integration:
164164
-p 9000:9000 \
165165
-p 9001:9001 \
166166
-e MINIO_IDENTITY_OPENID_CLIENT_SECRET=0nfJuqIt0iPnRIUJkvetve5l38C6gi9W \
167+
-e MINIO_IDENTITY_OPENID_CONFIG_URL=http://keycloak-container:8080/auth/realms/myrealm/.well-known/openid-configuration \
168+
-e MINIO_IDENTITY_OPENID_CLIENT_ID="account" \
167169
-e MINIO_ROOT_USER=minio \
168170
-e MINIO_ROOT_PASSWORD=minio123 $(MINIO_VERSION) server /data{1...4} --address :9000 --console-address :9001)
169-
@(sleep 60)
170-
@echo "run mc commands"
171-
@(docker run --name minio-client --network my-net -dit --entrypoint=/bin/sh minio/mc)
172-
@(docker exec minio-client mc alias set myminio/ http://minio:9000 minio minio123)
173-
@(docker exec minio-client mc admin config set myminio identity_openid config_url="http://keycloak-container:8080/auth/realms/myrealm/.well-known/openid-configuration" client_id="account")
174-
@(docker exec minio-client mc admin service restart myminio)
175171
@echo "starting bash script"
176172
@(env bash $(PWD)/sso-integration/set-sso.sh)
177-
@echo "install jq"
178-
@(sudo apt install jq)
179173
@echo "Executing the test:"
180174
@(cd sso-integration && go test -coverpkg=../restapi -c -tags testrunmain . && mkdir -p coverage && ./sso-integration.test -test.v -test.run "^Test*" -test.coverprofile=coverage/sso-system.out)
181175

0 commit comments

Comments
 (0)