(t *testing.T)
| 384 | } |
| 385 | |
| 386 | func TestFailsGitAuth(t *testing.T) { |
| 387 | t.Parallel() |
| 388 | srv := gittest.CreateGitServer(t, gittest.Options{ |
| 389 | Files: map[string]string{ |
| 390 | "Dockerfile": "FROM " + testImageAlpine, |
| 391 | }, |
| 392 | Username: "kyle", |
| 393 | Password: "testing", |
| 394 | }) |
| 395 | _, err := runEnvbuilder(t, runOpts{env: []string{ |
| 396 | envbuilderEnv("GIT_URL", srv.URL), |
| 397 | }}) |
| 398 | require.ErrorContains(t, err, "authentication required") |
| 399 | } |
| 400 | |
| 401 | func TestSucceedsGitAuth(t *testing.T) { |
| 402 | t.Parallel() |
nothing calls this directly
no test coverage detected