-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added assessment to pre-upgrade test
Signed-off-by: Igor Braginsky <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,10 +34,13 @@ import { getRandomCredentialsData } from "../../../utils/data_utils"; | |
import { Analysis } from "../../models/migration/applicationinventory/analysis"; | ||
import { UpgradeData } from "../../types/types"; | ||
import { CredentialsMaven } from "../../models/administration/credentials/credentialsMaven"; | ||
import { Assessment } from "../../models/migration/applicationinventory/assessment"; | ||
|
||
describe(["@pre-upgrade"], "Creating pre-requisites before an upgrade", () => { | ||
let mavenCredentialsUsername: CredentialsMaven; | ||
let sourceControlUsernameCredentials: CredentialsSourceControlUsername; | ||
const assessment = new Assessment(getRandomApplicationData()); | ||
let stakeHolder: Stakeholders; | ||
|
||
before("Login", function () { | ||
// Perform login | ||
|
@@ -92,7 +95,7 @@ describe(["@pre-upgrade"], "Creating pre-requisites before an upgrade", () => { | |
// Defining stakeholder groups | ||
const stakeHolderGroup = new Stakeholdergroups(stakeHolderGroupName); | ||
// Defining stakeholders | ||
const stakeHolder = new Stakeholders("[email protected]", stakeHolderName, jobFunctionName, [ | ||
stakeHolder = new Stakeholders("[email protected]", stakeHolderName, jobFunctionName, [ | ||
stakeHolderGroupName, | ||
]); | ||
// Defining business Service | ||
|
@@ -122,6 +125,7 @@ describe(["@pre-upgrade"], "Creating pre-requisites before an upgrade", () => { | |
cy.wait(2 * SEC); | ||
sourceApplication.analyze(); | ||
sourceApplication.verifyAnalysisStatus("Completed"); | ||
sourceApplication.selectApplicationRow(); | ||
}); | ||
|
||
it("Creating Upload Binary Analysis", function () { | ||
|
@@ -135,6 +139,7 @@ describe(["@pre-upgrade"], "Creating pre-requisites before an upgrade", () => { | |
// No credentials required for uploaded binary. | ||
uploadBinaryApplication.analyze(); | ||
uploadBinaryApplication.verifyAnalysisStatus("Completed"); | ||
uploadBinaryApplication.selectApplicationRow(); | ||
}); | ||
|
||
it("Binary Analysis", function () { | ||
|
@@ -155,5 +160,11 @@ describe(["@pre-upgrade"], "Creating pre-requisites before an upgrade", () => { | |
); | ||
binaryApplication.analyze(); | ||
binaryApplication.verifyAnalysisStatus("Completed"); | ||
binaryApplication.selectApplicationRow(); | ||
}); | ||
|
||
it("Creating assessment", function () { | ||
assessment.create(); | ||
assessment.perform_assessment("low", [stakeHolder.name]); | ||
}); | ||
}); |