Add get Project/config endpoint

This commit is contained in:
Greg Schueler 2014-02-27 12:44:26 -08:00
parent b571c2a5be
commit 92eb7acc15
3 changed files with 56 additions and 1 deletions

View file

@ -91,6 +91,17 @@ public class RundeckClientTest {
Assert.assertNotNull(project.getProjectConfig());
}
@Test
@Betamax(tape = "get_project_configv11")
public void getProjectConfig() throws Exception {
ProjectConfig config = createClient(TEST_TOKEN_6, 11).getProjectConfig("monkey1");
Assert.assertNotNull(config);
Assert.assertNotNull(config.getProperties());
Assert.assertEquals(9,config.getProperties().size());
Assert.assertEquals("monkey1", config.getProperties().get("project.name"));
}
@Test
@Betamax(tape = "get_history")
public void getHistory() throws Exception {