Shubham, Ankit | Add. All the attributes of loadbalancers are mandatory
This commit is contained in:
@@ -18,5 +18,6 @@
|
||||
"endpoint": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["type","accessPolicies","endpoint"]
|
||||
}
|
||||
@@ -74,4 +74,13 @@ public class SchemaTest {
|
||||
|
||||
assertTrue(validationUtils.isJsonValid(schemaFile, jsonFile));
|
||||
}
|
||||
|
||||
@Test
|
||||
void expectFalseWhenSomePropertiesOfLoadBalancerAreMissing() throws IOException, ProcessingException {
|
||||
File schemaFile = new File(schemaPath + "loadBalancer.json");
|
||||
File jsonFile = new File(testData + "invalidLoadBalancer.json");
|
||||
ValidationUtils validationUtils = new ValidationUtils();
|
||||
|
||||
assertFalse(validationUtils.isJsonValid(schemaFile, jsonFile));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"type": "elb",
|
||||
"endpoint": "dev-spring-boot-demo-service.np.navi-tech.in"
|
||||
}
|
||||
Reference in New Issue
Block a user