Search in sources :

Example 1 with Network

use of bio.terra.buffer.generated.model.Network in project terra-resource-buffer by DataBiosphere.

the class GoogleProjectConfigUtilsTest method userPrivateGoogleAccess.

@Test
public void userPrivateGoogleAccess() throws Exception {
    GcpProjectConfig gcpProjectConfig = new GcpProjectConfig().network(new Network().enablePrivateGoogleAccess(false));
    assertFalse(GoogleProjectConfigUtils.usePrivateGoogleAccess(gcpProjectConfig));
    gcpProjectConfig.setNetwork(gcpProjectConfig.getNetwork().enableNetworkMonitoring(true));
    assertTrue(GoogleProjectConfigUtils.usePrivateGoogleAccess(gcpProjectConfig));
}
Also used : GcpProjectConfig(bio.terra.buffer.generated.model.GcpProjectConfig) Network(bio.terra.buffer.generated.model.Network) Test(org.junit.jupiter.api.Test) BaseUnitTest(bio.terra.buffer.common.BaseUnitTest)

Aggregations

BaseUnitTest (bio.terra.buffer.common.BaseUnitTest)1 GcpProjectConfig (bio.terra.buffer.generated.model.GcpProjectConfig)1 Network (bio.terra.buffer.generated.model.Network)1 Test (org.junit.jupiter.api.Test)1