private VDS getVds(VDSStatus status) {
   VDS vds = new VDS();
   vds.setId(Guid.newGuid());
   vds.setVdsName("gfs1");
   vds.setVdsGroupId(CLUSTER_ID);
   vds.setStatus(status);
   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);
  }
Exemplo n.º 3
0
 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;
 }