diff --git a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts index 8788730e5..c672c217a 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts @@ -36,6 +36,7 @@ import { CredentialsSourceControlKey } from "../../../../models/administration/c import { Application } from "../../../../models/migration/applicationinventory/application"; import { AppIssue } from "../../../../types/types"; let source_credential: CredentialsSourceControlUsername; +let source_credential_withHash: CredentialsSourceControlUsername; let maven_credential: CredentialsMaven; let applicationsList: Array = []; @@ -53,6 +54,17 @@ describe(["@tier1"], "Source Analysis", () => { ); source_credential.create(); + // Create source Credentials with # in password + source_credential_withHash = new CredentialsSourceControlUsername( + data.getRandomCredentialsData( + CredentialType.sourceControl, + UserCredentials.usernamePassword, + true + ) + ); + source_credential_withHash.password = "#" + source_credential_withHash.password; + source_credential_withHash.create(); + // Create Maven credentials maven_credential = new CredentialsMaven( data.getRandomCredentialsData(CredentialType.maven, null, true) @@ -401,6 +413,23 @@ describe(["@tier1"], "Source Analysis", () => { ); }); + it("Bug MTA-3701: Source analysis on tackle app with hash in Password", function () { + const application = new Analysis( + getRandomApplicationData("tackleTestApp_Source", { + sourceData: this.appData["tackle-testapp-git"], + }), + getRandomAnalysisData(this.analysisData["tackleTestApp_Source"]) + ); + + // Analysis application with source credential created with hash + Application.open(); + application.create(); + application.manageCredentials(source_credential_withHash.name); + applicationsList.push(application); + application.analyze(); + application.verifyAnalysisStatus("Completed"); + }); + after("Perform test data clean up", function () { deleteByList(applicationsList); writeMavenSettingsFile(data.getRandomWord(5), data.getRandomWord(5));