MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / TestCredentialsClient

Function TestCredentialsClient

credentials/credentials_test.go:26–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func TestCredentialsClient(t *testing.T) {
27 user := User{
28 certPath: "/tmp/cert.pem",
29 cert: &OriginCert{
30 ZoneID: "7b0a4d77dfb881c1a3b7d61ea9443e19",
31 AccountID: "abcdabcdabcdabcd1234567890abcdef",
32 APIToken: "test-service-key",
33 },
34 }
35 client, err := user.Client("example.com", "cloudflared/test", &nopLog)
36 require.NoError(t, err)
37 require.NotNil(t, client)
38}

Callers

nothing calls this directly

Calls 1

ClientMethod · 0.95

Tested by

no test coverage detected