We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc28ad5 + 7325430 commit 60cf11aCopy full SHA for 60cf11a
pkg/git/libgit2/managed/http_test.go
@@ -105,6 +105,16 @@ func TestHttpAction_CreateClientRequest(t *testing.T) {
105
},
106
wantedErr: nil,
107
108
+ {
109
+ name: "incomplete credentials, no basic auth",
110
+ action: git2go.SmartServiceActionReceivepackLs,
111
+ transport: &http.Transport{},
112
+ authOpts: git.AuthOptions{Username: "user"},
113
+ assertFunc: func(g *WithT, req *http.Request, client *http.Client) {
114
+ _, _, ok := req.BasicAuth()
115
+ g.Expect(ok).To(BeFalse())
116
+ },
117
118
{
119
name: "credentials are correctly configured",
120
action: git2go.SmartServiceActionUploadpack,
0 commit comments