Add project export for apiv11

This commit is contained in:
Greg Schueler 2014-03-07 13:22:59 -08:00
parent 2ffe87d428
commit bea99b1c97
3 changed files with 77 additions and 5 deletions

View file

@ -28,6 +28,7 @@ import org.rundeck.api.query.ExecutionQuery;
import org.rundeck.api.util.PagedResults;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.InputStream;
import java.util.*;
@ -160,6 +161,15 @@ public class RundeckClientTest {
Assert.assertNull(value);
}
@Test
@Betamax(tape = "export_projectv11")
public void exportProject() throws Exception {
RundeckClient client1 = createClient(TEST_TOKEN_6, 11);
File temp = File.createTempFile("test-archive", ".zip");
temp.deleteOnExit();
int i = client1.exportProject("DEF1", temp);
Assert.assertEquals(8705,i);
}
@Test
@Betamax(tape = "get_history")
public void getHistory() throws Exception {
final RundeckHistory test = client.getHistory("test");