From 690ea5dae07a2594f3973cba7e3cd22d654c7b4f Mon Sep 17 00:00:00 2001 From: Mateusz Szostok Date: Wed, 19 Jun 2024 12:09:00 +0200 Subject: [PATCH] Add missing UI URL for prod tests (#1462) --- .github/actions/cloud-slack-e2e/action.yaml | 5 ++++- .github/workflows/branch-build.yml | 5 +++-- .github/workflows/prod-e2e-test.yml | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/actions/cloud-slack-e2e/action.yaml b/.github/actions/cloud-slack-e2e/action.yaml index 2082f4db0..a3562c0b1 100644 --- a/.github/actions/cloud-slack-e2e/action.yaml +++ b/.github/actions/cloud-slack-e2e/action.yaml @@ -28,6 +28,9 @@ inputs: botkube_cloud_api_base_url: description: 'BotKube Cloud API Base URL' required: true + botkube_cloud_ui_base_url: + description: 'BotKube Cloud UI Base URL' + required: true botkube_cloud_email: description: 'BotKube Cloud Email' required: true @@ -88,7 +91,7 @@ runs: SLACK_TESTER_BOT_NAME: ${{ inputs.slack_tester_bot_name }} SLACK_TESTER_MESSAGE_WAIT_TIMEOUT: 180s - + BOTKUBE_CLOUD_UI_BASE_URL: ${{ inputs.botkube_cloud_ui_base_url }} BOTKUBE_CLOUD_API_BASE_URL: ${{ inputs.botkube_cloud_api_base_url }} BOTKUBE_CLOUD_EMAIL: ${{ inputs.botkube_cloud_email }} BOTKUBE_CLOUD_PASSWORD: ${{ inputs.botkube_cloud_password }} diff --git a/.github/workflows/branch-build.yml b/.github/workflows/branch-build.yml index 5a190d506..7b5797835 100644 --- a/.github/workflows/branch-build.yml +++ b/.github/workflows/branch-build.yml @@ -33,7 +33,7 @@ jobs: echo "versions={\"image-version\":[\"v9.99.9-dev\",\"0.0.0-${IMAGE_VERSION}\"]}" >> $GITHUB_OUTPUT build: if: github.event_name != 'repository_dispatch' # skip if triggered by repository_dispatch - needs: [extract-metadata] + needs: [ extract-metadata ] strategy: matrix: ${{ fromJson(needs.extract-metadata.outputs.versions) }} runs-on: ubuntu-latest @@ -299,7 +299,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Run e2e tests + - name: Run e2e tests uses: ./.github/actions/cloud-slack-e2e with: access_token: ${{ secrets.E2E_TEST_GH_DEV_ACCOUNT_PAT }} @@ -311,6 +311,7 @@ jobs: slack_tester_bot_token: ${{ secrets.E2E_DEV_SLACK_TESTER_BOT_TOKEN }} slack_tester_bot_name: "botkubedev" + botkube_cloud_ui_base_url: "https://app-dev.botkube.io" botkube_cloud_api_base_url: "https://api-dev.botkube.io" botkube_cloud_email: ${{ secrets.E2E_DEV_BOTKUBE_CLOUD_EMAIL }} botkube_cloud_password: ${{ secrets.E2E_DEV_BOTKUBE_CLOUD_PASSWORD }} diff --git a/.github/workflows/prod-e2e-test.yml b/.github/workflows/prod-e2e-test.yml index c04f6094e..120d4844f 100644 --- a/.github/workflows/prod-e2e-test.yml +++ b/.github/workflows/prod-e2e-test.yml @@ -39,6 +39,7 @@ jobs: slack_tester_bot_name: "botkube3" botkube_cloud_api_base_url: "https://api.botkube.io" + botkube_cloud_ui_base_url: "https://app.botkube.io" botkube_cloud_email: ${{ secrets.E2E_DEV_BOTKUBE_CLOUD_EMAIL }} botkube_cloud_password: ${{ secrets.E2E_DEV_BOTKUBE_CLOUD_PASSWORD }} botkube_cloud_team_organization_id: ${{ secrets.E2E_PROD_BOTKUBE_CLOUD_TEAM_ORGANIZATION_ID }}