Skip to content

Commit

Permalink
Add integration tests readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wdolek committed Aug 1, 2024
1 parent e574e5a commit f3502d8
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## W4k AWS Secrets Manager, Integration tests

In order to run the integration tests, you need to have a valid AWS credentials set up on your machine.
Integration tests require `w4ktest@admin` profile (see [`SecretsManagerTestFixture.cs`](./SecretsManagerTestFixture.cs)), it must be set up in your AWS credentials file (`~/.aws/credentials`).

```ini
[w4ktest]
aws_access_key_id = 00000000000000000000
aws_secret_access_key = 0000000000000000000000000000000000000000
aws_session_token = ...
account = ...
role = ...

[w4ktest@admin]
role_arn = arn:aws:iam::000000000000:role/my-role@admin
source_profile = w4ktest
```

Once credentials are set up, you can run the integration tests as any other tests in the solution.

To run only unit tests (and skip integration tests), filter out tests by category:

```bash
dotnet test --filter "TestCategory!=Integration"
```

0 comments on commit f3502d8

Please sign in to comment.