for (String specFile : specFiles) {
ClusterCreate clusterSpec = CommandsUtils.getObjectByJsonString(
ClusterCreate.class, CommandsUtils.dataFromFile(this.getClass().getResource("/" + specFile).getPath()));
List<String> errors = new ArrayList<String>();
List<String> warnings = new ArrayList<String>();
boolean valid = clusterSpec.validateNodeGroupPlacementPolicies(errors, warnings);
Assert.assertTrue(valid, errors.toString());
}
} catch (Exception e) {
Assert.fail("failed to parse cluster spec", e);
}