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
Partition
Commits
1af924e8
Commit
1af924e8
authored
Jan 21, 2021
by
Anastasiia Gelmut
Browse files
GONRG-1599 Fixed partition integration test.
parent
f1b3adb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
testing/partition-test-gcp/src/test/java/org/opengroup/osdu/partition/api/TestCreatePartition.java
View file @
1af924e8
...
...
@@ -17,8 +17,12 @@
package
org.opengroup.osdu.partition.api
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
com.sun.jersey.api.client.ClientResponse
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.opengroup.osdu.partition.util.GCPTestUtils
;
public
class
TestCreatePartition
extends
CreatePartitionTest
{
...
...
@@ -34,4 +38,12 @@ public class TestCreatePartition extends CreatePartitionTest {
public
void
tearDown
()
throws
Exception
{
this
.
testUtils
=
null
;
}
@Override
@Test
public
void
should_return40XResponseCode_when_makingRequest_withInvalidPayload
()
throws
Exception
{
String
invalidPayload
=
"invalidPayload"
;
ClientResponse
response
=
descriptor
.
runWithCustomPayload
(
getId
(),
invalidPayload
,
testUtils
.
getAccessToken
());
assertEquals
(
400
,
response
.
getStatus
());
}
}
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