Examples of TestConnectionBuilder


Examples of com.openshift.client.utils.TestConnectionBuilder

  }

  @Test
  public void shouldEqualDomainFromOtherUser() throws Throwable {
    // pre-conditions
    IUser user = new TestConnectionBuilder().defaultCredentials().create(clientMock).getUser();

    // operation
    final IDomain domain = user.getDomain("foobarz");

    // verifications
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

  private IApplication application;
  private Session session;

  @BeforeClass
  public static void createSSHKeys() throws IOException, JSchException {
    user = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    SSHKeyTestUtils.addTestKeyToOpenShift(user);
  }
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

        // ATTENTION: nothing changed in the mocked response (works
        // since application is not caching geargroups)
        .mockSetGearGroups(
            "foobarz", "springeap6", Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_GEARGROUPS)
        .client();
    this.user = new TestConnectionBuilder().defaultCredentials().create(client).getUser();
    this.domain = user.getDomain("foobarz");
    this.springeap6Application = domain.getApplicationByName("springeap6");
  }
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

    IHttpClient httpClient = builder
        .mockGetDomains(GET_DOMAINS)
        .mockGetApplications(
            "foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_3EMBEDDED)
        .client();
    IUser user = new TestConnectionBuilder().defaultCredentials().create(httpClient).getUser();
    IDomain domain = user.getDomain("foobarz");
    IApplication application = domain.getApplicationByName("springeap6");

    IDeployedStandaloneCartridge cartridge = application.getCartridge();
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

  private IDomain domain;
  private IApplication application;

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

Examples of com.openshift.client.utils.TestConnectionBuilder

    // operation
    cartridge.setAdditionalGearStorage(additionalGearStorage);

    // verification
    // reload user info to ensure the storage info isnt cached
    IUser newUser = new TestConnectionBuilder()
        .defaultCredentials()
        .disableSSLCertificateChecks()
        .create()
        .getUser();
    IApplication newApplication = newUser.getDefaultDomain().getApplicationByName(application.getName());
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

  @Before
  public void setUp() throws SocketTimeoutException, HttpClientException, Throwable {
    this.mockDirector = new HttpClientMockDirector();
    final IOpenShiftConnection connection =
        new TestConnectionBuilder().defaultCredentials().create(mockDirector.client());
    this.user = connection.getUser();
  }
View Full Code Here

Examples of com.openshift.client.utils.TestConnectionBuilder

  private IUser user;

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

Examples of com.openshift.client.utils.TestConnectionBuilder

  private IOpenShiftConnection connection;

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

Examples of com.openshift.client.utils.TestConnectionBuilder

    // pre-condition
    IDomain domain = DomainTestUtils.ensureHasDomain(connection.getUser());
    assertThat(domain).isNotNull();
    String domainId = domain.getId();
    assertThat(domainId).isNotEmpty();
    IOpenShiftConnection connection = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create();
    APIResource api = ((APIResource) connection);
   
    // operation
    IDomain retrievedDomain = api.showDomain(domainId);
   
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.