Skip to content

Commit e0147e9

Browse files
committed
perf
1 parent 40c2b93 commit e0147e9

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

test/e2e/framework/dashboard.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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-
413397
func (f *Framework) DeleteGatewayGroup(gatewayGroupID string) {
414398
respExp := f.DashboardHTTPClient().
415399
DELETE("/api/gateway_groups/"+gatewayGroupID).

test/e2e/scaffold/scaffold.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)