From fc77ae3a4791a28e90b13d6562c7c784ffff6d8f Mon Sep 17 00:00:00 2001 From: Johannes Schnatterer Date: Wed, 1 Aug 2018 15:15:07 +0200 Subject: [PATCH] Adapts tests to new GitResource URL --- .../sonia/scm/api/v2/resources/GitConfigResourceTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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");