SecurityGroups { public static String formatNameFromBusinessKey(String processBusinessKey) { return String.format("network-%s", processBusinessKey); } private  SecurityGroups(); static String formatNameFromBusinessKey(String processBusinessKey); static SecurityGroup getByName(CloudStackClient cloudStackClient, String securityGroup); static Set<SecurityGroup> getAll(CloudStackClient cloudStackClient); static void deleteByName(CloudStackClient cloudStackClient, String securityGroupName); static SecurityGroup createSecurityGroup(CloudStackClient cloudStackClient, String securityGroupName); static void deleteNetworkRules(CloudStackClient cloudStackClient, SecurityGroup securityGroup); static void applyNetworkRules(CloudStackClient cloudStackClient, SecurityGroup securityGroup, Network network); static final int DEFAULT_ICMP_CODE; static final int DEFAULT_ICMP_TYPE; }
@Test public void testSecurityNameFromBusinessProcessKey() throws Exception { assertThat(SecurityGroups.formatNameFromBusinessKey("test")).isEqualTo("network-test"); }