File tree Expand file tree Collapse file tree
src/main/java/com/frameworkium/core/common/reporting/jira Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .frameworkium .core .common .reporting .jira ;
22
3- import com .frameworkium .core .common .properties .Property ;
4- import io .restassured .RestAssured ;
5- import io .restassured .specification .RequestSpecification ;
6-
73public class JiraConfig {
8-
9- public static final String JIRA_REST_PATH = "/rest/api/latest/" ;
10- public static final String REST_ZAPI_PATH = "/rest/zapi/latest/" ;
11-
124 private JiraConfig () {
135 // hide default constructor for this util class
146 }
157
16- /**
17- * Basic request to send to JIRA and authenticate successfully.
18- */
19- public static RequestSpecification getJIRARequestSpec () {
20- return RestAssured .given ()
21- .baseUri (Property .JIRA_URL .getValue ())
22- .relaxedHTTPSValidation ()
23- .auth ().preemptive ().basic (
24- Property .JIRA_USERNAME .getValue (),
25- Property .JIRA_PASSWORD .getValue ());
26- }
27-
288 /**
299 * These should correspond to your ZAPI result IDs and
3010 * are only used if logging to Zephyr for JIRA.
You can’t perform that action at this time.
0 commit comments