use the convention to replace /[certificatename].[crt|key] with the full path this helps reduce the noise in test configurations and also allow this to run in any path
(rawConfig string)
| 328 | // this helps reduce the noise in test configurations and also allow this |
| 329 | // to run in any path |
| 330 | func prependCaddyFilePath(rawConfig string) string { |
| 331 | r := matchKey.ReplaceAllString(rawConfig, getIntegrationDir()+"$1") |
| 332 | r = matchCert.ReplaceAllString(r, getIntegrationDir()+"$1") |
| 333 | return r |
| 334 | } |
| 335 | |
| 336 | // CreateTestingTransport creates a testing transport that forces call dialing connections to happen locally |
| 337 | func CreateTestingTransport() *http.Transport { |