RunDockerCmd runs a docker command, expects no error and returns a result
(t testing.TB, args ...string)
| 351 | |
| 352 | // RunDockerCmd runs a docker command, expects no error and returns a result |
| 353 | func (c *CLI) RunDockerCmd(t testing.TB, args ...string) *icmd.Result { |
| 354 | t.Helper() |
| 355 | res := c.RunDockerOrExitError(t, args...) |
| 356 | res.Assert(t, icmd.Success) |
| 357 | return res |
| 358 | } |
| 359 | |
| 360 | // RunDockerComposeCmd runs a docker compose command, expects no error and returns a result |
| 361 | func (c *CLI) RunDockerComposeCmd(t testing.TB, args ...string) *icmd.Result { |