MCPcopy Index your code
hub / github.com/docker/docker-py / test_install_plugin

Method test_install_plugin

tests/integration/api_plugin_test.py:115–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 assert self.client.remove_plugin(SSHFS, force=True) is True
114
115 def test_install_plugin(self):
116 try:
117 self.client.remove_plugin(SSHFS, force=True)
118 except docker.errors.APIError:
119 pass
120
121 prv = self.client.plugin_privileges(SSHFS)
122 logs = list(self.client.pull_plugin(SSHFS, prv))
123 assert filter(lambda x: x['status'] == 'Download complete', logs)
124 assert self.client.inspect_plugin(SSHFS)
125 assert self.client.enable_plugin(SSHFS)
126
127 @requires_api_version('1.26')
128 def test_upgrade_plugin(self):

Callers

nothing calls this directly

Calls 5

remove_pluginMethod · 0.80
plugin_privilegesMethod · 0.80
pull_pluginMethod · 0.80
inspect_pluginMethod · 0.80
enable_pluginMethod · 0.80

Tested by

no test coverage detected