@@ -1306,7 +1306,7 @@ def test_retrieve_subject_token_success_temp_creds_no_environment_vars(
13061306 self .assert_aws_metadata_request_kwargs (
13071307 request .call_args_list [2 ][1 ],
13081308 "{}/{}" .format (SECURITY_CREDS_URL , self .AWS_ROLE ),
1309- { "Content-Type" : "application/json" } ,
1309+ None ,
13101310 )
13111311
13121312 # Retrieve subject_token again. Region should not be queried again.
@@ -1329,7 +1329,7 @@ def test_retrieve_subject_token_success_temp_creds_no_environment_vars(
13291329 self .assert_aws_metadata_request_kwargs (
13301330 new_request .call_args_list [1 ][1 ],
13311331 "{}/{}" .format (SECURITY_CREDS_URL , self .AWS_ROLE ),
1332- { "Content-Type" : "application/json" } ,
1332+ None ,
13331333 )
13341334
13351335 @mock .patch ("google.auth._helpers.utcnow" )
@@ -1394,7 +1394,6 @@ def test_retrieve_subject_token_success_temp_creds_no_environment_vars_idmsv2(
13941394 request .call_args_list [4 ][1 ],
13951395 "{}/{}" .format (SECURITY_CREDS_URL , self .AWS_ROLE ),
13961396 {
1397- "Content-Type" : "application/json" ,
13981397 "X-aws-ec2-metadata-token" : self .AWS_IMDSV2_SESSION_TOKEN ,
13991398 },
14001399 )
@@ -1684,7 +1683,6 @@ def test_retrieve_subject_token_success_ipv6(self, utcnow):
16841683 request .call_args_list [4 ][1 ],
16851684 "{}/{}" .format (SECURITY_CREDS_URL_IPV6 , self .AWS_ROLE ),
16861685 {
1687- "Content-Type" : "application/json" ,
16881686 "X-aws-ec2-metadata-token" : self .AWS_IMDSV2_SESSION_TOKEN ,
16891687 },
16901688 )
0 commit comments