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

Commit e5e87d3

Browse files
authored
Merge pull request #302 from gtardif/aci_e2e_readme
Doc on running e2e tests
2 parents f0ab42e + 6d2d510 commit e5e87d3

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,29 @@ If you make changes to the `.proto` files, make sure to `make protos` to generat
3333

3434
## Tests
3535

36-
To run unit tests:
36+
### unit tests
3737

3838
```
3939
make test
4040
```
4141

4242
If you need to update a golden file simply do `go test ./... -test.update-golden`.
43+
44+
### e2e tests
45+
46+
```
47+
make e2e_local
48+
```
49+
This requires a local docker engine running
50+
51+
```
52+
AZURE_TENANT_ID="xxx" AZURE_CLIENT_ID="yyy" AZURE_CLIENT_SECRET="yyy" make e2e_aci
53+
```
54+
55+
This requires azure service principal credentials to login to azure.
56+
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`)
57+
```
58+
az ad sp create-for-rbac --name 'MyTestServicePrincipal' --sdk-auth
59+
```
60+
Running aci e2e tests will override your local login, the service principal credentials use a token that cannot be refreshed automatically.
61+
You might need to run again `docker login azure` to properly use the command line after running ACI e2e tests.

0 commit comments

Comments
 (0)