Example #1
0
  @Test
  public void testPushToSsh() throws IOException {
    Project project = entityFactory.make(Project.class);
    project.setName("project");
    CodeRepo repo = entityFactory.make(CodeRepo.class);
    repo.setProject(project);
    repo.setName("main");
    CodeRevision revision = new CodeRevision(repo, MavenRepo.COMMIT_WITH_SIMPLE_SUCCESSFUL_TEST);

    gitStrategy.pushTo(repo, vagrantMachine.getNodeConnection(), "dest", revision);

    strategy.build(project, vagrantMachine.getNodeConnection(), "dest");
  }
Example #2
0
 private Node createNode() throws IOException {
   Cluster cluster = entityFactory.make(Cluster.class);
   cluster.setName("unittest-" + UUID.randomUUID());
   cluster.setProvider("vagrant");
   node = vagrant.createNode(cluster);
   return node;
 }