API token support added (api v11)

This commit is contained in:
Greg Schueler 2014-04-04 11:42:29 -07:00
parent 0f8e338719
commit c7153a5613
2 changed files with 5 additions and 5 deletions

View file

@ -110,6 +110,6 @@ h2. RunDeck API version 11
* SSH Key delete - *TODO* * SSH Key delete - *TODO*
* SSH Key list - *TODO* * SSH Key list - *TODO*
* SSH Key get - *TODO* * SSH Key get - *TODO*
* API Token create - *TODO* * API Token create - OK
* API Token list - *TODO* * API Token list - OK
* API Token delete - *TODO* * API Token delete - OK

View file

@ -1245,7 +1245,7 @@ public class RundeckClientTest {
* list api tokens all * list api tokens all
*/ */
@Test @Test
@Betamax(tape = "api_tokens_list_all"/*, mode = TapeMode.READ_ONLY*/) @Betamax(tape = "api_tokens_list_all", mode = TapeMode.READ_ONLY)
public void listApiTokens() throws Exception { public void listApiTokens() throws Exception {
final RundeckClient client = createClient(TEST_TOKEN_7, 11); final RundeckClient client = createClient(TEST_TOKEN_7, 11);
List<RundeckToken> tokens = client.listApiTokens(); List<RundeckToken> tokens = client.listApiTokens();
@ -1266,7 +1266,7 @@ public class RundeckClientTest {
* get api token * get api token
*/ */
@Test @Test
@Betamax(tape = "api_token_delete"/*, mode = TapeMode.READ_ONLY*/) @Betamax(tape = "api_token_delete", mode = TapeMode.READ_ONLY)
public void deleteApiToken() throws Exception { public void deleteApiToken() throws Exception {
final RundeckClient client = createClient(TEST_TOKEN_7, 11); final RundeckClient client = createClient(TEST_TOKEN_7, 11);