Skip to content

Commit

Permalink
report an issue workflow changes and test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdawson1982 committed Oct 22, 2024
1 parent 56292ac commit 6f272f7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/deploy-dev-from-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ jobs:
catalogue_token: ${{ secrets.CATALOGUE_TOKEN }}
slack_alert_webhook: ${{ secrets.SLACK_ALERT_WEBHOOK }}
azure_client_secret: ${{ secrets.AZURE_CLIENT_SECRET }}
notify_api_key: ${{ secrets.NOTIFY_API_KEY }}
3 changes: 3 additions & 0 deletions .github/workflows/deploy-staged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
catalogue_token: ${{ secrets.CATALOGUE_TOKEN }}
slack_alert_webhook: ${{ secrets.SLACK_ALERT_WEBHOOK }}
azure_client_secret: ${{ secrets.AZURE_CLIENT_SECRET }}
notify_api_key: ${{ secrets.NOTIFY_API_KEY }}

deploy-preprod:
uses: "./.github/workflows/reusable-push-and-deploy.yml"
Expand All @@ -45,6 +46,7 @@ jobs:
catalogue_token: ${{ secrets.CATALOGUE_TOKEN }}
slack_alert_webhook: ${{ secrets.SLACK_ALERT_WEBHOOK }}
azure_client_secret: ${{ secrets.AZURE_CLIENT_SECRET }}
notify_api_key: ${{ secrets.NOTIFY_API_KEY }}

notify-preprod-success:
needs: deploy-preprod
Expand Down Expand Up @@ -85,6 +87,7 @@ jobs:
catalogue_token: ${{ secrets.CATALOGUE_TOKEN }}
slack_alert_webhook: ${{ secrets.SLACK_ALERT_WEBHOOK }}
azure_client_secret: ${{ secrets.AZURE_CLIENT_SECRET }}
notify_api_key: ${{ secrets.NOTIFY_API_KEY }}

post-deploy:
name: "Post-deploy admin"
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/reusable-push-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ on:
azure_client_secret:
description: "azure client secret"
required: true
notify_api_key:
description: "api key for the gds notify service"
required: true

jobs:
push-and-deploy:
Expand Down Expand Up @@ -119,6 +122,12 @@ jobs:
AZURE_REDIRECT_URI: ${{ vars.AZURE_REDIRECT_URI }}
AZURE_AUTHORITY: ${{ vars.AZURE_AUTHORITY }}
EXTERNAL_DOMAIN_PREFIX: ${{ vars.EXTERNAL_DOMAIN_PREFIX }}
NOTIFY_ENABLED: ${{ vars.NOTIFY_ENABLED }}
NOTIFY_API_KEY: ${{ secrets.NOTIFY_API_KEY }}
NOTIFY_DATA_OWNER_TEMPLATE_ID: ${{ vars. NOTIFY_DATA_OWNER_TEMPLATE_ID }}
NOTIFY_SENDER_TEMPLATE_ID: ${{ vars.NOTIFY_SENDER_TEMPLATE_ID }}
NOTIFY_DATA_CATALOGUE_TEMPLATE_ID: ${{ vars.NOTIFY_DATA_CATALOGUE_TEMPLATE_ID }}
DATA_CATALOGUE_EMAIL: ${{ vars.DATA_CATALOGUE_EMAIL }}

run: |
cat deployments/templates/deployment.yml | envsubst > deployments/deployment.yml
Expand Down
12 changes: 12 additions & 0 deletions deployments/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ spec:
value: "${TRACES_SAMPLE_RATE}"
- name: PROFILES_SAMPLE_RATE
value: "${PROFILES_SAMPLE_RATE}"
- name: "${NOTIFY_ENABLED}"
value: NOTIFY_ENABLED
- name: "${NOTIFY_API_KEY}"
value: NOTIFY_API_KEY
- name: "${NOTIFY_DATA_OWNER_TEMPLATE_ID}"
value: NOTIFY_DATA_OWNER_TEMPLATE_ID
- name: "${NOTIFY_SENDER_TEMPLATE_ID}"
value: NOTIFY_SENDER_TEMPLATE_ID
- name: "${NOTIFY_DATA_CATALOGUE_TEMPLATE_ID}"
value: NOTIFY_DATA_CATALOGUE_TEMPLATE_ID
- name: "${DATA_CATALOGUE_EMAIL}"
value: DATA_CATALOGUE_EMAIL
- name: SECRET_KEY
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion tests/home/service/test_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def test_get_context(self, mock_catalogue):
expected = {
"entity": chart_metadata,
"entity_type": "Chart",
"platform_name": "Justice Data",
"platform_name": "justice-data",
"parent_entity": None,
"parent_type": "dashboard",
"h1_value": "test",
Expand Down

0 comments on commit 6f272f7

Please sign in to comment.