From 2767b4a5d6ef564b2e78c56cd10df593b9c601ea Mon Sep 17 00:00:00 2001 From: "remi.schneider" Date: Wed, 23 Nov 2016 09:54:15 +0100 Subject: [PATCH] [maven-release-plugin] prepare release 1.2.0 --- README.md | 2 +- pom.xml | 2 +- src/test/java/org/sonar/plugins/stash/CompleteITCase.java | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6f379806..4d115d6e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ After every run, in addition of the diff view, you may access to an overview of - Git client to checkout the code - Maven 3.0.5+ - JDK 1.7 or 1.8 -- SonarQube 4.5.4 (LTS) +- SonarQube 4.5.4 (LTS) or later - Stash (BitBucket) REST API 1.0 (3.x, 4.x) Note: these are the versions where the plugin has been tested. Other versions may or may not work, YMMV. diff --git a/pom.xml b/pom.xml index de22a55a..c3ad6bf3 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.sonar sonar-stash-plugin - 1.2.0-SNAPSHOT + 1.2.0 sonar-plugin Integration between Atlassian Stash (BitBucket) and SonarQube Stash diff --git a/src/test/java/org/sonar/plugins/stash/CompleteITCase.java b/src/test/java/org/sonar/plugins/stash/CompleteITCase.java index 6891d3a2..d8438583 100644 --- a/src/test/java/org/sonar/plugins/stash/CompleteITCase.java +++ b/src/test/java/org/sonar/plugins/stash/CompleteITCase.java @@ -85,8 +85,9 @@ public void basicTest() throws Exception { wireMock.verify(WireMock.getRequestedFor(WireMock.urlPathMatching(".*diff$"))); wireMock.verify(WireMock.postRequestedFor(WireMock.urlPathMatching(".*comments$"))); - wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("Stash/[0-9]+"))); - wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("SonarQube/[0-9]+"))); + // Making sure we find the proper agent info in a string like: User-Agent: SonarQube/4.5.7 Stash/1.2.0 AHC/1.0 + wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("^(.*)Stash/[0-9.]+(.*)$"))); + wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("^(.*)SonarQube/[0-9.]+(.*)$"))); } private String repoPath(String project, String repo, String... parts) {