(t *testing.T)
| 851 | } |
| 852 | |
| 853 | func 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 | |
| 866 | func TestCACertBundleInvalidPath(t *testing.T) { |
| 867 | cfg := Github{ |
nothing calls this directly
no test coverage detected