@Test public void testVPCSecurityGroups() { when(server.getSecurity().getCloudSecurityIds()).thenReturn(List.of("sg-123")); assertEquals(List.of("sg-123"), underTest.getVPCSecurityGroups()); }
public List<String> getVPCSecurityGroups() { return databaseServer.getSecurity().getCloudSecurityIds(); }
AwsRdsInstanceView { public List<String> getVPCSecurityGroups() { return databaseServer.getSecurity().getCloudSecurityIds(); } }
AwsRdsInstanceView { public List<String> getVPCSecurityGroups() { return databaseServer.getSecurity().getCloudSecurityIds(); } AwsRdsInstanceView(DatabaseServer databaseServer); }
AwsRdsInstanceView { public List<String> getVPCSecurityGroups() { return databaseServer.getSecurity().getCloudSecurityIds(); } AwsRdsInstanceView(DatabaseServer databaseServer); Long getAllocatedStorage(); Integer getBackupRetentionPeriod(); String getDBInstanceClass(); String getDBInstanceIdentifier(); String getEngine(); String getEngineVersion(); String getMasterUsername(); String getMasterUserPassword(); String getMultiAZ(); String getStorageType(); List<String> getVPCSecurityGroups(); }
AwsRdsInstanceView { public List<String> getVPCSecurityGroups() { return databaseServer.getSecurity().getCloudSecurityIds(); } AwsRdsInstanceView(DatabaseServer databaseServer); Long getAllocatedStorage(); Integer getBackupRetentionPeriod(); String getDBInstanceClass(); String getDBInstanceIdentifier(); String getEngine(); String getEngineVersion(); String getMasterUsername(); String getMasterUserPassword(); String getMultiAZ(); String getStorageType(); List<String> getVPCSecurityGroups();  }