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

Method test_remove_secret

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

Source from the content-addressed store, hash-verified

49 assert 'Version' in data
50
51 def test_remove_secret(self):
52 secret_name = 'favorite_character'
53 secret_id = self.client.create_secret(
54 secret_name, 'sakuya izayoi'
55 )
56 self.tmp_secrets.append(secret_id)
57
58 assert self.client.remove_secret(secret_id)
59 with pytest.raises(docker.errors.NotFound):
60 self.client.inspect_secret(secret_id)
61
62 def test_list_secrets(self):
63 secret_name = 'favorite_character'

Callers

nothing calls this directly

Calls 3

create_secretMethod · 0.80
remove_secretMethod · 0.80
inspect_secretMethod · 0.80

Tested by

no test coverage detected