Skip to content

Commit 8b18116

Browse files
committed
test
1 parent 82599c8 commit 8b18116

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_apply.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ def test_s3_backend_configs_merge(monkeypatch):
294294
encryption = true
295295
use_path_style = true
296296
acl = "bucket-owner-full-control"
297+
shared_config_files = ["~/.aws/config","~/other/config"]
297298
}
298299
}
299300
resource "aws_s3_bucket" "test-bucket" {
@@ -317,7 +318,9 @@ def check_override_file_backend_extra_content(override_file):
317318

318319
return result.get("use_path_style") is True and \
319320
result.get("encryption") is True and \
320-
result.get("acl") == "bucket-owner-full-control"
321+
result.get("acl") == "bucket-owner-full-control" and \
322+
isinstance(result.get("shared_config_files"), list) and \
323+
len(result.get("shared_config_files")) == 2
321324

322325

323326
@pytest.mark.parametrize("endpoints", [

0 commit comments

Comments
 (0)