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.
This commit is contained in:
Thomas O'Donnell 2020-10-14 18:21:35 +02:00 committed by GitHub
parent b2a5c4a3e4
commit c3cc6b174f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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! {