Search in sources :

Example 6 with ManagedCluster

use of com.google.cloud.dataproc.v1.ManagedCluster in project kubernetes-client by fabric8io.

the class ManagedClusterCrudTest method get.

@Test
void get() {
    // Given
    client.clusters().managedClusters().create(createNewManagedCluster("test-get"));
    // When
    ManagedCluster managedCluster = client.clusters().managedClusters().withName("test-get").get();
    // Then
    assertThat(managedCluster).isNotNull().hasFieldOrPropertyWithValue("metadata.name", "test-get");
}
Also used : ManagedCluster(io.fabric8.openclustermanagement.api.model.cluster.v1.ManagedCluster) Test(org.junit.jupiter.api.Test)

Aggregations

ManagedCluster (io.fabric8.openclustermanagement.api.model.cluster.v1.ManagedCluster)5 Test (org.junit.jupiter.api.Test)4 ClusterConfig (com.google.cloud.dataproc.v1.ClusterConfig)1 GceClusterConfig (com.google.cloud.dataproc.v1.GceClusterConfig)1 HadoopJob (com.google.cloud.dataproc.v1.HadoopJob)1 ManagedCluster (com.google.cloud.dataproc.v1.ManagedCluster)1 OrderedJob (com.google.cloud.dataproc.v1.OrderedJob)1 WorkflowMetadata (com.google.cloud.dataproc.v1.WorkflowMetadata)1 WorkflowTemplate (com.google.cloud.dataproc.v1.WorkflowTemplate)1 WorkflowTemplatePlacement (com.google.cloud.dataproc.v1.WorkflowTemplatePlacement)1 WorkflowTemplateServiceClient (com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient)1 WorkflowTemplateServiceSettings (com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings)1 Empty (com.google.protobuf.Empty)1 ManagedClusterBuilder (io.fabric8.openclustermanagement.api.model.cluster.v1.ManagedClusterBuilder)1 DefaultOpenClusterManagementClient (io.fabric8.openclustermanagement.client.DefaultOpenClusterManagementClient)1 OpenClusterManagementClient (io.fabric8.openclustermanagement.client.OpenClusterManagementClient)1 Scanner (java.util.Scanner)1 ExecutionException (java.util.concurrent.ExecutionException)1