Skip to content

Commit 24eb3b6

Browse files
committed
test: cover create kubeconfig for users only
1 parent 93bfbfe commit 24eb3b6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/wargames_test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ def check_scenario_permissions(self):
8787
# Sanity check
8888
assert self.warnet("bitcoin rpc miner getblockcount") == "6"
8989

90+
self.log.info("Re-generate kubeconfigs after a scenario has been run")
91+
self.log.info(self.warnet("admin create-kubeconfigs"))
92+
kubeconfig_dir = Path("kubeconfigs/")
93+
count = 0
94+
for p in kubeconfig_dir.iterdir():
95+
if p.is_file():
96+
print(p)
97+
assert "warnet-user" in str(p)
98+
count += 1
99+
assert count <= 1
90100

91101
if __name__ == "__main__":
92102
test = WargamesTest()

0 commit comments

Comments
 (0)