We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93bfbfe commit 24eb3b6Copy full SHA for 24eb3b6
1 file changed
test/wargames_test.py
@@ -87,6 +87,16 @@ def check_scenario_permissions(self):
87
# Sanity check
88
assert self.warnet("bitcoin rpc miner getblockcount") == "6"
89
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
100
101
if __name__ == "__main__":
102
test = WargamesTest()
0 commit comments