MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / ExpectHeader

Method ExpectHeader

test/testutil/fakeoctopusserver.go:178–183  ·  view source on GitHub ↗
(t *testing.T, name string, value string)

Source from the content-addressed store, hash-verified

176}
177
178func (r *RequestWrapper) ExpectHeader(t *testing.T, name string, value string) *RequestWrapper {
179 assert.Contains(t, r.Request.Header, name)
180 headerValues := r.Request.Header[name]
181 assert.Contains(t, headerValues, value)
182 return r
183}
184
185func (r *RequestWrapper) RespondWithStatus(statusCode int, statusString string, responseObject any) {
186 var body []byte

Callers 2

Calls

no outgoing calls

Tested by 2