Examples of validateManifest()


Examples of com.puppetlabs.geppetto.validation.ValidationService.validateManifest()

  @Test
  public void validateAString_NotOk() throws Exception {
    String code = "$a = ";
    ValidationService vs = getValidationService();
    Diagnostic chain = new Diagnostic();
    vs.validateManifest(chain, code, null);
    assertTrue("There should be errors", chain.getChildren().size() != 0);
  }

  @Test
  public void validateAString_ok() throws Exception {
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.ValidationService.validateManifest()

  @Test
  public void validateAString_ok() throws Exception {
    String code = "$a = 'a::b'";
    ValidationService vs = getValidationService();
    Diagnostic chain = new Diagnostic();
    vs.validateManifest(chain, code, SubMonitor.convert(null));
    assertTrue("There should be no errors", chain.getChildren().size() == 0);
  }

  @Test
  public void validateCiruclarRepositories() throws Exception {
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.ValidationService.validateManifest()

  @Test
  public void validateManifest_notok() throws Exception {
    File manifest = TestDataProvider.getTestFile(new Path("testData/manifests/not_ok_manifest.pp"));
    ValidationService vs = getValidationService();
    Diagnostic chain = new Diagnostic();
    vs.validateManifest(chain, manifest, SubMonitor.convert(null));
    assertTrue("There should be errors", countErrors(chain) > 0);
  }

  @Test
  public void validateManifest_ok() throws Exception {
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.ValidationService.validateManifest()

  @Test
  public void validateManifest_ok() throws Exception {
    File manifest = TestDataProvider.getTestFile(new Path("testData/manifests/ok_manifest.pp"));
    ValidationService vs = getValidationService();
    Diagnostic chain = new Diagnostic();
    vs.validateManifest(chain, manifest, SubMonitor.convert(null));
    assertTrue("There should be no errors", countErrors(chain) == 0);
  }

  @Test
  public void validateModule_notok() throws Exception {
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.