Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!137Aws xuserid fix
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment