Commit 1af924e8 authored by Anastasiia Gelmut's avatar Anastasiia Gelmut
Browse files

GONRG-1599 Fixed partition integration test.

parent f1b3adb4
......@@ -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());
}
}
Supports Markdown
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