Skip to content

Commit

Permalink
one task
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Aggarwal <[email protected]>
  • Loading branch information
sarthakaggarwal97 committed Jan 25, 2024
1 parent 462fe9c commit b61571d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,6 @@ protected boolean preserveIndicesUponCompletion() {
return true;
}

@Before
public void testSetup() {
final String bwcsuiteString = System.getProperty("tests.rest.bwcsuite");
System.out.println(bwcsuiteString);
// Assume.assumeTrue("Test cannot be run outside the BWC gradle task 'bwcTestSuite' or its dependent tasks", bwcsuiteString != null);
CLUSTER_TYPE = ClusterType.parse(bwcsuiteString);
CLUSTER_NAME = System.getProperty("tests.clustername");

System.out.println(CLUSTER_TYPE);
System.out.println(CLUSTER_NAME);
}

@Override
protected final boolean preserveClusterUponCompletion() {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

public class RestHelper {

private static final Logger log = LogManager.getLogger(RestHelper.class);
// private static final Logger log = LogManager.getLogger(RestHelper.class);

public static HttpEntity toHttpEntity(String jsonString) {
return new StringEntity(jsonString, APPLICATION_JSON);
Expand All @@ -45,7 +45,7 @@ public static Response makeRequest(RestClient client, String method, String endp

public static Response makeRequest(RestClient client, String method, String endpoint, HttpEntity entity, List<Header> headers)
throws IOException {
log.info("Making request " + method + " " + endpoint + ", with headers " + headers);
// log.info("Making request " + method + " " + endpoint + ", with headers " + headers);

Request request = new Request(method, endpoint);

Expand All @@ -61,7 +61,7 @@ public static Response makeRequest(RestClient client, String method, String endp
}

Response response = client.performRequest(request);
log.info("Recieved response " + response.getStatusLine());
// log.info("Recieved response " + response.getStatusLine());
return response;
}

Expand Down

0 comments on commit b61571d

Please sign in to comment.