Package com.openshift.client.utils

Examples of com.openshift.client.utils.TestConnectionBuilder


  private IUser user;
  private IDomain domain;

  @Before
  public void setUp() throws OpenShiftException, IOException {
    this.user = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    this.domain = DomainTestUtils.ensureHasDomain(user);
  }
View Full Code Here


  public void shouldSeeNewApplicationAfterRefresh() throws OpenShiftException, FileNotFoundException, IOException {
    // pre-condition
    IDomain domain = DomainTestUtils.ensureHasDomain(user);
    int numOfApplications = domain.getApplications().size();

    IUser otherUser = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IDomain otherDomain = otherUser.getDomain(domain.getId());
    assertNotNull(otherDomain);

    // operation
    String applicationName = "app" + StringUtils.createRandomString();
View Full Code Here

  public void shouldMissApplicationAfterRefresh() throws OpenShiftException, FileNotFoundException, IOException {
    // pre-condition
    IDomain domain = DomainTestUtils.ensureHasDomain(user);
    IApplication application = ApplicationTestUtils.getOrCreateApplication(domain);
    assertThat(application).isNotNull();
    IUser otherUser = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IDomain otherDomain = otherUser.getDomain(domain.getId());
    assertNotNull(otherDomain);
    IApplication otherDomainApplication = otherDomain.getApplicationByName(application.getName());
    assertThat(otherDomainApplication).isNotNull();
   
View Full Code Here

TOP

Related Classes of com.openshift.client.utils.TestConnectionBuilder

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.