@@ -11,20 +11,21 @@ func TestDeriveURLs(t *testing.T) {
1111 t .Run ("defaults" , func (t * testing.T ) {
1212 cfg := & Config {Site : "datadoghq.com" , NoSSL : false }
1313 cfg .deriveURLs ()
14- assert .Equal (t , "http-intake.logs.datadoghq.com" , cfg .IntakeURL )
14+ assert .Equal (t , "https:// http-intake.logs.datadoghq.com" , cfg .IntakeURL )
1515 assert .Equal (t , "https://api.datadoghq.com" , cfg .APIURL )
1616 })
1717
1818 t .Run ("NoSSL switches scheme to http" , func (t * testing.T ) {
1919 cfg := & Config {Site : "datadoghq.com" , NoSSL : true }
2020 cfg .deriveURLs ()
21+ assert .Equal (t , "http://http-intake.logs.datadoghq.com" , cfg .IntakeURL )
2122 assert .Equal (t , "http://api.datadoghq.com" , cfg .APIURL )
2223 })
2324
2425 t .Run ("custom site" , func (t * testing.T ) {
2526 cfg := & Config {Site : "datadoghq.eu" , NoSSL : false }
2627 cfg .deriveURLs ()
27- assert .Equal (t , "http-intake.logs.datadoghq.eu" , cfg .IntakeURL )
28+ assert .Equal (t , "https:// http-intake.logs.datadoghq.eu" , cfg .IntakeURL )
2829 assert .Equal (t , "https://api.datadoghq.eu" , cfg .APIURL )
2930 })
3031
@@ -57,7 +58,7 @@ func TestLoad(t *testing.T) {
5758 assert .Equal (t , false , cfg .SkipSSLValidation )
5859 assert .Equal (t , "INFO" , cfg .LogLevel )
5960 assert .Equal (t , false , cfg .UseFIPS )
60- assert .Equal (t , "http-intake.logs.datadoghq.com" , cfg .IntakeURL )
61+ assert .Equal (t , "https:// http-intake.logs.datadoghq.com" , cfg .IntakeURL )
6162 assert .Equal (t , "abcdef1234567890abcdef1234567890" , cfg .APIKey )
6263 })
6364
0 commit comments