Skip to content

Commit

Permalink
Add skeleton for consistency check of plain types
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Sep 26, 2017
1 parent 488434d commit 9d74f10
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -170,6 +170,7 @@ private static List<String> checkCorruptionUsingCsarExport(IRepository repositor
if (id instanceof ServiceTemplateId) {
checkServiceTemplate(repository, res, verbosity, (ServiceTemplateId) id);
}
checkPlainConformance(res, verbosity, id, tempCsar);
checkCsar(res, verbosity, id, tempCsar);
}

Expand All @@ -183,6 +184,17 @@ private static List<String> checkCorruptionUsingCsarExport(IRepository repositor
return res;
}

private static void checkPlainConformance(List<String> res, EnumSet<Verbosity> verbosity, DefinitionsChildId id, Path tempCsar) {
// TODO implement according to https://winery.github.io/test-repository/plain
if (id.getNamespace().getDecoded().startsWith("http://plain.winery.opentosca.org/")) {
if (id instanceof EntityTypeId) {
if (id.getXmlId().getDecoded().endsWith("WithoutProperties")) {
// TODO
}
}
}
}

private static void checkServiceTemplate(IRepository repository, List<String> res, EnumSet<Verbosity> verbosity, ServiceTemplateId id) {
final TServiceTemplate serviceTemplate = repository.getElement(id);
if (serviceTemplate.getTopologyTemplate() == null) {
Expand Down

0 comments on commit 9d74f10

Please sign in to comment.