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

Method test_inspect_secret

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

Source from the content-addressed store, hash-verified

38 assert data['Spec']['Name'] == 'favorite_character'
39
40 def test_inspect_secret(self):
41 secret_name = 'favorite_character'
42 secret_id = self.client.create_secret(
43 secret_name, 'sakuya izayoi'
44 )
45 self.tmp_secrets.append(secret_id)
46 data = self.client.inspect_secret(secret_id)
47 assert data['Spec']['Name'] == secret_name
48 assert 'ID' in data
49 assert 'Version' in data
50
51 def test_remove_secret(self):
52 secret_name = 'favorite_character'

Callers

nothing calls this directly

Calls 2

create_secretMethod · 0.80
inspect_secretMethod · 0.80

Tested by

no test coverage detected