From ef10e69a31ea82ab79e7d2b56e4888c8c3a6d7a8 Mon Sep 17 00:00:00 2001 From: "Alexey N. Zhukov" Date: Tue, 21 Dec 2021 23:26:22 +0300 Subject: [PATCH] 3.6.5 --- CHANGELOG.md | 2 +- gradle.properties | 2 +- .../utils/ci/integration/cli/DeleteProjectIT.java | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0102328..ce678f4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -144,7 +144,7 @@ + [Feature] Support for PT AI 3.6.5.1541 added ### 20211102 + [Fix] Integration tests for incremental scans are removed as those may fail -+ [Feature] Jenkins plugin "fail-if-failed" / "Fail-if-unstable" and reports generation are merged to single UI that allows to manually define set of post-AST actions including reports generation, policy processing etc. ++ [Feature] Jenkins plugin "fail-if-failed" / "fail-if-unstable" and reports generation are merged to single UI that allows to manually define set of post-AST actions including reports generation, policy processing etc. ### 20211125 + [Fix] SignalR version changed to 6.0.0 + [Feature] SARIF report generation added to Jenkins plugin diff --git a/gradle.properties b/gradle.properties index b3fbb3a5..11dff316 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true rootGroup=com.ptsecurity.appsec.ai.ee.utils.ci.integration # version=3.6.4-RC1-SNAPSHOT -version=3.6.4 +version=3.6.5 junitVersion=5.7.0 slf4jVersion=1.7.30 # jenkinsVersion=2.150.2 diff --git a/ptai-cli-plugin/src/test/java/com/ptsecurity/appsec/ai/ee/utils/ci/integration/cli/DeleteProjectIT.java b/ptai-cli-plugin/src/test/java/com/ptsecurity/appsec/ai/ee/utils/ci/integration/cli/DeleteProjectIT.java index e7bc56c0..af31ba51 100644 --- a/ptai-cli-plugin/src/test/java/com/ptsecurity/appsec/ai/ee/utils/ci/integration/cli/DeleteProjectIT.java +++ b/ptai-cli-plugin/src/test/java/com/ptsecurity/appsec/ai/ee/utils/ci/integration/cli/DeleteProjectIT.java @@ -85,4 +85,19 @@ public void createDeleteMultipleProjectsByRegexp() { for (Pair project : projects) Assertions.assertNull(projectTasks.searchProject(project.getLeft())); } + + @Test + @DisplayName("Delete all junit-GUID-like projects") + public void deleteAllTestProjects() { + Integer res = new CommandLine(new Plugin()).execute( + "delete-project", + "--project-name-regexp", "junit-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", + "--yes", + "--url", URL, + "--truststore", PEM.toString(), + "--user", USER, + "--password", PASSWORD); + Assertions.assertEquals(BaseCommand.ExitCode.SUCCESS.getCode(), res); + } + } \ No newline at end of file