File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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.
132111func (s * Scaffold ) CreateResourceFromStringWithNamespace (yaml , namespace string ) error {
You can’t perform that action at this time.
0 commit comments