diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigResourceTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigResourceTest.java index 3665be0648..46e47bbf38 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigResourceTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigResourceTest.java @@ -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");