-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README for running integration tests
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Go Integration Test | ||
|
||
This guide explains how to: | ||
|
||
1. Download a certificate from [link](https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/asset/Microsoft_Azure_KeyVault/Certificate/https://msidlabs.vault.azure.net/certificates/LabAuth). | ||
2. Download the `.pex/.pem` format | ||
3. Convert the `.cert` file to `.pem` file. | ||
4. Execute Go integration tests. | ||
|
||
## Prerequisites | ||
|
||
- Run `openssl pkcs12 -in <path to the cert>/cert.pfx -out <Go source folder>/cert.pem -nodes -passin pass:''` | ||
- It should be in the root folder of the `microsoft-authentication-library-for-go` | ||
|
||
## Steps | ||
|
||
### 1. Running the tests | ||
|
||
```bash | ||
go test -race ./apps/tests/integration/ | ||
``` |