Add additional params to test

This commit is contained in:
Greg Schueler 2012-08-29 09:12:44 -07:00
parent 26f3038bb1
commit f582fd773b
2 changed files with 2 additions and 4 deletions

View file

@ -105,7 +105,7 @@ public class RundeckClientTest {
@Betamax(tape = "get_history_user",
match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query })
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(20, test.getMax());
Assert.assertEquals(0, test.getOffset());

View file

@ -4,10 +4,8 @@ interactions:
- recorded: 2012-08-24T21:37:50.531Z
request:
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:
Content-Length: '52'
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: rundeck.localtest:8080
Proxy-Connection: Keep-Alive
User-Agent: RunDeck API Java Client 5