This is an automated email from the ASF dual-hosted git repository.

shuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/master by this push:
     new 7178371  UNOMI-425 Fix IT (#245)
7178371 is described below

commit 71783712ca08d8a2a68236245dcddc7e6f7ca5e6
Author: MT BENTERKI <[email protected]>
AuthorDate: Fri Feb 5 17:10:00 2021 +0100

    UNOMI-425 Fix IT (#245)
    
    * UNOMI-425 Fix GraphQLProfilePropertiesIT
    
    * UNOMI-425 remove system.out.println
---
 itests/src/test/java/org/apache/unomi/itests/BasicIT.java     |  1 -
 .../unomi/itests/graphql/GraphQLProfilePropertiesIT.java      | 11 +----------
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/itests/src/test/java/org/apache/unomi/itests/BasicIT.java 
b/itests/src/test/java/org/apache/unomi/itests/BasicIT.java
index da0e715..232ced3 100644
--- a/itests/src/test/java/org/apache/unomi/itests/BasicIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/BasicIT.java
@@ -116,7 +116,6 @@ public class BasicIT extends BaseIT {
         // by the connection manager.
         String responseContent;
         try (CloseableHttpResponse response = 
HttpClientBuilder.create().build().execute(request)) {
-            System.out.println(response.getStatusLine());
             HttpEntity entity = response.getEntity();
             // do something useful with the response body
             // and ensure it is fully consumed
diff --git 
a/itests/src/test/java/org/apache/unomi/itests/graphql/GraphQLProfilePropertiesIT.java
 
b/itests/src/test/java/org/apache/unomi/itests/graphql/GraphQLProfilePropertiesIT.java
index 8cdd6ad..a10853e 100644
--- 
a/itests/src/test/java/org/apache/unomi/itests/graphql/GraphQLProfilePropertiesIT.java
+++ 
b/itests/src/test/java/org/apache/unomi/itests/graphql/GraphQLProfilePropertiesIT.java
@@ -21,11 +21,9 @@ import org.apache.http.client.methods.CloseableHttpResponse;
 import org.apache.unomi.api.Consent;
 import org.apache.unomi.api.ConsentStatus;
 import org.apache.unomi.api.Profile;
-import org.apache.unomi.api.PropertyType;
 import org.apache.unomi.api.services.ProfileService;
 import org.apache.unomi.graphql.utils.DateUtils;
 import org.junit.Assert;
-import org.junit.Before;
 import org.junit.Test;
 import org.ops4j.pax.exam.util.Filter;
 import org.slf4j.Logger;
@@ -47,13 +45,6 @@ public class GraphQLProfilePropertiesIT extends 
BaseGraphQLIT {
 
     private final static Logger LOGGER = 
LoggerFactory.getLogger(GraphQLProfilePropertiesIT.class);
 
-    @Override
-    @Before
-    public void setUp() throws InterruptedException {
-        super.setUp();
-        recreateIndex(PropertyType.ITEM_TYPE);
-    }
-
     @Test
     public void testCreateAndDeleteProfileProperty() throws Exception {
         try (CloseableHttpResponse response = 
post("graphql/profile/create-or-update-profile-properties.json")) {
@@ -125,7 +116,7 @@ public class GraphQLProfilePropertiesIT extends 
BaseGraphQLIT {
         try (CloseableHttpResponse response = 
post("graphql/profile/get-profile-fields.json")) {
             final ResponseContext context = 
ResponseContext.parse(response.getEntity());
 
-            System.out.println(context.getResponseAsMap());
+            LOGGER.info(StringUtils.join(context.getResponseAsMap()));
 
             // assert consent
             Assert.assertEquals("GRANTED", 
context.getValue("data.cdp.getProfile.cdp_consents[0].status"));

Reply via email to