mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-08 14:08:33 +00:00
Add additional params to test
This commit is contained in:
parent
26f3038bb1
commit
f582fd773b
2 changed files with 2 additions and 4 deletions
|
@ -105,7 +105,7 @@ public class RundeckClientTest {
|
||||||
@Betamax(tape = "get_history_user",
|
@Betamax(tape = "get_history_user",
|
||||||
match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query })
|
match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query })
|
||||||
public void getHistoryUser() throws Exception {
|
public void getHistoryUser() throws Exception {
|
||||||
final RundeckHistory test = client.getHistory("demo", "bob", (String)null, (List)null, null, null, null, null, null);
|
final RundeckHistory test = client.getHistory("demo", "bob", (String)null, (List)null, null, null, null, 1L, 0L);
|
||||||
Assert.assertEquals(1, test.getCount());
|
Assert.assertEquals(1, test.getCount());
|
||||||
Assert.assertEquals(20, test.getMax());
|
Assert.assertEquals(20, test.getMax());
|
||||||
Assert.assertEquals(0, test.getOffset());
|
Assert.assertEquals(0, test.getOffset());
|
||||||
|
|
|
@ -4,10 +4,8 @@ interactions:
|
||||||
- recorded: 2012-08-24T21:37:50.531Z
|
- recorded: 2012-08-24T21:37:50.531Z
|
||||||
request:
|
request:
|
||||||
method: GET
|
method: GET
|
||||||
uri: http://rundeck.local:4440/api/5/history?project=demo&userFilter=bob
|
uri: http://rundeck.local:4440/api/5/history?project=demo&userFilter=bob&max=1&offset=0
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '52'
|
|
||||||
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
|
|
||||||
Host: rundeck.localtest:8080
|
Host: rundeck.localtest:8080
|
||||||
Proxy-Connection: Keep-Alive
|
Proxy-Connection: Keep-Alive
|
||||||
User-Agent: RunDeck API Java Client 5
|
User-Agent: RunDeck API Java Client 5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue