Restore complete (0.6s) VsaTemplate.Tests succeeded (0.1s) → VsaTemplate.Tests\bin\Debug\net8.0\VsaTemplate.Tests.dll A total of 1 test files matched the specified pattern. [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.1+ce9211e970 (64-bit .NET 8.0.12) [xUnit.net 00:00:00.06] Discovering: VsaTemplate.Tests [xUnit.net 00:00:00.10] Discovered: VsaTemplate.Tests [xUnit.net 00:00:00.10] Starting: VsaTemplate.Tests [xUnit.net 00:00:00.22] VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound [FAIL] [xUnit.net 00:00:00.22] VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound [FAIL] [xUnit.net 00:00:00.22] System.Exception : GET /api/noendpoint Expected: 404 Actual: 429 [xUnit.net 00:00:00.22] Stack Trace: [xUnit.net 00:00:00.22] C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs(232,0): at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound() [xUnit.net 00:00:00.22] --- End of stack trace from previous location --- [xUnit.net 00:00:00.22] Output: [xUnit.net 00:00:00.22] ═══════════════════════════════════════════════════════════════════════════════ [xUnit.net 00:00:00.22] TEST: TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound [xUnit.net 00:00:00.22] GOAL: Non-existent endpoint should return 404 Not Found [xUnit.net 00:00:00.22] ═══════════════════════════════════════════════════════════════════════════════ [xUnit.net 00:00:00.22] ▸ ACTION: GET /api/noendpoint [xUnit.net 00:00:00.22] [xUnit.net 00:00:00.22] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:00.22] GET /api/noendpoint → 429 TooManyRequests [xUnit.net 00:00:00.22] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:00.22] {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:27.1126499Z","requestId":"0HNGE9632Q8IQ:00000001"} [xUnit.net 00:00:00.22] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:00.22] ▸ ASSERTIONS: [xUnit.net 00:00:01.18] VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound [FAIL] [xUnit.net 00:00:01.18] VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound [FAIL] [xUnit.net 00:00:01.18] System.Exception : GET /api/test/protected Expected: 401 Actual: 429 [xUnit.net 00:00:01.18] Stack Trace: [xUnit.net 00:00:01.18] C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs(56,0): at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound() [xUnit.net 00:00:01.18] --- End of stack trace from previous location --- [xUnit.net 00:00:01.18] Output: [xUnit.net 00:00:01.18] ═══════════════════════════════════════════════════════════════════════════════ [xUnit.net 00:00:01.18] TEST: TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound [xUnit.net 00:00:01.18] GOAL: Protected endpoint without auth should return 401 Unauthorized [xUnit.net 00:00:01.18] ═══════════════════════════════════════════════════════════════════════════════ [xUnit.net 00:00:01.18] ▸ ACTION: GET /api/test/protected (no authentication) [xUnit.net 00:00:01.18] [xUnit.net 00:00:01.18] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:01.18] GET /api/test/protected → 429 TooManyRequests [xUnit.net 00:00:01.18] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:01.18] {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:28.0908359Z","requestId":"0HNGE9632Q8IR:00000001"} [xUnit.net 00:00:01.18] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:01.18] ▸ ASSERTIONS: Failed VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound [71 ms] Error Message: System.Exception : GET /api/noendpoint Expected: 404 Actual: 429 Stack Trace: at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound() in C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs:line 232 --- End of stack trace from previous location --- Standard Output Messages: ═══════════════════════════════════════════════════════════════════════════════ TEST: TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound GOAL: Non-existent endpoint should return 404 Not Found ═══════════════════════════════════════════════════════════════════════════════ ▸ ACTION: GET /api/noendpoint ─────────────────────────────────────────────────────────────────────────────── GET /api/noendpoint → 429 TooManyRequests ─────────────────────────────────────────────────────────────────────────────── {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:27.1126499Z","requestId":"0HNGE9632Q8IQ:00000001"} ─────────────────────────────────────────────────────────────────────────────── ▸ ASSERTIONS: Failed VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound [956 ms] Error Message: System.Exception : GET /api/test/protected Expected: 401 Actual: 429 Stack Trace: at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound() in C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs:line 56 --- End of stack trace from previous location --- Standard Output Messages: ═══════════════════════════════════════════════════════════════════════════════ TEST: TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound GOAL: Protected endpoint without auth should return 401 Unauthorized ═══════════════════════════════════════════════════════════════════════════════ ▸ ACTION: GET /api/test/protected (no authentication) ─────────────────────────────────────────────────────────────────────────────── GET /api/test/protected → 429 TooManyRequests ─────────────────────────────────────────────────────────────────────────────── {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:28.0908359Z","requestId":"0HNGE9632Q8IR:00000001"} ─────────────────────────────────────────────────────────────────────────────── ▸ ASSERTIONS: [xUnit.net 00:00:02.17] VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound [FAIL] [xUnit.net 00:00:02.17] VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound [FAIL] [xUnit.net 00:00:02.17] System.Exception : GET /api/test/undecorated Expected: 403 Actual: 429 [xUnit.net 00:00:02.17] Stack Trace: [xUnit.net 00:00:02.17] C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs(177,0): at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound() [xUnit.net 00:00:02.17] --- End of stack trace from previous location --- [xUnit.net 00:00:02.17] Output: [xUnit.net 00:00:02.17] ═══════════════════════════════════════════════════════════════════════════════ [xUnit.net 00:00:02.17] TEST: TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound [xUnit.net 00:00:02.17] GOAL: Undecorated endpoint should return 403 Forbidden [xUnit.net 00:00:02.17] ═══════════════════════════════════════════════════════════════════════════════ [xUnit.net 00:00:02.17] ▸ ACTION: GET /api/test/undecorated [xUnit.net 00:00:02.17] [xUnit.net 00:00:02.17] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:02.17] GET /api/test/undecorated → 429 TooManyRequests [xUnit.net 00:00:02.17] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:02.17] {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:29.089083Z","requestId":"0HNGE9632Q8IS:00000001"} [xUnit.net 00:00:02.17] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:02.17] ▸ ASSERTIONS: Failed VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound [997 ms] Error Message: System.Exception : GET /api/test/undecorated Expected: 403 Actual: 429 Stack Trace: at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound() in C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs:line 177 --- End of stack trace from previous location --- Standard Output Messages: ═══════════════════════════════════════════════════════════════════════════════ TEST: TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound GOAL: Undecorated endpoint should return 403 Forbidden ═══════════════════════════════════════════════════════════════════════════════ ▸ ACTION: GET /api/test/undecorated ─────────────────────────────────────────────────────────────────────────────── GET /api/test/undecorated → 429 TooManyRequests ─────────────────────────────────────────────────────────────────────────────── {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:29.089083Z","requestId":"0HNGE9632Q8IS:00000001"} ─────────────────────────────────────────────────────────────────────────────── ▸ ASSERTIONS: [xUnit.net 00:00:03.17] VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound [FAIL] [xUnit.net 00:00:03.17] VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound [FAIL] [xUnit.net 00:00:03.17] System.Exception : GET /api/test/error Expected: 500 Actual: 429 [xUnit.net 00:00:03.17] Stack Trace: [xUnit.net 00:00:03.17] C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs(114,0): at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound() [xUnit.net 00:00:03.17] --- End of stack trace from previous location --- [xUnit.net 00:00:03.17] Output: [xUnit.net 00:00:03.17] ═══════════════════════════════════════════════════════════════════════════════ [xUnit.net 00:00:03.17] TEST: TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound [xUnit.net 00:00:03.17] GOAL: Error endpoint should return 500 with error details [xUnit.net 00:00:03.17] ═══════════════════════════════════════════════════════════════════════════════ [xUnit.net 00:00:03.17] ▸ ACTION: GET /api/test/error [xUnit.net 00:00:03.17] [xUnit.net 00:00:03.17] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:03.17] GET /api/test/error → 429 TooManyRequests [xUnit.net 00:00:03.17] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:03.17] {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:30.0880534Z","requestId":"0HNGE9632Q8IT:00000001"} [xUnit.net 00:00:03.17] ─────────────────────────────────────────────────────────────────────────────── [xUnit.net 00:00:03.17] ▸ ASSERTIONS: [xUnit.net 00:00:03.18] Finished: VsaTemplate.Tests Failed VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound [997 ms] Error Message: System.Exception : GET /api/test/error Expected: 500 Actual: 429 Stack Trace: at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound() in C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs:line 114 --- End of stack trace from previous location --- Standard Output Messages: ═══════════════════════════════════════════════════════════════════════════════ TEST: TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound GOAL: Error endpoint should return 500 with error details ═══════════════════════════════════════════════════════════════════════════════ ▸ ACTION: GET /api/test/error ─────────────────────────────────────────────────────────────────────────────── GET /api/test/error → 429 TooManyRequests ─────────────────────────────────────────────────────────────────────────────── {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:30.0880534Z","requestId":"0HNGE9632Q8IT:00000001"} ─────────────────────────────────────────────────────────────────────────────── ▸ ASSERTIONS: Failed! - Failed: 4, Passed: 0, Skipped: 0, Total: 4, Duration: 3 s - VsaTemplate.Tests.dll (net8.0) VsaTemplate.Tests test failed with 4 error(s) (3.8s) C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs(232): error TESTERROR: VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound (71ms): Error Message: System.Exception : GET /api/noendpoint Expected: 404 Actual: 429 Stack Trace: at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound() in C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tes ts\InfrastructureTests\TestEndpointTests.cs:line 232 --- End of stack trace from previous location --- Standard Output Messages: ═══════════════════════════════════════════════════════════════════════════════ TEST: TestEndpointTests.BasicTestNoEndpoint_ReturnsNotFound GOAL: Non-existent endpoint should return 404 Not Found ═══════════════════════════════════════════════════════════════════════════════ ▸ ACTION: GET /api/noendpoint ─────────────────────────────────────────────────────────────────────────────── GET /api/noendpoint → 429 TooManyRequests ─────────────────────────────────────────────────────────────────────────────── {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:27.1126499Z","requestId":"0HNGE9 632Q8IQ:00000001"} ─────────────────────────────────────────────────────────────────────────────── ▸ ASSERTIONS: C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs(56): error TESTERROR: VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound (956ms): Error Message: System.Exception : GET /api/test/protected Expected: 401 Actual: 429 Stack Trace: at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound() in C:\Users\trist\OneDrive\vsa templat e\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs:line 56 --- End of stack trace from previous location --- Standard Output Messages: ═══════════════════════════════════════════════════════════════════════════════ TEST: TestEndpointTests.BasicTestProtected_WithoutAuth_ReturnsUnauthorizedOrNotFound GOAL: Protected endpoint without auth should return 401 Unauthorized ═══════════════════════════════════════════════════════════════════════════════ ▸ ACTION: GET /api/test/protected (no authentication) ─────────────────────────────────────────────────────────────────────────────── GET /api/test/protected → 429 TooManyRequests ─────────────────────────────────────────────────────────────────────────────── {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:28.0908359Z","requestId":"0HNGE9 632Q8IR:00000001"} ─────────────────────────────────────────────────────────────────────────────── ▸ ASSERTIONS: C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs(177): error TESTERROR: VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound (997ms): Error Message: System.Exception : GET /api/test/un decorated Expected: 403 Actual: 429 Stack Trace: at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound() in C:\Users\trist\OneDrive\vsa template\backend\Vsa Template.Tests\InfrastructureTests\TestEndpointTests.cs:line 177 --- End of stack trace from previous location --- Standard Output Messages: ═══════════════════════════════════════════════════════════════════════════════ TEST: TestEndpointTests.BasicTestUndecorated_ReturnsForbiddenOrNotFound GOAL: Undecorated endpoint should return 403 Forbidden ═══════════════════════════════════════════════════════════════════════════════ ▸ ACTION: GET /api/test/undecorated ─────────────────────────────────────────────────────────────────────────────── GET /api/test/undecorated → 429 TooManyRequests ─────────────────────────────────────────────────────────────────────────────── {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:29.089083Z","requestId":"0HNGE96 32Q8IS:00000001"} ─────────────────────────────────────────────────────────────────────────────── ▸ ASSERTIONS: C:\Users\trist\OneDrive\vsa template\backend\VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs(114): error TESTERROR: VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound (997ms): Error Message: System.Exception : GET /api/tes t/error Expected: 500 Actual: 429 Stack Trace: at VsaTemplate.Tests.InfrastructureTests.TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound() in C:\Users\trist\OneDrive\vsa template\backend \VsaTemplate.Tests\InfrastructureTests\TestEndpointTests.cs:line 114 --- End of stack trace from previous location --- Standard Output Messages: ═══════════════════════════════════════════════════════════════════════════════ TEST: TestEndpointTests.BasicTestError_ReturnsInternalServerErrorOrNotFound GOAL: Error endpoint should return 500 with error details ═══════════════════════════════════════════════════════════════════════════════ ▸ ACTION: GET /api/test/error ─────────────────────────────────────────────────────────────────────────────── GET /api/test/error → 429 TooManyRequests ─────────────────────────────────────────────────────────────────────────────── {"success":false,"message":"Rate limit exceeded. Please try again later.","data":null,"errors":null,"timestamp":"2025-10-18T13:38:30.0880534Z","requestId":"0HNGE9 632Q8IT:00000001"} ─────────────────────────────────────────────────────────────────────────────── ▸ ASSERTIONS: Test summary: total: 4, failed: 4, succeeded: 0, skipped: 0, duration: 3.8s Build failed with 4 error(s) in 4.7s Workload updates are available. Run `dotnet workload list` for more information.