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));
}
Aggregations