MCPcopy Create free account
hub / github.com/coder/envbuilder / TestFailsGitAuth

Function TestFailsGitAuth

integration/integration_test.go:386–399  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

384}
385
386func 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
401func TestSucceedsGitAuth(t *testing.T) {
402 t.Parallel()

Callers

nothing calls this directly

Calls 3

CreateGitServerFunction · 0.92
runEnvbuilderFunction · 0.85
envbuilderEnvFunction · 0.85

Tested by

no test coverage detected