Skip to content

Commit

Permalink
Added README for running integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
4gust committed Sep 26, 2024
1 parent ffc54f7 commit e38c34e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions apps/tests/integration/README.md
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/
```

0 comments on commit e38c34e

Please sign in to comment.