(params ...string)
| 65 | } |
| 66 | |
| 67 | func (s *CmdSuite) run(params ...string) string { |
| 68 | args := []string{"vctl"} |
| 69 | args = append(args, params...) |
| 70 | args = append(args, fmt.Sprintf("--vulcan=%s", s.testServer.URL)) |
| 71 | s.out = &bytes.Buffer{} |
| 72 | s.cmd = &Command{registry: registry.GetRegistry(), out: s.out, vulcanUrl: s.testServer.URL} |
| 73 | s.cmd.Run(args) |
| 74 | return strings.Replace(s.out.String(), "\n", " ", -1) |
| 75 | } |
| 76 | |
| 77 | func (s *CmdSuite) TestStatus(c *C) { |
| 78 | c.Assert(s.run("top", "--refresh", "0"), Matches, ".*Frontend.*") |
no test coverage detected