@@ -118,15 +118,15 @@ var _ = Describe("HTTPClient", func() {
118
118
119
119
_ , err := httpClient .PostCustomized (url , []byte ("post-request" ), func (r * http.Request ) {})
120
120
Expect (err ).To (HaveOccurred ())
121
- Expect (err .Error ()).To (ContainSubstring ("Post http://foo:<redacted>@10.10.0.0/path" ))
121
+ Expect (err .Error ()).To (ContainSubstring ("http://foo:<redacted>@10.10.0.0/path" ))
122
122
})
123
123
124
124
It ("redacts passwords from error message for https calls" , func () {
125
125
url := "https://foo:[email protected] /path"
126
126
127
127
_ , err := httpClient .PostCustomized (url , []byte ("post-request" ), func (r * http.Request ) {})
128
128
Expect (err ).To (HaveOccurred ())
129
- Expect (err .Error ()).To (ContainSubstring ("Post https://foo:<redacted>@10.10.0.0/path" ))
129
+ Expect (err .Error ()).To (ContainSubstring ("https://foo:<redacted>@10.10.0.0/path" ))
130
130
})
131
131
132
132
Describe ("httpclient opts" , func () {
@@ -378,15 +378,15 @@ var _ = Describe("HTTPClient", func() {
378
378
379
379
_ , err := httpClient .PutCustomized (url , []byte ("put-request" ), func (r * http.Request ) {})
380
380
Expect (err ).To (HaveOccurred ())
381
- Expect (err .Error ()).To (ContainSubstring ("Put http://foo:<redacted>@10.10.0.0/path" ))
381
+ Expect (err .Error ()).To (ContainSubstring ("http://foo:<redacted>@10.10.0.0/path" ))
382
382
})
383
383
384
384
It ("redacts passwords from error message for https calls" , func () {
385
385
url := "https://foo:[email protected] /path"
386
386
387
387
_ , err := httpClient .PutCustomized (url , []byte ("put-request" ), func (r * http.Request ) {})
388
388
Expect (err ).To (HaveOccurred ())
389
- Expect (err .Error ()).To (ContainSubstring ("Put https://foo:<redacted>@10.10.0.0/path" ))
389
+ Expect (err .Error ()).To (ContainSubstring ("https://foo:<redacted>@10.10.0.0/path" ))
390
390
})
391
391
392
392
Describe ("httpclient opts" , func () {
@@ -529,15 +529,15 @@ var _ = Describe("HTTPClient", func() {
529
529
530
530
_ , err := httpClient .GetCustomized (url , func (r * http.Request ) {})
531
531
Expect (err ).To (HaveOccurred ())
532
- Expect (err .Error ()).To (ContainSubstring ("Get http://foo:<redacted>@10.10.0.0/path" ))
532
+ Expect (err .Error ()).To (ContainSubstring ("http://foo:<redacted>@10.10.0.0/path" ))
533
533
})
534
534
535
535
It ("redacts passwords from error message for https calls" , func () {
536
536
url := "https://foo:[email protected] :8080/path"
537
537
538
538
_ , err := httpClient .GetCustomized (url , func (r * http.Request ) {})
539
539
Expect (err ).To (HaveOccurred ())
540
- Expect (err .Error ()).To (ContainSubstring ("Get https://foo:<redacted>@10.10.0.0:8080/path" ))
540
+ Expect (err .Error ()).To (ContainSubstring ("https://foo:<redacted>@10.10.0.0:8080/path" ))
541
541
})
542
542
543
543
Describe ("httpclient opts" , func () {
0 commit comments