@@ -744,16 +744,13 @@ def create_aws_tasks():
744
744
"session-creds" ,
745
745
"web-identity" ,
746
746
"web-identity-session-name" ,
747
- "ecs" ,
748
747
]
749
748
assume_func = FunctionCall (func = "assume ec2 role" )
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 } "
752
751
base_tags = ["auth-aws" ]
753
752
server_vars = dict (AUTH_AWS = "1" , VERSION = version )
754
753
server_func = FunctionCall (func = "run server" , vars = server_vars )
755
- if test_type == "ecs" :
756
- python = None # noqa:PLW2901
757
754
name = get_task_name (f"{ base_name } -{ test_type } " , python = python )
758
755
test_vars = dict (TEST_NAME = "auth_aws" , SUB_TEST_NAME = test_type , PYTHON_VERSION = python )
759
756
if test_type == "web-identity-session-name" :
@@ -764,13 +761,19 @@ def create_aws_tasks():
764
761
funcs = [server_func , assume_func , test_func ]
765
762
tasks .append (EvgTask (name = name , tags = tags , commands = funcs ))
766
763
767
- # The EKS test does not start a server
768
- tags = ["auth-aws" , "auth-aws-eks" ]
769
- name = get_task_name ("test-auth-aws-eks" )
770
- test_vars = dict (TEST_NAME = "auth_aws" , SUB_TEST_NAME = "eks" )
771
- test_func = FunctionCall (func = "run tests" , vars = test_vars )
772
- funcs = [assume_func , test_func ]
773
- tasks .append (EvgTask (name = name , tags = tags , commands = funcs ))
764
+ for test_type in ["eks" , "ecs" ]:
765
+ tags = ["auth-aws" , f"auth-aws-{ test_type } " ]
766
+ base_name = f"test-auth-aws-{ test_type } "
767
+ test_vars = dict (TEST_NAME = "auth_aws" , SUB_TEST_NAME = test_type )
768
+ test_func = FunctionCall (func = "run tests" , vars = test_vars )
769
+ funcs = [assume_func , test_func ]
770
+ if test_type == "ecs" :
771
+ server_vars = dict (AUTH_AWS = "1" , VERSION = version )
772
+ server_func = FunctionCall (func = "run server" , vars = server_vars )
773
+ base_name += "-latest"
774
+ funcs = [assume_func , server_func , test_func ]
775
+ name = get_task_name (base_name )
776
+ tasks .append (EvgTask (name = name , tags = tags , commands = funcs ))
774
777
775
778
return tasks
776
779
0 commit comments