Skip to content

Commit 41878ab

Browse files
committed
Update README
1 parent a9c6adc commit 41878ab

1 file changed

Lines changed: 11 additions & 19 deletions

File tree

tests/e2e-tests/README.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
11
# E2E Tests
22

3-
## Generate An Apigee Access Token
4-
5-
To generate authentication using Apigee, you must have access to an Apigee account and use `get_token` via the command line and generate an Apigee access token.
6-
7-
**Tokens expire once per day and require refreshing.**
8-
9-
* Install [`get_token`](https://docs.apigee.com/api-platform/system-administration/auth-tools#install)
10-
* Run the following command and log in with your Apigee credentials when prompted:
11-
12-
```shell
13-
export APIGEE_ACCESS_TOKEN=$(SSO_LOGIN_URL=https://login.apigee.com get_token)
14-
```
15-
16-
* If your token does not refresh, try clearing the cache:
17-
18-
```shell
19-
export APIGEE_ACCESS_TOKEN=$(SSO_LOGIN_URL=https://login.apigee.com get_token --clear-sso-cache)
20-
```
21-
223
### Set Proxy Name
234

245
Set the `PROXY_NAME` environment variable to specify the environment for test execution. You can find the proxy name by logging into [Apigee](https://apigee.com/edge), navigating to 'API Proxies' and searching for 'supplier-api' for lower environments like internal-dev.
@@ -31,3 +12,14 @@ Available values for `PROXY_NAME` include:
3112

3213
* `nhs-notify-supplier--internal-dev--nhs-notify-supplier`
3314
* `nhs-notify-supplier--internal-dev--nhs-notify-supplier-pr<num>`
15+
16+
### Set Up API Keys
17+
18+
Set the following environment variables to use the Apigee API keys:
19+
20+
```shell
21+
export NON_PROD_API_KEY=******
22+
export STATUS_ENDPOINT_API_KEY=******
23+
```
24+
25+
The values have been redacted here but you can obtain them from another team member.

0 commit comments

Comments
 (0)