Skip to content

Commit

Permalink
Remove unused static variables (#213)
Browse files Browse the repository at this point in the history
Co-authored-by: MJL33 <>
  • Loading branch information
Mjl33 authored Jan 21, 2021
1 parent 788c45f commit 06e4dd5
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,10 @@
package com.frameworkium.core.common.reporting.jira;

import com.frameworkium.core.common.properties.Property;
import io.restassured.RestAssured;
import io.restassured.specification.RequestSpecification;

public class JiraConfig {

public static final String JIRA_REST_PATH = "/rest/api/latest/";
public static final String REST_ZAPI_PATH = "/rest/zapi/latest/";

private JiraConfig() {
// hide default constructor for this util class
}

/**
* Basic request to send to JIRA and authenticate successfully.
*/
public static RequestSpecification getJIRARequestSpec() {
return RestAssured.given()
.baseUri(Property.JIRA_URL.getValue())
.relaxedHTTPSValidation()
.auth().preemptive().basic(
Property.JIRA_USERNAME.getValue(),
Property.JIRA_PASSWORD.getValue());
}

/**
* These should correspond to your ZAPI result IDs and
* are only used if logging to Zephyr for JIRA.
Expand Down

0 comments on commit 06e4dd5

Please sign in to comment.