MCPcopy Create free account
hub / github.com/cloudbase/garm / TestGithubHTTPClientDeprecatedPAT

Function TestGithubHTTPClientDeprecatedPAT

config/config_test.go:894–908  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

892}
893
894func TestGithubHTTPClientDeprecatedPAT(t *testing.T) {
895 cfg := Github{
896 Name: "dummy_creds",
897 Description: "dummy github credentials",
898 OAuth2Token: "bogus",
899 }
900
901 client, err := cfg.HTTPClient(context.Background())
902 require.Nil(t, err)
903 require.NotNil(t, client)
904
905 transport, ok := client.Transport.(*oauth2.Transport)
906 require.True(t, ok)
907 require.NotNil(t, transport)
908}
909
910func TestGithubHTTPClientPAT(t *testing.T) {
911 cfg := Github{

Callers

nothing calls this directly

Calls 1

HTTPClientMethod · 0.95

Tested by

no test coverage detected