Fix existing end-to-end tests

This changeset re-enables our existing end-to-end tests and gets them working again after responding to a security incident.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2025-03-18 23:24:49 -04:00
parent 051114157d
commit 606b124912
2 changed files with 72 additions and 114 deletions
+10 -51
View File
@@ -127,6 +127,15 @@
} }
], ],
"results": { "results": {
".github/workflows/checks.yml": [
{
"type": "Secret Keyword",
"filename": ".github/workflows/checks.yml",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 68
}
],
"app/assets/js/uswds.min.js": [ "app/assets/js/uswds.min.js": [
{ {
"type": "Secret Keyword", "type": "Secret Keyword",
@@ -389,26 +398,6 @@
"is_secret": false "is_secret": false
} }
], ],
"app/templates/new/components/head.html": [
{
"type": "Base64 High Entropy String",
"filename": "app/templates/new/components/head.html",
"hashed_secret": "ee5048791fc7ff45a1545e24f85bec3317371327",
"is_verified": false,
"line_number": 33,
"is_secret": false
}
],
"app/templates/old/admin_template.html": [
{
"type": "Base64 High Entropy String",
"filename": "app/templates/old/admin_template.html",
"hashed_secret": "ee5048791fc7ff45a1545e24f85bec3317371327",
"is_verified": false,
"line_number": 18,
"is_secret": false
}
],
"deploy-config/sandbox.yml": [ "deploy-config/sandbox.yml": [
{ {
"type": "Secret Keyword", "type": "Secret Keyword",
@@ -642,37 +631,7 @@
"line_number": 3266, "line_number": 3266,
"is_secret": false "is_secret": false
} }
],
"tests/notifications_utils/clients/antivirus/test_antivirus_client.py": [
{
"type": "Secret Keyword",
"filename": "tests/notifications_utils/clients/antivirus/test_antivirus_client.py",
"hashed_secret": "932b25270abe1301c22c709a19082dff07d469ff",
"is_verified": false,
"line_number": 16,
"is_secret": false
}
],
"tests/notifications_utils/clients/encryption/test_encryption_client.py": [
{
"type": "Secret Keyword",
"filename": "tests/notifications_utils/clients/encryption/test_encryption_client.py",
"hashed_secret": "f1e923a9667de11be6a210849a8651c1bfd81605",
"is_verified": false,
"line_number": 13,
"is_secret": false
}
],
"tests/notifications_utils/clients/zendesk/test_zendesk_client.py": [
{
"type": "Secret Keyword",
"filename": "tests/notifications_utils/clients/zendesk/test_zendesk_client.py",
"hashed_secret": "913a73b565c8e2c8ed94497580f619397709b8b6",
"is_verified": false,
"line_number": 16,
"is_secret": false
}
] ]
}, },
"generated_at": "2025-03-17T23:26:44Z" "generated_at": "2025-03-19T03:23:37Z"
} }
+62 -63
View File
@@ -51,74 +51,73 @@ jobs:
- name: Check coverage threshold - name: Check coverage threshold
run: poetry run coverage report --fail-under=90 run: poetry run coverage report --fail-under=90
# TODO FIX THIS! end-to-end-tests:
# end-to-end-tests: if: ${{ github.actor != 'dependabot[bot]' }}
# if: ${{ github.actor != 'dependabot[bot]' }}
# permissions: permissions:
# checks: write checks: write
# pull-requests: write pull-requests: write
# contents: write contents: write
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# environment: staging environment: staging
# services: services:
# postgres: postgres:
# image: postgres image: postgres
# env: env:
# POSTGRES_USER: user POSTGRES_USER: user
# POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
# POSTGRES_DB: test_notification_api POSTGRES_DB: test_notification_api
# options: >- options: >-
# --health-cmd pg_isready --health-cmd pg_isready
# --health-interval 10s --health-interval 10s
# --health-timeout 5s --health-timeout 5s
# --health-retries 5 --health-retries 5
# ports: ports:
# # Maps tcp port 5432 on service container to the host # Maps tcp port 5432 on service container to the host
# - 5432:5432 - 5432:5432
# redis: redis:
# image: redis image: redis
# options: >- options: >-
# --health-cmd "redis-cli ping" --health-cmd "redis-cli ping"
# --health-interval 10s --health-interval 10s
# --health-timeout 5s --health-timeout 5s
# --health-retries 5 --health-retries 5
# ports: ports:
# # Maps tcp port 6379 on service container to the host # Maps tcp port 6379 on service container to the host
# - 6379:6379 - 6379:6379
# steps: steps:
# - uses: actions/checkout@v4 - uses: actions/checkout@v4
# - uses: ./.github/actions/setup-project - uses: ./.github/actions/setup-project
# - uses: jwalton/gh-find-current-pr@v1 - uses: jwalton/gh-find-current-pr@v1
# id: findPr id: findPr
# - name: Check API Server availability - name: Check API Server availability
# run: | run: |
# curl --fail -v https://notify-api-staging.app.cloud.gov || exit 1 curl --fail -v https://notify-api-staging.app.cloud.gov || exit 1
# - name: Run Admin server - name: Run Admin server
# # If we want to log stuff and see what's broken, # If we want to log stuff and see what's broken,
# # insert this line: # insert this line:
# # tail -f admin-server.log & # tail -f admin-server.log &
# # above make e2e-test # above make e2e-test
# run: | run: |
# make run-flask > admin-server.log 2>&1 & make run-flask > admin-server.log 2>&1 &
# tail -f admin-server.log & tail -f admin-server.log &
# make e2e-test make e2e-test
# env: env:
# API_HOST_NAME: https://notify-api-staging.app.cloud.gov/ API_HOST_NAME: https://notify-api-staging.app.cloud.gov/
# SECRET_KEY: ${{ secrets.SECRET_KEY }} SECRET_KEY: ${{ secrets.SECRET_KEY }}
# DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }} DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
# ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }} ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
# ADMIN_CLIENT_USERNAME: notify-admin ADMIN_CLIENT_USERNAME: notify-admin
# NOTIFY_ENVIRONMENT: e2etest NOTIFY_ENVIRONMENT: e2etest
# NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }} NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }}
# NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }} NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
# NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }} NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
# NOTIFY_E2E_TEST_URI: http://localhost:6012/ NOTIFY_E2E_TEST_URI: http://localhost:6012/
# VCAP_SERVICES: ${{ secrets.VCAP_SERVICES }} VCAP_SERVICES: ${{ secrets.VCAP_SERVICES }}
validate-new-relic-config: validate-new-relic-config:
runs-on: ubuntu-latest runs-on: ubuntu-latest