(t *testing.T)
| 878 | } |
| 879 | |
| 880 | func 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 | |
| 894 | func TestGithubHTTPClientDeprecatedPAT(t *testing.T) { |
| 895 | cfg := Github{ |
nothing calls this directly
no test coverage detected