Skip to content

Commit

Permalink
e2e: print the updated performance profile
Browse files Browse the repository at this point in the history
    At the beginning of the test, prints the performance profile.
    This helps understand the baseline from which the test starts and tracks
    future changes in the logs.

Signed-off-by: Talor Itzhak <titzhak@redhat.com>
  • Loading branch information
Tal-or committed May 9, 2023
1 parent 56bb427 commit 8b0e243
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/performanceprofile/functests/0_config/config.go
Expand Up @@ -8,6 +8,7 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/format"

corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
Expand Down Expand Up @@ -127,6 +128,9 @@ var _ = Describe("[performance][config] Performance configuration", Ordered, fun
By("Waiting for MCP being updated")
mcps.WaitForCondition(performanceMCP.Name, mcv1.MachineConfigPoolUpdated, corev1.ConditionTrue)

Expect(testclient.Client.Get(context.TODO(), client.ObjectKeyFromObject(performanceProfile), performanceProfile))
By("Printing the updated profile")
format.Object(performanceProfile, 2)
})

})
Expand Down

0 comments on commit 8b0e243

Please sign in to comment.