Examples of TestConnectionBuilder


Examples of com.openshift.client.utils.TestConnectionBuilder

  private IUser user;
  private IDomain domain;

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

Examples of com.openshift.client.utils.TestConnectionBuilder

  public void setup() throws Throwable {
    this.mockDirector = new HttpClientMockDirector();
    this.clientMock = mockDirector.client();

    final IOpenShiftConnection connection =
        new TestConnectionBuilder(SERVER).credentials(PASSWORD).create(clientMock);
    this.user = connection.getUser();
  }
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

      IOException {
    // pre-conditions
    IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
    EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(LatestVersionOf.mySQL(), application);
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName());
    assertThat(new ApplicationAssert(user2Application))
        .hasEmbeddedCartridge(LatestVersionOf.mySQL());

    // operation
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

    // pre-conditions
    IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
    EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(
        LatestVersionOf.mySQL(), application);
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName());
    EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(
        LatestVersionOf.mySQL(), user2Application);

    // operation
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

    // pre-conditions
    IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
    EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(
        LatestVersionOf.postgreSQL(), application);
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName());
    assertThat(new ApplicationAssert(user2Application)).hasEmbeddedCartridge(
        LatestVersionOf.postgreSQL());

    // operation
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

    // verification
    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(LatestVersionOf.mongoDB().get(user)))
        .hasUrlProperty();
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName());
    IEmbeddableCartridge mongo = LatestVersionOf.mongoDB().get(user2);
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(mongo))
        .hasUrlProperty();
  }
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

    // verification
    IEmbeddableCartridge rockMongo = LatestVersionOf.rockMongo().get(user);
    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(rockMongo))
        .hasUrlProperty();
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName());
    assertThat(new ApplicationAssert(user2Application)).hasEmbeddedCartridges(
        LatestVersionOf.mongoDB(), LatestVersionOf.rockMongo());
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(rockMongo))
        .hasUrlProperty();
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

    // verification
    IEmbeddableCartridge phpMyadmin = LatestVersionOf.phpMyAdmin().get(user);
    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(phpMyadmin))
        .hasUrlProperty();
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName());
    IEmbeddableCartridge phpMyAdmin = LatestVersionOf.phpMyAdmin().get(user2);
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(phpMyAdmin))
        .hasUrlProperty();
  }
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

    // verification
    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(LatestVersionOf.jenkinsClient().get(user)))
        .hasUrlProperty();
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName());
    IEmbeddableCartridge jenkinsClient =
        LatestVersionOf.jenkinsClient().get(user2);
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(jenkinsClient))
        .hasUrlProperty();
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

    assertThat(new ApplicationAssert(application)
        .hasEmbeddedCartridge(LatestVersionOf.mySQL()));

    // operation
    // use user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName());
    user2Application.removeEmbeddedCartridge(LatestVersionOf.mySQL().get(user2));
    assertThat(new ApplicationAssert(user2Application)
        .hasNotEmbeddableCartridges(LatestVersionOf.mySQL()));
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.