Skip to content

Commit

Permalink
add in debug package for e2e testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie McBride authored and Charlie McBride committed Jan 24, 2024
1 parent 200fb3f commit 49978fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/pkg/environment/common/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"time"

"github.com/Azure/karpenter-provider-azure/pkg/apis/v1alpha2"
"github.com/Azure/karpenter-provider-azure/test/pkg/debug"
. "github.com/onsi/ginkgo/v2" //nolint:revive,stylecheck
. "github.com/onsi/gomega" //nolint:revive,stylecheck
"github.com/samber/lo"
Expand Down Expand Up @@ -64,8 +65,7 @@ var (

// nolint:gocyclo
func (env *Environment) BeforeEach() {
// TODO (charliedmcb): uncomment debugging lib, but removing references for now to avoid the need to review the entire package
// debug.BeforeEach(env.Context, env.Config, env.Client)
debug.BeforeEach(env.Context, env.Config, env.Client)
env.Context = injection.WithSettingsOrDie(env.Context, env.KubeClient, apis.Settings...)

// Expect this cluster to be clean for test runs to execute successfully
Expand Down Expand Up @@ -113,8 +113,7 @@ func (env *Environment) Cleanup() {
}

func (env *Environment) AfterEach() {
// TODO (charliedmcb): uncomment debugging lib, but removing references for now to avoid the need to review the entire package
// debug.AfterEach(env.Context)
debug.AfterEach(env.Context)
env.printControllerLogs(&v1.PodLogOptions{Container: "controller"})
}

Expand Down

0 comments on commit 49978fe

Please sign in to comment.