Search in sources :

Example 6 with Locations

use of com.google.api.services.container.v1beta1.Container.Projects.Locations in project platinum by hartwigmedical.

the class KubernetesEngineTest method setup.

@Before
public void setup() {
    final Projects projects = mock(Projects.class);
    processRunner = mock(ProcessRunner.class);
    final Container container = mock(Container.class);
    locations = mock(Locations.class);
    clusters = mock(Clusters.class);
    when(container.projects()).thenReturn(projects);
    when(projects.locations()).thenReturn(locations);
    when(locations.clusters()).thenReturn(clusters);
    when(processRunner.execute(anyList())).thenReturn(true);
    victim = new KubernetesEngine(container, processRunner, CONFIGURATION);
}
Also used : Container(com.google.api.services.container.v1beta1.Container) Locations(com.google.api.services.container.v1beta1.Container.Projects.Locations) Clusters(com.google.api.services.container.v1beta1.Container.Projects.Locations.Clusters) Projects(com.google.api.services.container.v1beta1.Container.Projects) Before(org.junit.Before)

Aggregations

Create (com.google.api.services.container.v1beta1.Container.Projects.Locations.Clusters.Create)5 Get (com.google.api.services.container.v1beta1.Container.Projects.Locations.Clusters.Get)5 Operation (com.google.api.services.container.v1beta1.model.Operation)5 Container (com.google.api.services.container.v1beta1.Container)3 CreateClusterRequest (com.google.api.services.container.v1beta1.model.CreateClusterRequest)3 Test (org.junit.Test)3 GoogleJsonResponseException (com.google.api.client.googleapis.json.GoogleJsonResponseException)2 Cluster (com.google.api.services.container.v1beta1.model.Cluster)2 IPAllocationPolicy (com.google.api.services.container.v1beta1.model.IPAllocationPolicy)2 NodeConfig (com.google.api.services.container.v1beta1.model.NodeConfig)2 NodePool (com.google.api.services.container.v1beta1.model.NodePool)2 PrivateClusterConfig (com.google.api.services.container.v1beta1.model.PrivateClusterConfig)2 Console (com.hartwig.platinum.Console)2 BatchConfiguration (com.hartwig.platinum.config.BatchConfiguration)2 GcpConfiguration (com.hartwig.platinum.config.GcpConfiguration)2 PlatinumConfiguration (com.hartwig.platinum.config.PlatinumConfiguration)2 JsonKey (com.hartwig.platinum.iam.JsonKey)2 TumorNormalPair (com.hartwig.platinum.p5sample.TumorNormalPair)2 DefaultKubernetesClient (io.fabric8.kubernetes.client.DefaultKubernetesClient)2 IOException (java.io.IOException)2