Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add container details to error message #1517

Closed

Conversation

rdavid
Copy link
Member

@rdavid rdavid commented Oct 11, 2023

No description provided.

@rdavid rdavid requested review from sebrandon1 and greyerof October 11, 2023 19:03
@rdavid rdavid self-assigned this Oct 11, 2023
@@ -150,7 +150,9 @@ func testExecProbDenyAtCPUPinning(dpdkPods []*provider.Pod) {
for _, cpuPinnedPod := range dpdkPods {
for _, cut := range cpuPinnedPod.Containers {
if cut.HasExecProbes() {
ginkgo.Fail("Exec prob is not allowed")
ginkgo.Fail(fmt.Sprintf(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good moment to fix this test case: we shouldn't call ginkgo.Fail() here, as it aborts the execution of the test case at this point, so the rest containers won't be checked.

The container's name+pod+namespace should be saved to create a nonCompliantObjects (or compliantObject) list. See the test case code in testRestartOnRebootLabelOnPodsUsingSriov() for reference.

@ramperher
Copy link
Collaborator

/dci-rerun

@rdavid rdavid closed this Dec 7, 2023
@rdavid rdavid deleted the pod-name-msg branch December 7, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants