Skip to content

Commit

Permalink
isolated slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stormshield-gt committed Dec 12, 2024
1 parent cf4b11f commit 7d3158e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: cargo test
run: cargo test --all-targets --all-features --workspace
run: cargo test --all-targets --all-features --workspace -- --include-ignored
# https://github.com/rust-lang/cargo/issues/6669
- name: cargo test --doc
run: cargo test --all-features --workspace --doc
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ See the the [tests][3] directory for tests. Run tests with `cargo test`.
Docker. In order to run tests Docker must be running locally (Docker Desktop
works). The first run will be longer than other because it will fetch images.

Some long-running tests are ignored by default locally. To run them do:

```sh
cargo test -- --include-ignored
```

## Contributing

Check out the [issues][2] for items needing attention or submit your own and
Expand All @@ -128,6 +134,6 @@ architecture of this library and how to add additional functionality to it.

[1]: https://developer.hashicorp.com/vault/
[2]: https://github.com/jmgilman/vaultrs/issues
[3]: https://github.com/jmgilman/vaultrs/tree/master/tests
[3]: https://github.com/jmgilman/vaultrs/tree/master/vaultrs-tests/tests/api_tests
[5]: https://github.com/jmgilman/vaultrs/tree/master/CONTRIBUTING.md
[6]: https://docs.rs/vaultrs
2 changes: 2 additions & 0 deletions vaultrs-tests/tests/api_tests/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use vaultrs::error::ClientError;
use vaultrs::sys::{auth, mount};

#[tokio::test]
#[ignore]
async fn test_auth() {
let test = Test::builder().with_localstack(["iam", "sts"]).await;
let client = test.client();
Expand Down Expand Up @@ -55,6 +56,7 @@ async fn test_auth() {
}

#[tokio::test]
#[ignore]
async fn test_secret_engine() {
let test = Test::builder().with_localstack(["iam", "sts"]).await;

Expand Down
1 change: 1 addition & 0 deletions vaultrs-tests/tests/api_tests/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use vaultrs_login::LoginClient;
use crate::common::Test;

#[tokio::test]
#[ignore]
async fn test() {
let mut test = Test::builder()
.with_localstack(["iam", "sts"])
Expand Down

0 comments on commit 7d3158e

Please sign in to comment.