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

Function cqpdTokenWithClaims

cli/internal/platform/inject_test.go:138–143  ·  view source on GitHub ↗
(t *testing.T, claims map[string]any)

Source from the content-addressed store, hash-verified

136}
137
138func cqpdTokenWithClaims(t *testing.T, claims map[string]any) string {
139 t.Helper()
140 payload, err := json.Marshal(claims)
141 require.NoError(t, err)
142 return "cqpd_" + base64.RawURLEncoding.EncodeToString(payload) + ".sig"
143}
144
145func TestTeamFromToken(t *testing.T) {
146 t.Parallel()

Calls

no outgoing calls

Tested by

no test coverage detected