MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / checkAuthHeader

Function checkAuthHeader

cli/cmd/plugin_publish_test.go:353–360  ·  view source on GitHub ↗
(t *testing.T, r *http.Request)

Source from the content-addressed store, hash-verified

351}
352
353func checkAuthHeader(t *testing.T, r *http.Request) {
354 t.Helper()
355
356 wantAuth := "Bearer testkey"
357 if r.Header.Get("Authorization") != wantAuth {
358 t.Fatalf("expected Authorization header to be %q, got %q", wantAuth, r.Header.Get("Authorization"))
359 }
360}
361
362func checkCreatePluginVersionRequest(t *testing.T, r *http.Request) {
363 t.Helper()

Callers 8

TestAddonDownloadFunction · 0.85
TestAddonDownloadStdoutFunction · 0.85
TestPluginPublishFunction · 0.85
TestPluginPublishWithUIFunction · 0.85
TestAddonPublishFunction · 0.85
TestAddonPublishEmbeddedFunction · 0.85
TestAddonPublishFinalizeFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected