Search in sources :

Example 11 with CallBuilderFactory

use of oracle.kubernetes.operator.helpers.CallBuilderFactory in project weblogic-kubernetes-operator by oracle.

the class ServiceHelperTest method startClean.

@Before
public void startClean() throws Exception {
    CallBuilderFactory factory = new CallBuilderFactory(null);
    // Delete the service if left around.
    System.out.println("Deleting service pre-test");
    try {
        factory.create().deleteService("domain-uid-admin", "tests");
    } catch (ApiException e) {
        if (e.getCode() != CallBuilder.NOT_FOUND) {
            throw e;
        }
    }
}
Also used : CallBuilderFactory(oracle.kubernetes.operator.helpers.CallBuilderFactory) ApiException(io.kubernetes.client.ApiException) Before(org.junit.Before)

Aggregations

CallBuilderFactory (oracle.kubernetes.operator.helpers.CallBuilderFactory)11 ApiException (io.kubernetes.client.ApiException)8 V1ObjectMeta (io.kubernetes.client.models.V1ObjectMeta)6 Domain (oracle.kubernetes.weblogic.domain.v1.Domain)3 V1Namespace (io.kubernetes.client.models.V1Namespace)2 V1Secret (io.kubernetes.client.models.V1Secret)2 Packet (oracle.kubernetes.operator.work.Packet)2 Before (org.junit.Before)2 V1Service (io.kubernetes.client.models.V1Service)1 V1ServiceList (io.kubernetes.client.models.V1ServiceList)1 VersionInfo (io.kubernetes.client.models.VersionInfo)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 TreeMap (java.util.TreeMap)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1 WebApplicationException (javax.ws.rs.WebApplicationException)1 DomainPresenceInfo (oracle.kubernetes.operator.helpers.DomainPresenceInfo)1 ResponseStep (oracle.kubernetes.operator.helpers.ResponseStep)1