Examples of ValidationOptions


Examples of com.puppetlabs.geppetto.validation.ValidationOptions

  @Test
  public void dependencyGraph() throws Exception {
    File root = TestDataProvider.getTestFile(new Path("testData/graphTestData/"));
    Diagnostic chain = new Diagnostic();
    ValidationOptions options = getValidationOptions();
    options.setCheckLayout(true);
    options.setCheckModuleSemantics(true);
    options.setCheckReferences(true);
    options.setFileType(FileType.PUPPET_ROOT);
    ByteArrayOutputStream stream = new ByteArrayOutputStream();

    ValidationService vs = getValidationService();
    BuildResult result = vs.validate(chain, root, options, null, SubMonitor.convert(null));
    getDependencyGraphProducer().produceGraph(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.