Skip to content

Commit

Permalink
Revert "https in tests"
Browse files Browse the repository at this point in the history
This reverts commit 286211b.
  • Loading branch information
foot committed Feb 22, 2022
1 parent 286211b commit ef05352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/services/profiles/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func kubernetesDoRequest(ctx context.Context, namespace, serviceName, servicePor
return nil, err
}

data, err := clientset.CoreV1().Services(namespace).ProxyGet("https", serviceName, servicePort, u.String(), nil).DoRaw(ctx)
data, err := clientset.CoreV1().Services(namespace).ProxyGet("http", serviceName, servicePort, u.String(), nil).DoRaw(ctx)
if err != nil {
if se, ok := err.(*errors.StatusError); ok {
return nil, fmt.Errorf("failed to make GET request to service %s/%s path %q status code: %d", namespace, serviceName, path, int(se.Status().Code))
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/test/profiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func kubernetesDoRequest(namespace, serviceName, servicePort, path string, clien
return nil, 0, err
}

responseWrapper := clientset.CoreV1().Services(namespace).ProxyGet("https", serviceName, servicePort, u.String(), nil)
responseWrapper := clientset.CoreV1().Services(namespace).ProxyGet("http", serviceName, servicePort, u.String(), nil)

data, err := responseWrapper.DoRaw(context.TODO())
if err != nil {
Expand Down

0 comments on commit ef05352

Please sign in to comment.