Skip to content

Commit c734533

Browse files
committed
Get Apigee tests working
1 parent 2deaa4f commit c734533

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/actions/e2e-tests/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ runs:
1111
pipx install poetry
1212
cd tests/e2e-tests && poetry install
1313
14+
- name: Install get_token and get Apigee token
15+
shell: bash
16+
run: |
17+
curl https://login.apigee.com/resources/scripts/sso-cli/ssocli-bundle.zip -O
18+
unzip ssocli-bundle.zip
19+
mkdir -p "$HOME/.local/bin"
20+
./install -b "$HOME/.local/bin"
21+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
22+
echo "APIGEE_ACCESS_TOKEN=$(SSO_LOGIN_URL=https://login.apigee.com get_token -u steve.buxton@nhs.net:$APIGEE_PASSWORD)" >> "$GITHUB_ENV"
23+
1424
- name: Run e2e tests
1525
shell: bash
1626
run: |

.github/workflows/stage-4-acceptance.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,4 @@ jobs:
9595
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9696
NON_PROD_API_KEY: ${{ secrets.NON_PROD_API_KEY }}
9797
INTERNAL_DEV_TEST_PEM: ${{ secrets.INTERNAL_DEV_TEST_PEM }}
98+
APIGEE_PASSWORD: $ {{ secrets. APIGEE_PASSWORD }}

0 commit comments

Comments
 (0)