File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,16 @@ def print_test(test: str):
4444 print(f"{c.fg_yl} Starting test: {test}{c.rs}")
4545 print(f"{c.fg_bl}-----------------------------------------{c.rs}")
4646
47-
48- def main():
47+ def clear_cache():
4948 delete_cache(f'{CACHE_DIR}/other')
5049 delete_cache(f'{CACHE_DIR}/okta')
5150 delete_cache(f'{VAULT_DIR}/sso')
5251 delete_cache(f'{VAULT_DIR}/sts')
5352 delete_file(CONFIG_FILE)
5453
54+ def main():
55+ clear_cache()
56+
5557 auth_type = sys.argv[1] if len(sys.argv) > 1 else "none"
5658 if auth_type.lower() not in AUTH_TYPES:
5759 raise ValueError(f'Invalid role passed in. expected params are: {AUTH_TYPES}')
@@ -62,6 +64,8 @@ def main():
6264 ConfigureGoogle('dev').run()
6365 dev_tests()
6466
67+ clear_cache()
68+
6569 # Login to data role
6670 print_test("Data Login")
6771 ConfigureGoogle('data').run()
@@ -72,6 +76,7 @@ def main():
7276 DevLogin().run()
7377 dev_tests()
7478
79+ clear_cache()
7580 # Login to data role
7681 print_test("Data Login")
7782 DataLogin().run()
You can’t perform that action at this time.
0 commit comments