Skip to content

Commit a5fd2ca

Browse files
committed
[RFR][TA] Backported svn bug test case
Signed-off-by: Karishma Punwatkar <kpunwatk@redhat.com> modified: cypress/e2e/tests/administration/repository/subversion.test.ts modified: cypress/fixtures/application.json
1 parent 9047e14 commit a5fd2ca

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

cypress/e2e/tests/administration/repository/subversion.test.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,29 @@ describe(["@tier2"], "Test secure and insecure svn repository analysis", () => {
7373
application.verifyAnalysisStatus(AnalysisStatuses.completed);
7474
});
7575

76-
it("Analysis on insecure SVN Repository(http) when not allowed", function () {
77-
subversionConfiguration.disableInsecureSubversionRepositories();
76+
it("Analysis on SVN Repository(http) when filenames have special characters", function () {
77+
const application = new Analysis(
78+
getRandomApplicationData("Insecure svn when filenames have special characters", {
79+
sourceData: this.appData["bookserver-svn-branch"],
80+
}),
81+
getRandomAnalysisData(this.analysisData["source_analysis_on_bookserverapp"])
82+
);
83+
application.create();
84+
applicationsList.push(application);
85+
cy.wait("@getApplication");
86+
application.manageCredentials(sourceCredential.name, null);
87+
application.analyze();
88+
application.verifyAnalysisStatus(AnalysisStatuses.completed);
89+
});
7890

91+
it("Analysis on insecure SVN Repository(http) when not allowed", function () {
7992
const application = new Analysis(
8093
getRandomApplicationData("Insecure svn disabled bookserver app", {
8194
sourceData: this.appData["bookserver-svn-insecure"],
8295
}),
8396
getRandomAnalysisData(this.analysisData["source_analysis_on_bookserverapp"])
8497
);
98+
subversionConfiguration.disableInsecureSubversionRepositories();
8599
application.create();
86100
applicationsList.push(application);
87101
cy.wait("@getApplication");

cypress/fixtures/application.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
"repoType": "Subversion",
3838
"sourceRepo": "http://10.0.188.129/svn/mtaqe-svn/bookserver-no-trunk"
3939
},
40+
"bookserver-svn-branch": {
41+
"repoType": "Subversion",
42+
"sourceRepo": "http://10.0.188.129/svn/mtaqe-svn/book-server",
43+
"branch": "branches/bookserver-app"
44+
},
4045
"konveyor-exampleapp": {
4146
"repoType": "Git",
4247
"sourceRepo": "https://github.com/konveyor/example-applications",

0 commit comments

Comments
 (0)