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

[RFR] MTA 7.1.1 Fix upgrade test - MTA Operator Log #1296

Open
wants to merge 1 commit into
base: mta_7.1.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1852,15 +1852,11 @@ export function validateTackleCr(): void {
}

export function validateMtaOperatorLog(): void {
let namespace = getNamespace();
cy.wait(30 * SEC);
let command = `oc logs $(oc get pods | grep mta-operator | cut -d " " -f 1) | grep failed | tail -n 1| awk -F 'failed=' '{print $2}'|cut -d " " -f 1`;
let command = `oc logs $(oc get pods -n${namespace} | grep mta-operator | cut -d " " -f 1) -n${namespace} | grep failed | tail -n 1| awk -F 'failed=' '{print $2}'|cut -d " " -f 1`;
getCommandOutput(command).then((result) => {
const failedCount = parseInt(result.stdout.trim());
if (Number.isNaN(failedCount)) {
throw `Debugging output\n
result.stdout: ${result.stdout}EOV\n
failedCount: ${failedCount}EOV`;
}
expect(failedCount).equal(0);
});
}
Expand Down
Loading