MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / checkUpdateAddonVersionRequest

Function checkUpdateAddonVersionRequest

cli/cmd/addon_publish_test.go:212–227  ·  view source on GitHub ↗
(t *testing.T, r *http.Request)

Source from the content-addressed store, hash-verified

210}
211
212func checkUpdateAddonVersionRequest(t *testing.T, r *http.Request) {
213 t.Helper()
214
215 got := map[string]any{}
216 body, err := io.ReadAll(r.Body)
217 if err != nil {
218 t.Fatal(err)
219 }
220 err = json.Unmarshal(body, &got)
221 if err != nil {
222 t.Fatal(err)
223 }
224 if got["draft"].(bool) {
225 t.Fatalf("expected draft to be false, got %v", got["draft"])
226 }
227}

Callers 1

TestAddonPublishFinalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected