@@ -743,18 +743,19 @@ def create_aws_tasks():
743
743
"env-creds" ,
744
744
"session-creds" ,
745
745
"web-identity" ,
746
+ "ecs" ,
747
+ "eks" ,
746
748
]
747
- base_tags = ["auth-aws" ]
748
- assume_func = FunctionCall (func = "assume ec2 role" )
749
-
750
749
for version , test_type , python in zip_cycle (get_versions_from ("4.4" ), aws_test_types , CPYTHONS ):
751
750
base_name = f"test-auth-aws-{ version } "
751
+ base_tags = ["auth-aws" ]
752
+ server_vars = dict (AUTH_AWS = "1" , VERSION = version )
753
+ server_func = FunctionCall (func = "run server" , vars = server_vars )
754
+ assume_func = FunctionCall (func = "assume ec2 role" )
752
755
tags = [* base_tags , f"auth-aws-{ test_type } " ]
753
756
name = get_task_name (f"{ base_name } -{ test_type } " , python = python )
754
757
test_vars = dict (TEST_NAME = "auth_aws" , SUB_TEST_NAME = test_type , PYTHON_VERSION = python )
755
758
test_func = FunctionCall (func = "run tests" , vars = test_vars )
756
- server_vars = dict (AUTH_AWS = "1" , VERSION = version )
757
- server_func = FunctionCall (func = "run server" , vars = server_vars )
758
759
funcs = [server_func , assume_func , test_func ]
759
760
tasks .append (EvgTask (name = name , tags = tags , commands = funcs ))
760
761
@@ -771,14 +772,6 @@ def create_aws_tasks():
771
772
funcs = [server_func , assume_func , test_func ]
772
773
tasks .append (EvgTask (name = name , tags = tags , commands = funcs ))
773
774
774
- for test_type in ["eks" , "ecs" ]:
775
- name = get_task_name (f"test-auth-aws-{ test_type } " )
776
- tags = [* base_tags , f"auth-aws-{ test_type } " ]
777
- test_vars = dict (TEST_NAME = "auth_aws" , SUB_TEST_NAME = test_type )
778
- test_func = FunctionCall (func = "run tests" , vars = test_vars )
779
- funcs = [assume_func , test_func ]
780
- tasks .append (EvgTask (name = name , tags = tags , commands = funcs ))
781
-
782
775
return tasks
783
776
784
777
0 commit comments