Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Notification
Commits
49c710ce
Commit
49c710ce
authored
Oct 14, 2021
by
Rucha Deshpande
Browse files
overriding some tests to send x-user-id while creating subscription
parent
01a33adf
Changes
1
Hide whitespace changes
Inline
Side-by-side
testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java
View file @
49c710ce
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment