Skip to content

Commit 12234fa

Browse files
committed
add apisix data debug
1 parent 9e4f709 commit 12234fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/e2e/scaffold/apisix_deployer.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ func (s *APISIXDeployer) AfterEach() {
111111
if output != "" {
112112
_, _ = fmt.Fprintln(GinkgoWriter, output)
113113
}
114+
115+
if framework.ProviderType == framework.ProviderTypeAPISIXStandalone && s.adminTunnel != nil {
116+
client := NewClient("http", s.adminTunnel.Endpoint())
117+
reporter := &ErrorReporter{}
118+
body := client.GET("/apisix/admin/configs").WithHeader("X-API-KEY", s.AdminKey()).WithReporter(reporter).Expect().Body().Raw()
119+
_, _ = fmt.Fprintln(GinkgoWriter, "Dumping APISIX configs:")
120+
_, _ = fmt.Fprintln(GinkgoWriter, body)
121+
}
114122
}
115123

116124
// Delete all additional gateways

0 commit comments

Comments
 (0)