Skip to content
GitLab
Menu
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
466e8fa8
Commit
466e8fa8
authored
May 13, 2021
by
Rucha Deshpande
Browse files
override failing tests with 403
parent
d68d850d
Changes
1
Show whitespace changes
Inline
Side-by-side
testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java
View file @
466e8fa8
...
...
@@ -49,5 +49,17 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
this
.
testUtils
=
null
;
}
@Test
@Override
public
void
should_return400_when_makingHttpRequestWithoutToken
()
throws
Exception
{
ClientResponse
response
=
descriptor
.
run
(
getArg
(),
""
);
assertEquals
(
error
(
response
.
getEntity
(
String
.
class
)),
403
,
response
.
getStatus
());
}
@Test
@Override
public
void
should_return401_when_noAccessOnCustomerTenant
()
throws
Exception
{
ClientResponse
response
=
descriptor
.
runOnCustomerTenant
(
getArg
(),
getOsduTenantAdminCredentials
());
assertEquals
(
error
(
response
.
getEntity
(
String
.
class
)),
403
,
response
.
getStatus
());
}
}
\ No newline at end of file
Rucha Deshpande
@deshruch
mentioned in commit
16dae45a
·
May 14, 2021
mentioned in commit
16dae45a
mentioned in commit 16dae45abbea092f40ce0cb0176fb89ae048aea5
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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