MCPcopy Index your code
hub / github.com/StackStorm/st2 / test_run

Method test_run

st2client/tests/unit/test_shell.py:377–384  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

375 self.assertIn("cache_token = False", stdout)
376
377 def test_run(self):
378 args_list = [
379 ["run", "-h"],
380 ["run", "abc", "-h"],
381 ["run", "remote", "hosts=192.168.1.1", "user=st2", 'cmd="ls -l"'],
382 ["run", "remote-fib", "hosts=192.168.1.1", "3", "8"],
383 ]
384 self._validate_parser(args_list, is_subcommand=False)
385
386 def test_runner(self):
387 args_list = [["runner", "list"], ["runner", "get", "abc"]]

Callers

nothing calls this directly

Calls 1

_validate_parserMethod · 0.95

Tested by

no test coverage detected