Skip to content

Commit 4efc412

Browse files
committed
remove unused function
1 parent a403ff3 commit 4efc412

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/e2e/scaffold/k8s.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"strings"
2323
"time"
2424

25-
v1 "github.com/api7/api7-ingress-controller/api/dashboard/v1"
2625
"github.com/api7/api7-ingress-controller/pkg/dashboard"
2726
apisix "github.com/api7/api7-ingress-controller/pkg/dashboard"
2827
"github.com/gruntwork-io/terratest/modules/k8s"
@@ -107,26 +106,6 @@ func (s *Scaffold) ListPodsByLabels(labels string) ([]corev1.Pod, error) {
107106
})
108107
}
109108

110-
func (s *Scaffold) ListApisixSsl() ([]*v1.Ssl, error) {
111-
u := url.URL{
112-
Scheme: "http",
113-
Host: "localhost:7080",
114-
Path: "/apisix/admin",
115-
}
116-
cli, err := s.NewAPISIX()
117-
if err != nil {
118-
return nil, err
119-
}
120-
err = cli.AddCluster(context.Background(), &apisix.ClusterOptions{
121-
BaseURL: u.String(),
122-
AdminKey: s.opts.APISIXAdminAPIKey,
123-
})
124-
if err != nil {
125-
return nil, err
126-
}
127-
return cli.Cluster("").SSL().List(context.TODO())
128-
}
129-
130109
// CreateResourceFromStringWithNamespace creates resource from a loaded yaml string
131110
// and sets its namespace to the specified one.
132111
func (s *Scaffold) CreateResourceFromStringWithNamespace(yaml, namespace string) error {

0 commit comments

Comments
 (0)