private VDS createServer(Guid serverId, String hostname) { VDS vds = new VDS(); vds.setId(serverId); vds.setHostName(hostname); vds.setStatus(VDSStatus.Up); return vds; }
private void setupServersList() { serversList = new ArrayList<VDS>(); VDS server = new VDS(); server.setVdsGroupId(CLUSTER_ID); server.setVdsGroupName(CLUSTER_NAME); server.setId(server_id1); server.setVdsName(TEST_SERVER1); server.setHostName(TEST_SERVER1); serversList.add(server); server = new VDS(); server.setVdsGroupId(CLUSTER_ID); server.setVdsGroupName(CLUSTER_NAME); server.setId(server_id2); server.setVdsName(TEST_SERVER2); server.setHostName(TEST_SERVER2); serversList.add(server); }
private VDS makeTestVds(Guid vdsId) { VDS newVdsData = new VDS(); newVdsData.setHostName("BUZZ"); newVdsData.setSshPort(22); newVdsData.setSshUsername("root"); newVdsData.setSshKeyFingerprint("1234"); newVdsData.setVdsName("BAR"); newVdsData.setVdsGroupCompatibilityVersion(new Version("1.2.3")); newVdsData.setVdsGroupId(Guid.newGuid()); newVdsData.setId(vdsId); return newVdsData; }