Skip to content

Commit 2cad21f

Browse files
committed
change endpoint to github.com for HTTP logging tests
1 parent 242db88 commit 2cad21f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

helper/logging/logging_http_transport_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestNewLoggingHTTPTransport(t *testing.T) {
3131
reqBody := `An example
3232
multiline
3333
request body`
34-
req, _ := http.NewRequest("GET", "https://developer.hashicorp.com/terraform", bytes.NewBufferString(reqBody))
34+
req, _ := http.NewRequest("GET", "https://github.com/", bytes.NewBufferString(reqBody))
3535
res, err := client.Do(req.WithContext(ctx))
3636
if err != nil {
3737
t.Fatalf("request failed: %v", err)
@@ -67,12 +67,12 @@ func TestNewLoggingHTTPTransport(t *testing.T) {
6767
"@module": "provider",
6868
"tf_http_op_type": "request",
6969
"tf_http_req_method": "GET",
70-
"tf_http_req_uri": "/terraform",
70+
"tf_http_req_uri": "/",
7171
"tf_http_req_version": "HTTP/1.1",
7272
"tf_http_req_body": "An example multiline request body",
7373
"tf_http_trans_id": transId,
7474
"Accept-Encoding": "gzip",
75-
"Host": "developer.hashicorp.com",
75+
"Host": "github.com",
7676
"User-Agent": "Go-http-client/1.1",
7777
"Content-Length": "37",
7878
}); diff != "" {
@@ -87,7 +87,7 @@ func TestNewLoggingHTTPTransport(t *testing.T) {
8787
"Content-Type": "text/html; charset=utf-8",
8888
"tf_http_op_type": "response",
8989
"tf_http_res_status_code": float64(200),
90-
"tf_http_res_version": "HTTP/2.0",
90+
"tf_http_res_version": "HTTP/1.1",
9191
"tf_http_res_status_reason": "200 OK",
9292
"tf_http_trans_id": transId,
9393
}
@@ -122,7 +122,7 @@ func TestNewSubsystemLoggingHTTPTransport(t *testing.T) {
122122
reqBody := `An example
123123
multiline
124124
request body`
125-
req, _ := http.NewRequest("GET", "https://developer.hashicorp.com/terraform", bytes.NewBufferString(reqBody))
125+
req, _ := http.NewRequest("GET", "https://github.com", bytes.NewBufferString(reqBody))
126126
res, err := client.Do(req.WithContext(ctx))
127127
if err != nil {
128128
t.Fatalf("request failed: %v", err)
@@ -158,12 +158,12 @@ func TestNewSubsystemLoggingHTTPTransport(t *testing.T) {
158158
"@module": "provider.test-subsystem",
159159
"tf_http_op_type": "request",
160160
"tf_http_req_method": "GET",
161-
"tf_http_req_uri": "/terraform",
161+
"tf_http_req_uri": "/",
162162
"tf_http_req_version": "HTTP/1.1",
163163
"tf_http_req_body": "An example multiline request body",
164164
"tf_http_trans_id": transId,
165165
"Accept-Encoding": "gzip",
166-
"Host": "developer.hashicorp.com",
166+
"Host": "github.com",
167167
"User-Agent": "Go-http-client/1.1",
168168
"Content-Length": "37",
169169
}); diff != "" {

0 commit comments

Comments
 (0)