mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-18 19:08:21 +00:00
Add setProjectConfig for apiv11
This commit is contained in:
parent
92eb7acc15
commit
e548c14b24
11 changed files with 230 additions and 26 deletions
|
@ -101,6 +101,20 @@ public class RundeckClientTest {
|
|||
Assert.assertEquals(9,config.getProperties().size());
|
||||
Assert.assertEquals("monkey1", config.getProperties().get("project.name"));
|
||||
}
|
||||
@Test
|
||||
@Betamax(tape = "set_project_configv11")
|
||||
public void setProjectConfig() throws Exception {
|
||||
HashMap<String, String> config = new HashMap<String, String>();
|
||||
config.put("alphabetty", "spaghetti");
|
||||
config.put("blha.blee", "a big amazing thingy so there.");
|
||||
ProjectConfig result = createClient(TEST_TOKEN_6, 11).setProjectConfig("monkey1", config);
|
||||
Assert.assertNotNull(result);
|
||||
Assert.assertNotNull(result.getProperties());
|
||||
Assert.assertEquals(3, result.getProperties().size());
|
||||
Assert.assertEquals("monkey1", result.getProperties().get("project.name"));
|
||||
Assert.assertEquals("spaghetti", result.getProperties().get("alphabetty"));
|
||||
Assert.assertEquals("a big amazing thingy so there.", result.getProperties().get("blha.blee"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Betamax(tape = "get_history")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue