2323
2424DEFAULT_RESPONSE_DATA = {
2525 "Version" : 1 ,
26- "AccessKeyId" : "akid123 " ,
27- "SecretAccessKey" : "s3cr3t " ,
28- "SessionToken" : "session_token " ,
26+ "AccessKeyId" : "foo " ,
27+ "SecretAccessKey" : "bar " ,
28+ "SessionToken" : "baz " ,
2929}
3030
3131
@@ -71,9 +71,9 @@ async def test_valid_credentials_with_session_token():
7171 resolver = ProcessCredentialsResolver (["mock-process" ])
7272 identity = await resolver .get_identity (properties = {})
7373
74- assert identity .access_key_id == "akid123 "
75- assert identity .secret_access_key == "s3cr3t "
76- assert identity .session_token == "session_token "
74+ assert identity .access_key_id == "foo "
75+ assert identity .secret_access_key == "bar "
76+ assert identity .session_token == "baz "
7777 assert identity .expiration is None
7878 assert identity .account_id is None
7979
@@ -82,8 +82,8 @@ async def test_valid_credentials_with_session_token():
8282async def test_valid_credentials_without_session_token ():
8383 resp_data = {
8484 "Version" : 1 ,
85- "AccessKeyId" : "akid456 " ,
86- "SecretAccessKey" : "s3cr3t456 " ,
85+ "AccessKeyId" : "foo " ,
86+ "SecretAccessKey" : "bar " ,
8787 }
8888 resp_body = json .dumps (resp_data )
8989 process = mock_subprocess (0 , resp_body .encode ("utf-8" ))
@@ -92,8 +92,8 @@ async def test_valid_credentials_without_session_token():
9292 resolver = ProcessCredentialsResolver (["mock-process" ])
9393 identity = await resolver .get_identity (properties = {})
9494
95- assert identity .access_key_id == "akid456 "
96- assert identity .secret_access_key == "s3cr3t456 "
95+ assert identity .access_key_id == "foo "
96+ assert identity .secret_access_key == "bar "
9797 assert identity .session_token is None
9898
9999
@@ -143,7 +143,7 @@ async def test_non_zero_exit_code():
143143async def test_missing_access_key_id ():
144144 resp_data = {
145145 "Version" : 1 ,
146- "SecretAccessKey" : "s3cr3t " ,
146+ "SecretAccessKey" : "bar " ,
147147 }
148148 resp_body = json .dumps (resp_data )
149149 process = mock_subprocess (0 , resp_body .encode ("utf-8" ))
@@ -161,7 +161,7 @@ async def test_missing_access_key_id():
161161async def test_missing_secret_access_key ():
162162 resp_data = {
163163 "Version" : 1 ,
164- "AccessKeyId" : "akid123 " ,
164+ "AccessKeyId" : "foo " ,
165165 }
166166 resp_body = json .dumps (resp_data )
167167 process = mock_subprocess (0 , resp_body .encode ("utf-8" ))
@@ -192,8 +192,8 @@ async def test_invalid_version():
192192@pytest .mark .asyncio
193193async def test_missing_version ():
194194 resp_data = {
195- "AccessKeyId" : "akid123 " ,
196- "SecretAccessKey" : "s3cr3t " ,
195+ "AccessKeyId" : "foo " ,
196+ "SecretAccessKey" : "bar " ,
197197 }
198198 resp_body = json .dumps (resp_data )
199199 process = mock_subprocess (0 , resp_body .encode ("utf-8" ))
0 commit comments