Skip to content

Commit 0e007cf

Browse files
author
Jordan Mance
committed
Adding cache clearing steps between Dev / Data test suites
1 parent 4c84a4e commit 0e007cf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cli/run_tests.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)