(helpers test.Helpers, host string)
| 71 | } |
| 72 | |
| 73 | func (ag *Client) Cmd(helpers test.Helpers, host string) test.TestableCommand { |
| 74 | if ag.configPath == "" { |
| 75 | ag.configPath = helpers.T().TempDir() |
| 76 | } |
| 77 | args := []string{"login"} |
| 78 | if !nerdtest.IsDocker() { |
| 79 | args = append(args, "--debug-full") |
| 80 | } |
| 81 | args = append(args, ag.args...) |
| 82 | args = append(args, host) |
| 83 | cmd := helpers.Command(args...) |
| 84 | cmd.Setenv("DOCKER_CONFIG", ag.configPath) |
| 85 | return cmd |
| 86 | } |
| 87 | |
| 88 | func TestLoginPersistence(t *testing.T) { |
| 89 | nerdtest.Setup() |
no test coverage detected