btcpayserver-plugin-builder/PluginBuilder.Tests
r1ckstardev 717f55d2a6 BTCMaps v2: enforce https on BtcMap import endpoint before bearer auth
Per CodeRabbit review on PR #226. A misconfigured
BTCMAPS:BtcMapImportEndpoint over http:// would silently leak the
scoped token to anyone on the network path between plugin-builder
and btcmap. Parse the configured value as an absolute https URI
before building the request, throwing InvalidOperationException
with the offending value if the parse / scheme check fails. The
exception fires before SendAsync, so the token never reaches a
HttpRequestMessage header.

Adds 3 tests: http-rejected, non-absolute-rejected, token-missing
maps to BtcMapTokenMissingException (controller-ladder regression
guard). 40/40 BtcMapsServiceTests passing.
2026-05-25 15:06:27 +00:00
..
AdminTests harden error-response coverage and dedupe Playwright test helpers 2026-03-30 10:32:18 +05:30
ApiTests test: assert api build validation does not create build 2026-05-04 17:22:31 -03:00
AuthTests chore: remove redundant explicit usings (issue #182) 2026-03-27 13:26:33 +05:30
FilterTests Align antiforgery error details flow with BTCPay UI handling (#196) (#197) 2026-05-08 18:40:12 -03:00
PluginTests revert changes 2026-05-14 11:21:20 +01:00
PublicTests Align antiforgery error details flow with BTCPay UI handling (#196) (#197) 2026-05-08 18:40:12 -03:00
TestData chore: remove redundant explicit usings (issue #182) 2026-03-27 13:26:33 +05:30
BasicAuthHttpClientExtensions.cs chore: remove redundant explicit usings (issue #182) 2026-03-27 13:26:33 +05:30
BtcMapsServiceTests.cs BTCMaps v2: enforce https on BtcMap import endpoint before bearer auth 2026-05-25 15:06:27 +00:00
BTCPayCompatibilityTests.cs fix(api): accept RC BTCPay host versions in compatibility filters 2026-04-02 08:21:59 -03:00
BTCPayHostVersionParserTests.cs fix(api): accept RC BTCPay host versions in compatibility filters 2026-04-02 08:21:59 -03:00
CollectionDefinitions.cs test: prevent Playwright DB conflicts by running tests in shared non-parallelized collection 2025-07-20 22:49:51 -03:00
DatabaseMigrationTests.cs test: add migration coverage for legacy plugin review schema 2026-03-27 00:22:53 -03:00
docker-compose.yml Updating editorconfig and cleaning up solution 2026-01-15 23:47:43 -06:00
GitHostingProviderTests.cs chore: resolve GitLab commit authors via Users API 2026-04-21 16:04:05 +01:00
HttpClientExtensions.cs chore: remove redundant explicit usings (issue #182) 2026-03-27 13:26:33 +05:30
PlaywrightTester.cs use UI error DOM marker, fail fast on admin role setup 2026-03-30 22:27:54 +05:30
PluginBuilder.Tests.csproj chore: remove redundant explicit usings (issue #182) 2026-03-27 13:26:33 +05:30
ScriptMigrationTester.cs test: add migration coverage for legacy plugin review schema 2026-03-27 00:22:53 -03:00
ServerTester.cs Handle local loopback plugin downloads 2026-04-26 12:45:37 -03:00
UnitTest1.cs Handle local loopback plugin downloads 2026-04-26 12:45:37 -03:00
UnitTestBase.cs Merge pull request #183 from btcpayserver/fix/review-userid-cleanup 2026-03-28 22:15:33 +01:00
XUnitLogger.cs chore: remove redundant explicit usings (issue #182) 2026-03-27 13:26:33 +05:30