(self)
| 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" |
nothing calls this directly
no test coverage detected