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

Method test_upgrade_plugin

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

Source from the content-addressed store, hash-verified

126
127 @requires_api_version('1.26')
128 def test_upgrade_plugin(self):
129 pl_data = self.ensure_plugin_installed(SSHFS)
130 assert pl_data['Enabled'] is False
131 prv = self.client.plugin_privileges(SSHFS)
132 logs = list(self.client.upgrade_plugin(SSHFS, SSHFS, prv))
133 assert filter(lambda x: x['status'] == 'Download complete', logs)
134 assert self.client.inspect_plugin(SSHFS)
135 assert self.client.enable_plugin(SSHFS)
136
137 def test_create_plugin(self):
138 plugin_data_dir = os.path.join(

Callers

nothing calls this directly

Calls 5

plugin_privilegesMethod · 0.80
upgrade_pluginMethod · 0.80
inspect_pluginMethod · 0.80
enable_pluginMethod · 0.80

Tested by

no test coverage detected