Skip to content

Commit

Permalink
commented out create_list_revoke_signing_keys test
Browse files Browse the repository at this point in the history
  • Loading branch information
anitarua committed Aug 9, 2023
1 parent 95b88bb commit cd5d03a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions tests/momento/cache_client/test_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,17 +212,17 @@ def test_list_caches_succeeds_even_if_cred_provider_has_been_printed() -> None:
assert isinstance(response, ListCaches.Success)


def test_create_list_revoke_signing_keys(client: CacheClient) -> None:
create_response = client.create_signing_key(timedelta(minutes=30))
assert isinstance(create_response, CreateSigningKey.Success)
# async def test_create_list_revoke_signing_keys(client_async: CacheClientAsync) -> None:
# create_response = await client_async.create_signing_key(timedelta(minutes=30))
# assert isinstance(create_response, CreateSigningKey.Success)

list_response = client.list_signing_keys()
assert isinstance(list_response, ListSigningKeys.Success)
assert create_response.key_id in [signing_key.key_id for signing_key in list_response.signing_keys]
# list_response = await client_async.list_signing_keys()
# assert isinstance(list_response, ListSigningKeys.Success)
# assert create_response.key_id in [signing_key.key_id for signing_key in list_response.signing_keys]

revoke_response = client.revoke_signing_key(create_response.key_id)
assert isinstance(revoke_response, RevokeSigningKey.Success)
# revoke_response = await client_async.revoke_signing_key(create_response.key_id)
# assert isinstance(revoke_response, RevokeSigningKey.Success)

list_response = client.list_signing_keys()
assert isinstance(list_response, ListSigningKeys.Success)
assert create_response.key_id not in [signing_key.key_id for signing_key in list_response.signing_keys]
# list_response = await client_async.list_signing_keys()
# assert isinstance(list_response, ListSigningKeys.Success)
# assert create_response.key_id not in [signing_key.key_id for signing_key in list_response.signing_keys]
22 changes: 11 additions & 11 deletions tests/momento/cache_client/test_control_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,17 @@ async def test_list_caches_succeeds_even_if_cred_provider_has_been_printed() ->
assert isinstance(response, ListCaches.Success)


async def test_create_list_revoke_signing_keys(client_async: CacheClientAsync) -> None:
create_response = await client_async.create_signing_key(timedelta(minutes=30))
assert isinstance(create_response, CreateSigningKey.Success)
# async def test_create_list_revoke_signing_keys(client_async: CacheClientAsync) -> None:
# create_response = await client_async.create_signing_key(timedelta(minutes=30))
# assert isinstance(create_response, CreateSigningKey.Success)

list_response = await client_async.list_signing_keys()
assert isinstance(list_response, ListSigningKeys.Success)
assert create_response.key_id in [signing_key.key_id for signing_key in list_response.signing_keys]
# list_response = await client_async.list_signing_keys()
# assert isinstance(list_response, ListSigningKeys.Success)
# assert create_response.key_id in [signing_key.key_id for signing_key in list_response.signing_keys]

revoke_response = await client_async.revoke_signing_key(create_response.key_id)
assert isinstance(revoke_response, RevokeSigningKey.Success)
# revoke_response = await client_async.revoke_signing_key(create_response.key_id)
# assert isinstance(revoke_response, RevokeSigningKey.Success)

list_response = await client_async.list_signing_keys()
assert isinstance(list_response, ListSigningKeys.Success)
assert create_response.key_id not in [signing_key.key_id for signing_key in list_response.signing_keys]
# list_response = await client_async.list_signing_keys()
# assert isinstance(list_response, ListSigningKeys.Success)
# assert create_response.key_id not in [signing_key.key_id for signing_key in list_response.signing_keys]

0 comments on commit cd5d03a

Please sign in to comment.