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

Function TestCACertBundleInvalidFile

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

Source from the content-addressed store, hash-verified

878}
879
880func TestCACertBundleInvalidFile(t *testing.T) {
881 cfg := Github{
882 Name: "dummy_creds",
883 Description: "dummy github credentials",
884 OAuth2Token: "bogus",
885 CACertBundlePath: "../testdata/config.toml",
886 }
887
888 cert, err := cfg.CACertBundle()
889 require.NotNil(t, err)
890 require.EqualError(t, err, "failed to parse CA cert bundle")
891 require.Nil(t, cert)
892}
893
894func TestGithubHTTPClientDeprecatedPAT(t *testing.T) {
895 cfg := Github{

Callers

nothing calls this directly

Calls 1

CACertBundleMethod · 0.95

Tested by

no test coverage detected