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

Method test_endpoints_default

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

Source from the content-addressed store, hash-verified

120 self.assertIn("error: too few arguments", stderr)
121
122 def test_endpoints_default(self):
123 base_url = "http://127.0.0.1"
124 auth_url = "http://127.0.0.1:9100"
125 api_url = "http://127.0.0.1:9101/v1"
126 stream_url = "http://127.0.0.1:9102/v1"
127 args = ["trigger", "list"]
128 parsed_args = self.shell.parser.parse_args(args)
129 client = self.shell.get_client(parsed_args)
130 self.assertEqual(client.endpoints["base"], base_url)
131 self.assertEqual(client.endpoints["auth"], auth_url)
132 self.assertEqual(client.endpoints["api"], api_url)
133 self.assertEqual(client.endpoints["stream"], stream_url)
134
135 def test_endpoints_base_url_from_cli(self):
136 base_url = "http://www.st2.com"

Callers

nothing calls this directly

Calls 1

get_clientMethod · 0.80

Tested by

no test coverage detected