Package com.vmware.bdd.apitypes

Examples of com.vmware.bdd.apitypes.ValidateResult


   public ValidateResult validateBlueprint(@RequestBody ClusterCreate createSpec) {
      SoftwareManager softwareManager =
            clusterMgr.getClusterConfigMgr().getSoftwareManager(
                  createSpec.getAppManager());
      ClusterBlueprint blueprint = createSpec.toBlueprint();
      ValidateResult result = new ValidateResult();
      boolean validated = false;
      try {
         validated = softwareManager.validateBlueprint(blueprint);
      } catch (ValidationException ve) {
         result.setFailedMsgList(ve.getFailedMsgList());
         result.setWarningMsgList(ve.getWarningMsgList());
      }
      result.setValidated(validated);
      return result;
   }
View Full Code Here


       network.setName("dhcp");
       network.setDhcp(true);
       network.setPortGroup("pg1");
       networks[0] = network;

       ValidateResult vr = new ValidateResult();
       vr.setValidated(true);

       ObjectMapper mapper = new ObjectMapper();
       buildReqRespWithoutReqBody("https://127.0.0.1:8443/serengeti/api/appmanager/Default/defaultdistro", HttpMethod.GET, HttpStatus.OK,
             mapper.writeValueAsString(distros[0]));
       buildReqRespWithoutReqBody("https://127.0.0.1:8443/serengeti/api/networks", HttpMethod.GET, HttpStatus.OK,
View Full Code Here

TOP

Related Classes of com.vmware.bdd.apitypes.ValidateResult

Copyright © 2018 www.massapicom. 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.