Commit 0bfab1d9 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

remove print stms

parent 49c710ce
...@@ -32,9 +32,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -32,9 +32,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.io.IOException; import java.io.IOException;
import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Map;
@Component @Component
public class SubscriptionHandler { public class SubscriptionHandler {
...@@ -66,18 +64,6 @@ public class SubscriptionHandler { ...@@ -66,18 +64,6 @@ public class SubscriptionHandler {
} }
private String querySubscriptionAndUpdateCache(String notificationId) throws AppException, SubscriptionException { private String querySubscriptionAndUpdateCache(String notificationId) throws AppException, SubscriptionException {
System.out.println("**********TESTING ISTIO PRINTING ALL HEADERS*************");
Map<String, String> tempheaders = headers.getHeaders();
Iterator<String> itr = tempheaders.keySet().iterator();
while (itr.hasNext()) {
System.out.println(itr.next());
}
tempheaders.entrySet().forEach(entry -> {
System.out.println(entry.getKey() + " " + entry.getValue());
});
System.out.println("**********TESTING ISTIO PRINTING ALL HEADERS done*************");
ISubscriptionService service = subscriptionFactory.create(headers); ISubscriptionService service = subscriptionFactory.create(headers);
List<Subscription> subscriptionList = service.query(notificationId); List<Subscription> subscriptionList = service.query(notificationId);
......
...@@ -113,7 +113,6 @@ public class AwsPubsubRequestBodyExtractor implements IPubsubRequestBodyExtracto ...@@ -113,7 +113,6 @@ public class AwsPubsubRequestBodyExtractor implements IPubsubRequestBodyExtracto
"No tenant information from pubsub message."); "No tenant information from pubsub message.");
} }
String x_user_id= request.getHeader("x-user-id"); String x_user_id= request.getHeader("x-user-id");
System.out.println("*******x_user_id from original request****=="+x_user_id);
lowerCase.put("x-user-id",x_user_id); lowerCase.put("x-user-id",x_user_id);
content.setAttributes(lowerCase); content.setAttributes(lowerCase);
......
...@@ -90,8 +90,6 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { ...@@ -90,8 +90,6 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
private void createResourceInPartition(String partitionId) throws Exception{ private void createResourceInPartition(String partitionId) throws Exception{
System.out.println("****NOTIFICATION Creating resource using overriden method*******");
Map<String, String> headers = new HashMap<>(); Map<String, String> headers = new HashMap<>();
headers.put(DpsHeaders.DATA_PARTITION_ID, partitionId); headers.put(DpsHeaders.DATA_PARTITION_ID, partitionId);
headers.put(DpsHeaders.AUTHORIZATION, testUtils.getOpsToken()); headers.put(DpsHeaders.AUTHORIZATION, testUtils.getOpsToken());
...@@ -99,12 +97,11 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { ...@@ -99,12 +97,11 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
headers.put("x-user-id", AwsConfig.getAWSCognitoUser()); headers.put("x-user-id", AwsConfig.getAWSCognitoUser());
DpsHeaders dpsHeaders = DpsHeaders.createFromMap(headers); DpsHeaders dpsHeaders = DpsHeaders.createFromMap(headers);
awssubscriptionService = awsfactory.create(dpsHeaders); awssubscriptionService = awsfactory.create(dpsHeaders);
System.out.println("****NOTIFICATION Created subscriptionService using following headers*******");
Map<String,String> h = dpsHeaders.getHeaders(); Map<String,String> h = dpsHeaders.getHeaders();
System.out.println(h); System.out.println(h);
System.out.println("****NOTIFICATION Created subscriptionService using following headers DONE*******");
//Create a new subscription to pub/sub //Create a new subscription to pub/sub
Subscription subscription = new Subscription(); Subscription subscription = new Subscription();
subscription.setName("subscription-integration-test-hmac"); subscription.setName("subscription-integration-test-hmac");
...@@ -119,14 +116,10 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { ...@@ -119,14 +116,10 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
subscription.setSecret(secret); subscription.setSecret(secret);
try { try {
Subscription subscriptionCreated = awssubscriptionService.create(subscription); Subscription subscriptionCreated = awssubscriptionService.create(subscription);
System.out.println("**** SUBSCRIPTION CREATE HERE=*******");
notificationId = subscriptionCreated.getNotificationId(); notificationId = subscriptionCreated.getNotificationId();
subscriptionId = subscriptionCreated.getId(); subscriptionId = subscriptionCreated.getId();
System.out.println("****subscriptionCreated.getPushEndpoint() subscriptionCreated.getPushEndpoint(); === "+ subscriptionCreated.getPushEndpoint());
System.out.println("**** notificationId CREATE HERE=notificationId === "+notificationId);
System.out.println("**** SUBSCRIPTION CREATE HERE=subscriptionId === "+subscriptionId);
System.out.println("**** SUBSCRIPTION CREATE HERE DONE*******");
Config.Instance().NotificationId = notificationId; Config.Instance().NotificationId = notificationId;
}catch (SubscriptionException e){ }catch (SubscriptionException e){
System.out.println("Subscription exception inner response : " + e.getHttpResponse()); System.out.println("Subscription exception inner response : " + e.getHttpResponse());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment