MCPcopy Create free account
hub / github.com/docker/docker-py / test_list_secrets

Method test_list_secrets

tests/integration/api_secret_test.py:62–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

60 self.client.inspect_secret(secret_id)
61
62 def test_list_secrets(self):
63 secret_name = 'favorite_character'
64 secret_id = self.client.create_secret(
65 secret_name, 'sakuya izayoi'
66 )
67 self.tmp_secrets.append(secret_id)
68
69 data = self.client.secrets(filters={'names': ['favorite_character']})
70 assert len(data) == 1
71 assert data[0]['ID'] == secret_id['ID']

Callers

nothing calls this directly

Calls 2

create_secretMethod · 0.80
secretsMethod · 0.45

Tested by

no test coverage detected