mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 21:45:43 +01:00
Adapts tests to new GitResource URL
This commit is contained in:
@@ -75,10 +75,12 @@ public class GitConfigResourceTest {
|
|||||||
assertTrue(response.getContentAsString().contains("\"disabled\":false"));
|
assertTrue(response.getContentAsString().contains("\"disabled\":false"));
|
||||||
//assertTrue(response.getContentAsString().contains("\"repository-directory\":\"repository/directory\""));
|
//assertTrue(response.getContentAsString().contains("\"repository-directory\":\"repository/directory\""));
|
||||||
//assertTrue(response.getContentAsString().contains("\"gc-expression\":\"valid Git GC Cron Expression\""));
|
//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("\"self\":{\"href\":\"/v2/config/git"));
|
||||||
assertTrue(response.getContentAsString().contains("\"update\":{\"href\":\"/v2/config/repositories/git"));
|
assertTrue(response.getContentAsString().contains("\"update\":{\"href\":\"/v2/config/git"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO negative tests
|
||||||
|
|
||||||
private GitConfig createConfiguration() {
|
private GitConfig createConfiguration() {
|
||||||
GitConfig config = new GitConfig();
|
GitConfig config = new GitConfig();
|
||||||
//config.setGcExpression("valid Git GC Cron Expression");
|
//config.setGcExpression("valid Git GC Cron Expression");
|
||||||
|
|||||||
Reference in New Issue
Block a user