Package com.openshift.internal.client.httpclient.request

Examples of com.openshift.internal.client.httpclient.request.StringParameter


        GearProfileTestUtils.getFirstAvailableGearProfile(domain),
        "git://github.com/adietish/openshift-java-client.git");
   
    // verification
    mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT, 
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray()
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_INITIAL_GIT_URL, "git://github.com/adietish/openshift-java-client.git")
    );
  }
View Full Code Here


   
    // verification
    mockDirector.verifyCreateApplication(
        "foobarz",
        42001,
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "jekyll"),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_INITIAL_GIT_URL, "git://github.com/adietish/openshift-java-client.git"),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray()
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME,
                    JENKINS_14_NAME))
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME,
View Full Code Here

    // operation
    domain.createApplication("scalable", CartridgeTestUtils.as7(), ApplicationScale.NO_SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain), null, timeout);

    // verifications
    mockDirector.verifyCreateApplication("foobarz", timeout,
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, String.valueOf(Boolean.FALSE)),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray().add(
                new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "scalable"));
  }
View Full Code Here

    // verification
    assertThat(key.getKeyType()).isEqualTo(SSHKeyType.SSH_DSA);
    assertThat(key.getPublicKey()).isEqualTo(newPublicKeyContent);
    mockDirector.verifyUpdateKey(
        keyName,
        new StringParameter("type", SSHKeyTestUtils.SSH_DSA),
        new StringParameter("content", key.getPublicKey()));
  }
View Full Code Here

    assertThat(key.getPublicKey()).isEqualTo(newPublicKeyContent);
    HashMap<String, Object> parameterMap = new HashMap<String, Object>();
    parameterMap.put("type", SSHKeyTestUtils.SSH_RSA);
    mockDirector.verifyUpdateKey(
        keyName,
        new StringParameter("type", SSHKeyTestUtils.SSH_RSA),
        new StringParameter("content", key.getPublicKey()));
  }
View Full Code Here

    protected Parameters scale(ApplicationScale scale) {
      if (scale == null) {
        return this;
      }
      return add(new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, scale.getValue()));
    }
View Full Code Here

    protected Parameters gearProfile(IGearProfile gearProfile) {
      if (gearProfile == null) {
        return this;
      }
      return add(new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, gearProfile.getName()));
    }
View Full Code Here

   
    protected Parameters add(String name, String value) {
      if (StringUtils.isEmpty(value)) {
        return this;
      }
      return add(new StringParameter(name, value));
    }
View Full Code Here

      super(LINK_START_APPLICATION);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_START));
    }
View Full Code Here

      super(LINK_STOP_APPLICATION);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_STOP));
    }
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.httpclient.request.StringParameter

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.