Skip to content

Commit

Permalink
Remove debug info
Browse files Browse the repository at this point in the history
Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr committed Dec 12, 2024
1 parent 60badb9 commit 9973737
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
8 changes: 1 addition & 7 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineConfig({
jira_atlassian_cloud_url: "",
jira_atlassian_cloud_project: "Test",
jira_stage_datacenter_project_id: 12335626,
tackleUrl: "https://mta-openshift-mta.apps.mig07.rhos-psi.cnv-qe.rhood.us/",
tackleUrl: "/https://tackle-konveyor-tackle.apps.mtv03.rhos-psi.cnv-qe.rhood.us",
rwx_enabled: true,
logLevel: "ASSERT",
mtaVersion: "",
Expand Down Expand Up @@ -55,12 +55,6 @@ export default defineConfig({
on("file:preprocessor", tagify(config));
require("cypress-fail-fast/plugin")(on, config);
require("cypress-fs/plugins")(on, config);
on("task", {
log(args) {
console.log(...args);
return null;
},
});
return config;
},
experimentalMemoryManagement: true,
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/tests/upgrade/after_upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ describe(["@post-upgrade"], "Performing post-upgrade validations", () => {

it("Validate Tackle CR", () => validateTackleCr());

it("Validate MTA Operator Log", () => validateMtaOperatorLog());

it("Controls - testing existence of instances created before upgrade", function () {
const {
sourceControlUsernameCredentialsName,
Expand Down Expand Up @@ -219,6 +221,4 @@ describe(["@post-upgrade"], "Performing post-upgrade validations", () => {
isEnabled(clearRepository, rwxEnabled);
});
});

it.only("Validate MTA Operator Log", () => validateMtaOperatorLog());
});
10 changes: 0 additions & 10 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,3 @@ Cypress.Commands.add(
dropElement.realMouseMove(0, 0, { position: "topLeft" }).realMouseUp().wait(200);
}
);
Cypress.Commands.overwrite("log", function (log, ...args) {
if (Cypress.browser.isHeadless) {
return cy.task("log", args, { log: false }).then(() => {
return log(...args);
});
} else {
console.log(...args);
return log(...args);
}
});
3 changes: 0 additions & 3 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1860,11 +1860,8 @@ export function validateMtaOperatorLog(): void {
cy.wait(30 * SEC);
cy.pause();
let command = `oc logs $(oc get pods -n openshift-mta| grep mta-operator | cut -d " " -f 1) -n openshift-mta | grep failed | tail -n 1| awk -F 'failed=' '{print $2}'|cut -d " " -f 1`;
cy.log("COMMAND:", command);
getCommandOutput(command).then((result) => {
cy.log("RESULT:", result);
const failedCount = parseInt(result.stdout.trim());
cy.log("FAILED COUNT IS", failedCount);
if (Number.isNaN(failedCount)) {
throw `Debugging output\n
result.stdout: ${result.stdout}EOV\n
Expand Down

0 comments on commit 9973737

Please sign in to comment.