MCPcopy Create free account
hub / github.com/dcos/dcos-cli / test_plugin_remove

Function test_plugin_remove

tests/integration/test_plugin.py:238–253  ·  view source on GitHub ↗
(default_cluster)

Source from the content-addressed store, hash-verified

236
237
238def test_plugin_remove(default_cluster):
239 _install_test_plugin()
240
241 for _ in range(3):
242 code, out, err = exec_cmd(['dcos', 'plugin', 'remove', 'dcos-test'])
243 if sys.platform == 'win32' and code != 0:
244 # We've experienced flakiness with "Access is denied" errors on
245 # our Jenkins Windows nodes. Just retry if it happens, in the future
246 # we should reassess that it's still an issue and address it.
247 time.sleep(3)
248 continue
249 break
250
251 assert err == ''
252 assert out == ''
253 assert code == 0
254
255
256def test_plugin_help_usage(default_cluster):

Callers

nothing calls this directly

Calls 2

_install_test_pluginFunction · 0.85
exec_cmdFunction · 0.85

Tested by

no test coverage detected