diff --git a/.github/workflows/chronograf-cypress-tests.yaml b/.github/workflows/chronograf-cypress-tests.yaml index 2ea725a65..1fb0dce86 100644 --- a/.github/workflows/chronograf-cypress-tests.yaml +++ b/.github/workflows/chronograf-cypress-tests.yaml @@ -59,9 +59,14 @@ jobs: - name: OAuth2 Mock Server run: | - source $(git rev-parse --show-toplevel)/etc/oauth2-server-mock/env.sh yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock RUNNER_TRACKING_ID="" && (nohup yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock start&) + env: + OAUTH2_HOSTNAME: host.docker.internal + OAUTH2_PORT: 8087 + OAUTH2_TEST_USER_NAME: Test User + OAUTH2_TEST_USER_EMAIL: test@oauth2.mock + OAUTH2_REDIRECT_URL: http://host.docker.internal:8888/oauth/oauth-mock/callback - name: Chronograf run: | @@ -74,12 +79,12 @@ jobs: --generic-auth-url="http://${OAUTH2_HOSTNAME}:${OAUTH2_PORT}/oauth/authorize" \ --generic-api-url="http://${OAUTH2_HOSTNAME}:${OAUTH2_PORT}/userinfo" \ --generic-token-url="http://${OAUTH2_HOSTNAME}:${OAUTH2_PORT}/oauth/token" \ - --public-url=http://localhost:8888 \ + --public-url=http://host.docker.internal:8888 \ --token-secret=Q4O1T8FTbErOnmx03mGeVH3pkvKtdKr6HEmzEpNBiVMynZ/qKDdOResI3OMx4Zg9kmIfAI9ihlIV3OV5+VRfZ+iB2knLuGagEmFpG/h51CRcQY58j2NpnxdBewz91E51RRfjDYvqMrISHZCjdeuw0338Xp5UnEg32utr0ThRN0Ucv2isRr4KYJNYuvUXrjKJzjh76394JwY+bzn20L/enR2rLEtJ40ePxwuEvsE0MBUGZy79ecLZPaolQ3lkPE6X3+iV/9suN0BkBNtbQe1sGv4P522jSm24fFhXaFjetQQ/dJGehbWzsBo8uVAWB2RO0+xU2LhHFN0k0LAESD6MWw== \ --redir-auth-login=oauth-mock > out.log 2>&1 &) sleep 10 env: - OAUTH2_HOSTNAME: localhost + OAUTH2_HOSTNAME: host.docker.internal OAUTH2_PORT: 8087