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

Function test_plugin_config_env

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

Source from the content-addressed store, hash-verified

222
223
224def test_plugin_config_env(default_cluster):
225 _install_test_plugin()
226
227 code, _, _ = exec_cmd(['dcos', 'config', 'set', 'test.escape_sequence', 'bar'])
228 assert code == 0
229
230 code, out, _ = exec_cmd(['dcos', 'test'])
231 assert code == 0
232 out = json.loads(out)
233
234 assert out['args'][1:] == ['test']
235 assert out['env'].get('DCOS_TEST_ESCAPE_SEQUENCE') == 'bar'
236
237
238def test_plugin_remove(default_cluster):

Callers

nothing calls this directly

Calls 2

_install_test_pluginFunction · 0.85
exec_cmdFunction · 0.85

Tested by

no test coverage detected