Skip to content

Commit 4aecebb

Browse files
committed
Added test to verify the role override works
1 parent 5434430 commit 4aecebb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ def test_load_config():
1717
assert cfg.raw[key] == val
1818

1919

20+
def test_role_override():
21+
role = 'arn:aws:iam::00000000000:role/myfunc_role'
22+
cfg = config.Config(EX_CONFIG, role=role)
23+
24+
assert cfg.role is role
25+
26+
2027
def test_set_publish():
2128
cfg = config.Config(EX_CONFIG)
2229
# Check that we default to false

0 commit comments

Comments
 (0)