From c3cc6b174f68e7f6eb40f57b02d4e2fb925a4a96 Mon Sep 17 00:00:00 2001 From: Thomas O'Donnell Date: Wed, 14 Oct 2020 18:21:35 +0200 Subject: [PATCH] test(aws): Ignore tests that check .aws files (#1775) When running the AWS module it will parse the AWS config found in `~/.aws/config` to get the region. This means that tests that expect no region to be set will fail if there exists a default profile with a region set, which is probably true for most AWS users. To avoid this have set the AWS tests that depend on the non-existance of a `.aws/config` to be ignored. --- src/modules/aws.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/aws.rs b/src/modules/aws.rs index a73dc756..f29eaba8 100644 --- a/src/modules/aws.rs +++ b/src/modules/aws.rs @@ -124,6 +124,7 @@ mod tests { use std::io::{self, Write}; #[test] + #[ignore] fn no_region_set() -> io::Result<()> { let actual = ModuleRenderer::new("aws").collect(); let expected = None; @@ -377,6 +378,7 @@ region = us-east-2 } #[test] + #[ignore] fn region_not_set_with_display_region() -> io::Result<()> { let actual = ModuleRenderer::new("aws") .config(toml::toml! {