Commit 705aa9c4 authored by Akshat  Joshi's avatar Akshat Joshi
Browse files

new ITs for service

parent fe2cdf0f
Pipeline #113181 failed with stages
in 7 seconds
......@@ -107,7 +107,6 @@ public class SchemaServiceStepDef_PUT implements En {
JsonElement jsonBody = new Gson().fromJson(body, JsonElement.class);
int currentMinorVersion = Integer.parseInt(this.context.getSchemaVersionMinor());
int currentMajorVersion = Integer.parseInt(this.context.getSchemaVersionMajor());
currentMajorVersion = currentMajorVersion + 1;
String id = "OSDUTest:testSource:testEntity:" + currentMajorVersion + "."
+ currentMinorVersion + ".0";
updateVersionInJsonBody(jsonBody, currentMinorVersion, currentMajorVersion, id);
......
......@@ -128,6 +128,7 @@ public class SystemSchemaStepDef_PUT implements En {
int currentMinorVersion = Integer.parseInt(this.context.getSchemaVersionMinor());
int currentMajorVersion = Integer.parseInt(this.context.getSchemaVersionMajor());
currentMajorVersion = currentMajorVersion + 1;
currentMinorVersion = currentMinorVersion + 1;
String id = "SchemaSanityTest:testSource:testEntity:" + currentMajorVersion + "."
+ currentMinorVersion + ".0";
updateVersionInJsonBody(jsonBody, currentMinorVersion, currentMajorVersion, id);
......
......@@ -34,12 +34,12 @@ Feature: To verify functionality of PUT schema Service
@SchemaService
Scenario Outline: Verify that System schema PUT API throws error if put request tries to create new record without development status
Given I hit system schema PUT API with <InputPayload> and mark schema as <status> for next major version
Then service should respond back with error <ReponseStatusCode>
Then service should respond back with <ReponseStatusCode> and <ResponseMessage>
Examples:
| InputPayload | ReponseStatusCode | ResponseMessage | status |
| "/input_payloads/postInPrivateScope_positiveScenario.json" | "201" | "/output_payloads/SchemaPost_PrivateScope_SuccessfulCreation.json" | "OBSOLETE" |
| "/input_payloads/postInPrivateScope_positiveScenario.json" | "201" | "/output_payloads/SchemaPost_PrivateScope_SuccessfulCreation.json" | "PUBLISHED" |
| "/input_payloads/postInPrivateScope_positiveScenario.json" | "200" | "/output_payloads/SchemaPost_PrivateScope_SuccessfulCreation.json" | "OBSOLETE" |
| "/input_payloads/postInPrivateScope_positiveScenario.json" | "200" | "/output_payloads/SchemaPost_PrivateScope_SuccessfulCreation.json" | "PUBLISHED" |
@SchemaService
Scenario Outline: Verify that System schema PUT API throws error if modification in schemaInfo is requested
......
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