File tree Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -394,22 +394,6 @@ func (s *Framework) GetAdminKey(gatewayGroupID string) string {
394394 return response .Value .Key
395395}
396396
397- func (s * Framework ) GetToken (gatewayGroupID string ) string {
398- respExp := s .DashboardHTTPClient ().PUT ("/api/gateway_groups/" + gatewayGroupID + "/admin_key" ).
399- WithHeader ("Content-Type" , "application/json" ).
400- WithBasicAuth ("admin" , "admin" ).
401- Expect ()
402-
403- respExp .Status (200 ).Body ().Contains ("key" )
404-
405- body := respExp .Body ().Raw ()
406-
407- var response responseCreateGateway
408- err := json .Unmarshal ([]byte (body ), & response )
409- Expect (err ).ToNot (HaveOccurred (), "unmarshal response" )
410- return response .Value .Key
411- }
412-
413397func (f * Framework ) DeleteGatewayGroup (gatewayGroupID string ) {
414398 respExp := f .DashboardHTTPClient ().
415399 DELETE ("/api/gateway_groups/" + gatewayGroupID ).
Original file line number Diff line number Diff line change @@ -465,11 +465,9 @@ func (s *Scaffold) afterEach() {
465465 }
466466 }
467467
468- if os .Getenv ("TSET_KEEP" ) != "true" {
469- // if the test case is successful, just delete namespace
470- err := k8s .DeleteNamespaceE (s .t , s .kubectlOptions , s .namespace )
471- Expect (err ).NotTo (HaveOccurred (), "deleting namespace " + s .namespace )
472- }
468+ // if the test case is successful, just delete namespace
469+ err := k8s .DeleteNamespaceE (s .t , s .kubectlOptions , s .namespace )
470+ Expect (err ).NotTo (HaveOccurred (), "deleting namespace " + s .namespace )
473471
474472 for _ , f := range s .finalizers {
475473 runWithRecover (f )
You can’t perform that action at this time.
0 commit comments