Commit 49c710ce authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

overriding some tests to send x-user-id while creating subscription

parent 01a33adf
......@@ -63,6 +63,11 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
this.testUtils = null;
}
@Override
protected String getArg() {
return this.notificationId;
}
@Test
@Override
public void should_return401_when_noAccessOnCustomerTenant() throws Exception {
......@@ -114,8 +119,14 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
subscription.setSecret(secret);
try {
Subscription subscriptionCreated = awssubscriptionService.create(subscription);
System.out.println("**** SUBSCRIPTION CREATE HERE=*******");
notificationId = subscriptionCreated.getNotificationId();
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;
}catch (SubscriptionException e){
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