use of io.stackgres.common.crd.sgdistributedlogs.StackGresDistributedLogsPostgresServices in project stackgres by ongres.
the class DefaultPostgresServicesMutatorTest method clusterWithPostgresServiceNoType_shouldSetClusterIP.
@Test
void clusterWithPostgresServiceNoType_shouldSetClusterIP() {
setupDistributedLogsPgServices(withPgPrimaryService(TRUE, null), withPgReplicasService(FALSE, null));
StackGresDistributedLogsPostgresServices pgServicesMuted = mutate(review);
assertNull(pgServicesMuted.getPrimary().getEnabled());
assertEquals(CLUSTER_IP.toString(), pgServicesMuted.getPrimary().getType());
assertEquals(Boolean.FALSE, pgServicesMuted.getReplicas().getEnabled());
assertEquals(CLUSTER_IP.toString(), pgServicesMuted.getReplicas().getType());
}
Aggregations