-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
W4k.Extensions.Configuration.Aws.SecretsManager.IntegrationTests/README.md
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,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" | ||
``` |