Commit e222e408 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Merge branch 'bugfix/GONRG-2074-Incorrect-response' into 'integration-master'

Incorrect response for incorrect request

Closes GONRG-2074

See merge request go3-nrg/platform/System/partition!36
parents a7bd02e1 6a629c7e
Pipeline #33766 failed with stages
in 1 minute and 51 seconds
......@@ -14,6 +14,7 @@
package org.opengroup.osdu.partition.model;
import javax.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
......@@ -28,6 +29,7 @@ import java.util.Map;
@NoArgsConstructor
public class PartitionInfo {
@NotEmpty
@Builder.Default
Map<String, Property> properties = new HashMap<>();
}
\ No newline at end of file
......@@ -42,7 +42,7 @@ public class TestCreatePartition extends CreatePartitionTest {
@Override
@Test
public void should_return40XResponseCode_when_makingRequest_withInvalidPayload() throws Exception {
String invalidPayload = "invalidPayload";
String invalidPayload = "{\"properties_invalid\":{}}";
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