use of org.opentosca.toscana.model.visitor.VisitableNode in project TOSCAna by StuPro-TOSCAna.
the class CloudFormationPluginTest method testLamp.
@Test(expected = TransformationFailureException.class)
public void testLamp() {
try {
Set<RootNode> nodes = lamp.getNodes();
// visit compute nodes first
for (VisitableNode node : nodes) {
if (node instanceof Compute) {
node.accept(cfnNodeVisitor);
}
}
for (VisitableNode node : nodes) {
if (!(node instanceof Compute)) {
node.accept(cfnNodeVisitor);
}
}
System.err.println(cfnModule.toString());
} catch (TransformationFailureException tfe) {
// provided so this test can pass
if (!(tfe.getCause() instanceof SdkClientException)) {
throw tfe;
}
logger.debug("Passed without internet connection / credentials provided");
}
}
Aggregations