Adapts tests to new GitResource URL

This commit is contained in:
Johannes Schnatterer
2018-08-01 15:15:07 +02:00
parent 59b60d104c
commit fc77ae3a47

View File

@@ -75,10 +75,12 @@ public class GitConfigResourceTest {
assertTrue(response.getContentAsString().contains("\"disabled\":false"));
//assertTrue(response.getContentAsString().contains("\"repository-directory\":\"repository/directory\""));
//assertTrue(response.getContentAsString().contains("\"gc-expression\":\"valid Git GC Cron Expression\""));
assertTrue(response.getContentAsString().contains("\"self\":{\"href\":\"/v2/config/repositories/git"));
assertTrue(response.getContentAsString().contains("\"update\":{\"href\":\"/v2/config/repositories/git"));
assertTrue(response.getContentAsString().contains("\"self\":{\"href\":\"/v2/config/git"));
assertTrue(response.getContentAsString().contains("\"update\":{\"href\":\"/v2/config/git"));
}
// TODO negative tests
private GitConfig createConfiguration() {
GitConfig config = new GitConfig();
//config.setGcExpression("valid Git GC Cron Expression");