Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #302 from gtardif/aci_e2e_readme
Browse files Browse the repository at this point in the history
Doc on running e2e tests
  • Loading branch information
gtardif authored Jun 30, 2020
2 parents f0ab42e + 6d2d510 commit e5e87d3
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,29 @@ If you make changes to the `.proto` files, make sure to `make protos` to generat

## Tests

To run unit tests:
### unit tests

```
make test
```

If you need to update a golden file simply do `go test ./... -test.update-golden`.

### e2e tests

```
make e2e_local
```
This requires a local docker engine running

```
AZURE_TENANT_ID="xxx" AZURE_CLIENT_ID="yyy" AZURE_CLIENT_SECRET="yyy" make e2e_aci
```

This requires azure service principal credentials to login to azure.
To get the values to be set in local environment variables, you can create a new service principal once you're logged in azure (with `docker login azure`)
```
az ad sp create-for-rbac --name 'MyTestServicePrincipal' --sdk-auth
```
Running aci e2e tests will override your local login, the service principal credentials use a token that cannot be refreshed automatically.
You might need to run again `docker login azure` to properly use the command line after running ACI e2e tests.

0 comments on commit e5e87d3

Please sign in to comment.