@@ -483,18 +483,17 @@ def create_perf_variants():
483
483
def create_aws_auth_variants ():
484
484
variants = []
485
485
486
- for host_name in ["ubuntu20" , " ubuntu22" , "win64" , "macos" ]:
486
+ for host_name in ["ubuntu22" , "win64" , "macos" ]:
487
487
expansions = dict ()
488
+ tasks = [".auth-aws" ]
488
489
tags = []
489
490
if host_name == "macos" :
490
491
tasks = [
491
492
".auth-aws !.auth-aws-web-identity !.auth-aws-ecs !.auth-aws-ec2 !.auth-aws-eks"
492
493
]
493
494
tags = ["pr" ]
494
- elif host_name in [ "win64" , "ubuntu20" ] :
495
+ elif host_name == "win64" :
495
496
tasks = [".auth-aws !.auth-aws-ecs !.auth-aws-eks" ]
496
- elif host_name == "ubuntu22" :
497
- tasks = [".auth-aws !.server-4.4 !.server-5.0" ]
498
497
host = HOSTS [host_name ]
499
498
variant = create_variant (
500
499
tasks ,
@@ -744,27 +743,34 @@ def create_aws_tasks():
744
743
"env-creds" ,
745
744
"session-creds" ,
746
745
"web-identity" ,
747
- "web-identity-session-name" ,
748
746
]
749
747
base_tags = ["auth-aws" ]
750
748
assume_func = FunctionCall (func = "assume ec2 role" )
751
749
752
750
for version , test_type , python in zip_cycle (get_versions_from ("4.4" ), aws_test_types , CPYTHONS ):
753
751
base_name = f"test-auth-aws-{ version } "
754
- name = get_task_name (f"{ base_name } -{ test_type } " , python = python )
755
- orig_test_type = test_type
756
- if test_type == "web-identity-session-name" :
757
- test_type = "web-identity" # noqa:PLW2901
758
752
tags = [* base_tags , f"auth-aws-{ test_type } " ]
753
+ name = get_task_name (f"{ base_name } -{ test_type } " , python = python )
759
754
test_vars = dict (TEST_NAME = "auth_aws" , SUB_TEST_NAME = test_type , PYTHON_VERSION = python )
760
- if orig_test_type == "web-identity-session-name" :
761
- test_vars ["AWS_ROLE_SESSION_NAME" ] = "test"
762
755
test_func = FunctionCall (func = "run tests" , vars = test_vars )
763
756
server_vars = dict (AUTH_AWS = "1" , VERSION = version )
764
757
server_func = FunctionCall (func = "run server" , vars = server_vars )
765
758
funcs = [server_func , assume_func , test_func ]
766
759
tasks .append (EvgTask (name = name , tags = tags , commands = funcs ))
767
760
761
+ if test_type == "web-identity" :
762
+ tags = [* base_tags , "auth-aws-web-identity" ]
763
+ name = get_task_name (f"{ base_name } -web-identity-session-name" , python = python )
764
+ test_vars = dict (
765
+ TEST_NAME = "auth_aws" ,
766
+ SUB_TEST_NAME = "web-identity" ,
767
+ AWS_ROLE_SESSION_NAME = "test" ,
768
+ PYTHON_VERSION = python ,
769
+ )
770
+ test_func = FunctionCall (func = "run tests" , vars = test_vars )
771
+ funcs = [server_func , assume_func , test_func ]
772
+ tasks .append (EvgTask (name = name , tags = tags , commands = funcs ))
773
+
768
774
for test_type in ["eks" , "ecs" ]:
769
775
name = get_task_name (f"test-auth-aws-{ test_type } " )
770
776
tags = [* base_tags , f"auth-aws-{ test_type } " ]
0 commit comments