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

Function TestCACertBundle

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

Source from the content-addressed store, hash-verified

851}
852
853func TestCACertBundle(t *testing.T) {
854 cfg := Github{
855 Name: "dummy_creds",
856 Description: "dummy github credentials",
857 OAuth2Token: "bogus",
858 CACertBundlePath: "../testdata/certs/srv-pub.pem",
859 }
860
861 cert, err := cfg.CACertBundle()
862 require.Nil(t, err)
863 require.NotNil(t, cert)
864}
865
866func TestCACertBundleInvalidPath(t *testing.T) {
867 cfg := Github{

Callers

nothing calls this directly

Calls 1

CACertBundleMethod · 0.95

Tested by

no test coverage detected