MCPcopy Create free account
hub / github.com/SignTools/SignTools / TestAuthenticationNone

Function TestAuthenticationNone

main_test.go:251–255  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

249}
250
251func TestAuthenticationNone(t *testing.T) {
252 resp, err := http.Get(config.Current.ServerUrl + "/jobs")
253 assert.NoError(t, err)
254 assert.Equal(t, resp.StatusCode, 400)
255}
256
257func TestAuthenticationWrong(t *testing.T) {
258 req, err := http.NewRequest("GET", config.Current.ServerUrl+"/jobs", nil)

Callers

nothing calls this directly

Calls 2

EqualMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected