Search in sources :

Example 1 with GetSharedDomainResponse

use of org.cloudfoundry.client.v2.shareddomains.GetSharedDomainResponse in project promregator by promregator.

the class CFAccessorMock method retrieveSharedDomain.

@Override
public Mono<GetSharedDomainResponse> retrieveSharedDomain(String domainId) {
    if (domainId.equals(UNITTEST_SHARED_DOMAIN_UUID)) {
        SharedDomainEntity entity = SharedDomainEntity.builder().name(UNITTEST_SHARED_DOMAIN).build();
        GetSharedDomainResponse resp = GetSharedDomainResponse.builder().entity(entity).build();
        return Mono.just(resp);
    }
    Assert.fail("Invalid shared domain request");
    return null;
}
Also used : SharedDomainEntity(org.cloudfoundry.client.v2.shareddomains.SharedDomainEntity) GetSharedDomainResponse(org.cloudfoundry.client.v2.shareddomains.GetSharedDomainResponse)

Aggregations

GetSharedDomainResponse (org.cloudfoundry.client.v2.shareddomains.GetSharedDomainResponse)1 SharedDomainEntity (org.cloudfoundry.client.v2.shareddomains.SharedDomainEntity)1