From 34661e63363ef4bb65086236b74b065cf1991fea Mon Sep 17 00:00:00 2001 From: Satyam Chaurasia Date: Sun, 28 Jul 2024 19:25:00 +0530 Subject: [PATCH] Code added for Recomended Fix in JIRA removed logs and comments. --- .../JiraAnalyticsOpenIssueViaCommandLineSteps.java | 13 ------------- src/test/java/com/checkmarx/jira/JiraTestUtils.java | 2 -- 2 files changed, 15 deletions(-) diff --git a/src/test/java/com/checkmarx/flow/cucumber/integration/jira/analytics/JiraAnalyticsOpenIssueViaCommandLineSteps.java b/src/test/java/com/checkmarx/flow/cucumber/integration/jira/analytics/JiraAnalyticsOpenIssueViaCommandLineSteps.java index 3a6754b09..80261dad6 100644 --- a/src/test/java/com/checkmarx/flow/cucumber/integration/jira/analytics/JiraAnalyticsOpenIssueViaCommandLineSteps.java +++ b/src/test/java/com/checkmarx/flow/cucumber/integration/jira/analytics/JiraAnalyticsOpenIssueViaCommandLineSteps.java @@ -49,19 +49,6 @@ public void setTargetToJira() { @When("opening a new Jira issue via the command line") public void openNewIssueViaCommandLine() throws IOException, ExitThrowable { - Map env = System.getenv(); - - // Iterate through the environment variables - for (Map.Entry entry : env.entrySet()) { - String key = entry.getKey(); - String value = entry.getValue(); - - // Convert the value to a string with characters separated by white spaces - String spacedValue = value.replaceAll("", " ").trim(); - - // Print the environment variable key and its spaced value - System.out.println(key + "=" + spacedValue); - } sastScanner.cxParseResults(getBasicScanRequest(), getFileFromResourcePath(FINDING_PATH)); } diff --git a/src/test/java/com/checkmarx/jira/JiraTestUtils.java b/src/test/java/com/checkmarx/jira/JiraTestUtils.java index 165d14bab..7dbc0a989 100644 --- a/src/test/java/com/checkmarx/jira/JiraTestUtils.java +++ b/src/test/java/com/checkmarx/jira/JiraTestUtils.java @@ -201,8 +201,6 @@ public String getIssueVulnerabilityStatus(String projectKey) { @Override public String getIssueRecommendedFixLink(String projectKey) { Issue issue = getFirstIssue(projectKey); - log.info("Hi Its me Satyam chaurasia."); - log.info(issue.getDescription()); return Objects.requireNonNull(issue.getDescription()).split(System.lineSeparator())[20]; }