@@ -23,6 +23,7 @@ import (
2323 "fortio.org/fortio/fhttp"
2424 "fortio.org/fortio/periodic"
2525 flog "fortio.org/log"
26+ tb "github.com/envoyproxy/gateway/internal/troubleshoot"
2627 "github.com/google/go-cmp/cmp"
2728 dto "github.com/prometheus/client_model/go"
2829 "github.com/prometheus/common/expfmt"
@@ -46,7 +47,6 @@ import (
4647
4748 egv1a1 "github.com/envoyproxy/gateway/api/v1alpha1"
4849 "github.com/envoyproxy/gateway/internal/kubernetes"
49- tb "github.com/envoyproxy/gateway/internal/troubleshoot"
5050)
5151
5252var (
@@ -626,13 +626,16 @@ func CollectAndDump(t *testing.T, rest *rest.Config) {
626626 tlog .Logf (t , "Skipping collecting and dumping cluster data, set ACTIONS_STEP_DEBUG=true to enable it" )
627627 return
628628 }
629+ CollectResult (t , rest )
630+ }
629631
632+ func CollectResult (t * testing.T , rest * rest.Config ) {
630633 dumpedNamespaces := []string {"envoy-gateway-system" }
631634 if IsGatewayNamespaceMode () {
632635 dumpedNamespaces = append (dumpedNamespaces , ConformanceInfraNamespace )
633636 }
634637
635- result := tb .CollectResult (context . TODO (), rest , tb.CollectOptions {
638+ result := tb .CollectResult (t . Context (), rest , tb.CollectOptions {
636639 BundlePath : "" ,
637640 CollectedNamespaces : dumpedNamespaces ,
638641 })
0 commit comments