From acb244932725f48e4972b77cdb16784cf2ee86f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 23:53:05 +0000 Subject: [PATCH 1/2] Bump WireMock.Net from 2.7.0 to 2.8.0 --- updated-dependencies: - dependency-name: WireMock.Net dependency-version: 2.8.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .../IntegrationTests/TeamCitySharp.IntegrationTests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/IntegrationTests/TeamCitySharp.IntegrationTests.csproj b/src/Tests/IntegrationTests/TeamCitySharp.IntegrationTests.csproj index 25c89bf..99a187e 100644 --- a/src/Tests/IntegrationTests/TeamCitySharp.IntegrationTests.csproj +++ b/src/Tests/IntegrationTests/TeamCitySharp.IntegrationTests.csproj @@ -48,7 +48,7 @@ - + From 31eb557bd659c4696c90f80ff14bd991dc854f84 Mon Sep 17 00:00:00 2001 From: Matt Richardson Date: Thu, 11 Jun 2026 15:56:29 +1000 Subject: [PATCH 2/2] Fix vcs-roots POST stubs for WireMock.Net 2.8.0 WireMock.Net 2.8.0 changed JsonMatcher's handling of date-valued strings, so the `"lastChecked": "0001-01-01T00:00:00"` field in the two POST /vcs-roots stub patterns no longer matched the (byte-identical) serialized request body. WireMock then returned 404 "No matching mapping found", failing it_create_new_vsc and it_throws_exception_create_new_vsc_forbidden. Switch the body matchers to JsonPartialMatcher and drop the volatile lastChecked field. The remaining fields still pin the request; partial matching tolerates the extra serialized field and avoids parsing a date in the pattern. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../proxy_mapping_POST_httpAuth_app_rest_vcs-roots.json | 3 +-- ...apping_POST_httpAuth_app_rest_vcs-roots_non_admin_user.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Tests/IntegrationTests/wiremock/__admin/mappings/proxy_mapping_POST_httpAuth_app_rest_vcs-roots.json b/src/Tests/IntegrationTests/wiremock/__admin/mappings/proxy_mapping_POST_httpAuth_app_rest_vcs-roots.json index 46d9abb..be1e714 100644 --- a/src/Tests/IntegrationTests/wiremock/__admin/mappings/proxy_mapping_POST_httpAuth_app_rest_vcs-roots.json +++ b/src/Tests/IntegrationTests/wiremock/__admin/mappings/proxy_mapping_POST_httpAuth_app_rest_vcs-roots.json @@ -66,7 +66,7 @@ ], "Body": { "Matcher": { - "Name": "JsonMatcher", + "Name": "JsonPartialMatcher", "Pattern": { "id": "TestingTeamCitySharp_vcsroot1_01", "vcs-root-id": null, @@ -75,7 +75,6 @@ "name": "Testing TeamCitySharp_vcsroot1", "version": null, "status": null, - "lastChecked": "0001-01-01T00:00:00", "lastVersion": null, "project": { "archived": false, diff --git a/src/Tests/IntegrationTests/wiremock/__admin/mappings/proxy_mapping_POST_httpAuth_app_rest_vcs-roots_non_admin_user.json b/src/Tests/IntegrationTests/wiremock/__admin/mappings/proxy_mapping_POST_httpAuth_app_rest_vcs-roots_non_admin_user.json index 1dc1e1d..4850169 100644 --- a/src/Tests/IntegrationTests/wiremock/__admin/mappings/proxy_mapping_POST_httpAuth_app_rest_vcs-roots_non_admin_user.json +++ b/src/Tests/IntegrationTests/wiremock/__admin/mappings/proxy_mapping_POST_httpAuth_app_rest_vcs-roots_non_admin_user.json @@ -66,7 +66,7 @@ ], "Body": { "Matcher": { - "Name": "JsonMatcher", + "Name": "JsonPartialMatcher", "Pattern": { "id": "TestingTeamCitySharp_vcsroot1_01", "vcs-root-id": null, @@ -75,7 +75,6 @@ "name": "Testing TeamCitySharp_vcsroot1", "version": null, "status": null, - "lastChecked": "0001-01-01T00:00:00", "lastVersion": null, "project": { "archived": false,