Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
goulter committed Jan 9, 2025
1 parent 0dded38 commit aa66118
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/scripts/configure-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ function get-run-tests-args() {
echo "$payload"
}

function get-input-reason() {
# Determine the REASON
if [ -n "$INPUT_REASON" ]; then
REASON="$INPUT_REASON"
elif [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
REASON="Triggered from PR"
else
REASON="No reason provided"
fi
echo "$REASON"
}

function configure-workflow() {
local event_name="$GITHUB_EVENT_NAME"
local actor="$GITHUB_ACTOR"
Expand All @@ -122,4 +134,5 @@ function configure-workflow() {
set-output idp-host "${INPUT_TARGET_IDP_HOST}"
set-output run-tests-args "$(get-run-tests-args $artifact_object_path)"
set-output slack-channel "${INPUT_SLACK_CHANNEL:-#iam-bots}"
set-output input-reason "$(get-input-reason)"
}
4 changes: 3 additions & 1 deletion .github/workflows/automated-idp-web-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
- name: Notify Teams of Test Run Start
env:
IDP_ENV: ${{ steps.configure.outputs.idp-env }}
INPUT_REASON: ${{ steps.configure.outputs.input-reason }}
run: |
curl -H "Content-Type: application/json" \
-d '{
Expand All @@ -126,7 +127,8 @@ jobs:
{
"type": "FactSet",
"facts": [
{"title": "IdP Web Tests running on ", "value": "'${{ env.IDP_ENV }}'"}
{"title": "IdP Web Tests running on ", "value": "'${{ env.IDP_ENV }}'"},
{"title": "Reason for Test Run", "value": "${{ env.INPUT_REASON }}"}
]
}
]
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ services:
volumes:
- ${CREDENTIAL_MOUNT_POINT}:/secrets:ro
- ${REPORT_MOUNT_POINT}:/tmp/webdriver-report
command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444
# command: pytest ${PYTEST_ARGS} tests/access_control/test_auto_2fa.py --selenium-server selenium:4444
# command: pytest ${PYTEST_ARGS} --selenium-server selenium:4444
command: echo "The test would start here"

selenium:
image: selenium/standalone-chrome:4
Expand Down

0 comments on commit aa66118

Please sign in to comment.