(t *testing.T)
| 128 | } |
| 129 | |
| 130 | func generateLivePumaDevCertIfNotExist(t *testing.T) { |
| 131 | liveSupportPath := homedir.MustExpand(dev.SupportDir) |
| 132 | liveCertPath := filepath.Join(liveSupportPath, "cert.pem") |
| 133 | liveKeyPath := filepath.Join(liveSupportPath, "key.pem") |
| 134 | |
| 135 | if !FileExists(liveCertPath) || !FileExists(liveKeyPath) { |
| 136 | MakeDirectoryOrFail(t, liveSupportPath) |
| 137 | |
| 138 | if err := dev.GeneratePumaDevCertificateAuthority(liveCertPath, liveKeyPath); err != nil { |
| 139 | assert.FailNow(t, err.Error()) |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | func getURLWithHost(t *testing.T, url string, host string) string { |
| 145 | req, _ := http.NewRequest("GET", url, nil) |
no test coverage detected