java.lang.Object | |
↳ | org.rundeck.api.RundeckClientTest |
Test the RundeckClient. Uses betamax to unit-test HTTP requests without a live RunDeck instance.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TEST_TOKEN_0 | Note: to add a new test, do the following: 1) start a rundeck server, available at hostname "rundeck.local" 2) login as test or admin user, and generate a token 3) add the test token as a new TEST_TOKEN_X, and use that in your test 4) run 'mvn test', and commit the new yml file generated at src/test/resources/betamax/tapes | |||||||||
String | TEST_TOKEN_1 | ||||||||||
String | TEST_TOKEN_2 | ||||||||||
String | TEST_TOKEN_3 | ||||||||||
String | TEST_TOKEN_4 | ||||||||||
String | TEST_TOKEN_5 | ||||||||||
String | TEST_TOKEN_6 | ||||||||||
String | TEST_TOKEN_7 | ||||||||||
String | TEST_TOKEN_8 |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
recorder |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
delete executions with failure
| |||||||||||
get api token
| |||||||||||
delete single execution failure (does not exist)
| |||||||||||
delete single execution null input
| |||||||||||
delete single execution success
| |||||||||||
delete executions mixed success
| |||||||||||
delete executions with success
| |||||||||||
delete executions with failure
| |||||||||||
delete job
| |||||||||||
delete job (DNE)
| |||||||||||
delete ssh key
| |||||||||||
Execution output
| |||||||||||
Execution output for a node
| |||||||||||
Execution output for a node and step
| |||||||||||
Execution output for a step
| |||||||||||
Execution output state sequence
| |||||||||||
Execution output state sequence
| |||||||||||
Execution state structure
| |||||||||||
generate api token
| |||||||||||
get api token
| |||||||||||
Test incorrect <result> wrapper is handled correctly
| |||||||||||
Test paging values from results
| |||||||||||
get ssh key data
| |||||||||||
get ssh key data
| |||||||||||
get ssh key
| |||||||||||
get ssh key
| |||||||||||
Import jobs, xml contains project context
| |||||||||||
Import jobs, xml no project defined
| |||||||||||
Import jobs, using project parameter
| |||||||||||
Import jobs, project parameter overrides xml
| |||||||||||
Import jobs, project parameter v7 doesn' use parameter
| |||||||||||
Import jobs, project parameter v7 doesn' use parameter
| |||||||||||
Import jobs, project parameter v7 doesn' use parameter
| |||||||||||
list api tokens all
| |||||||||||
list api tokens for user
| |||||||||||
list directory
| |||||||||||
list root
| |||||||||||
Running executions for all projects using API v8, which queries for project list and then individually
queries each project's now running
| |||||||||||
Running executions for all projects using API v9
| |||||||||||
Store ssh key
| |||||||||||
Store ssh key
| |||||||||||
Handle v11 response without <result> wrapper
| |||||||||||
Handle incorrect <result> wrapper for v11 response
| |||||||||||
API v11 request to trigger job, with expected xml response without <result> wrapper
| |||||||||||
Response for API v11 incorrectly includes <result>, but we should handle this case
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Note: to add a new test, do the following: 1) start a rundeck server, available at hostname "rundeck.local" 2) login as test or admin user, and generate a token 3) add the test token as a new TEST_TOKEN_X, and use that in your test 4) run 'mvn test', and commit the new yml file generated at src/test/resources/betamax/tapes
delete single execution failure (does not exist)
Exception |
---|
Test incorrect <result> wrapper is handled correctly
Exception |
---|
Import jobs, project parameter overrides xml
Exception |
---|
Import jobs, project parameter v7 doesn' use parameter
Exception |
---|
Import jobs, project parameter v7 doesn' use parameter
Exception |
---|
Import jobs, project parameter v7 doesn' use parameter
Exception |
---|
Running executions for all projects using API v8, which queries for project list and then individually queries each project's now running
Exception |
---|
Running executions for all projects using API v9
Exception |
---|
Handle incorrect <result> wrapper for v11 response
Exception |
---|
API v11 request to trigger job, with expected xml response without <result> wrapper
Exception |
---|
Response for API v11 incorrectly includes <result>, but we should handle this case
Exception |
---|