mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-16 01:49:25 +00:00
Add project export for apiv11
This commit is contained in:
parent
2ffe87d428
commit
bea99b1c97
3 changed files with 77 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue