Package com.openshift.client

Examples of com.openshift.client.IDomain.rename()


  public void shouldUpdateDomainId() throws Throwable {
    // pre-conditions
    mockDirector.mockRenameDomain("foobarz", GET_DOMAINS_FOOBARS);
    final IDomain domain = user.getDomain("foobarz");
    // operation
    domain.rename("foobars");
    // verifications
    assertThat(domain.getId()).isEqualTo("foobars");
    final IDomain updatedDomain = user.getDomain("foobars");
    assertThat(updatedDomain).isNotNull();
    assertThat(updatedDomain.getId()).isEqualTo("foobars");
View Full Code Here


    String namespace = DomainTestUtils.createRandomName();
    // cannot set namespace if there are applications
    ApplicationTestUtils.destroyAllApplications(domain);
   
    // operation
    domain.rename(namespace);

    // verification
    IDomain domainByNamespace = user.getDomain(namespace);
    assertThat(domainByNamespace.getId()).isEqualTo(namespace);
  }
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.