Conversation
Agent-Logs-Url: https://github.com/djeborn/snipe-it-ps/sessions/7dd3228a-dfd5-4211-962d-fa3fb619b641 Co-authored-by: djeborn <116414068+djeborn@users.noreply.github.com>
|
@copilot - Can you go fix the errors there? |
…check Agent-Logs-Url: https://github.com/djeborn/snipe-it-ps/sessions/082839c2-eb61-4a21-b407-bebd827897a5 Co-authored-by: djeborn <116414068+djeborn@users.noreply.github.com>
Fixed in commit
|
|
@copilot - Fix the integration test error. |
…icit migration step Agent-Logs-Url: https://github.com/djeborn/snipe-it-ps/sessions/a4af0c6d-e434-4dd0-bcbc-ceb039f4044b Co-authored-by: djeborn <116414068+djeborn@users.noreply.github.com>
Fixed in commit
|
Tests/Integration/docker-compose.yml— Snipe-IT + MySQL stack for testingTests/Integration/setup.php— PHP bootstrap script to create admin user with API tokenTests/Integration/Start-TestEnvironment.ps1— start Docker, wait for health, provision admin, return{Url, Token}Tests/Integration/Stop-TestEnvironment.ps1— tear-down Docker stack with--volumes --remove-orphansTests/Integration/SnipeIT.Integration.Tests.ps1— 52-test Pester file covering CRUD + checkout/checkin.github/workflows/integration.yml— GitHub Actions workflow for integration tests./Teststo./Tests/Unit; improved docker-compose.yml snipeit healthcheck to check API returns 401docker-compose.yml: changed MySQL healthcheck from-h localhost(Unix socket) to-h 127.0.0.1 -P 3306(TCP) — ensures MySQL is accepting TCP connections (not just socket) before Snipe-IT starts, preventingConnection refusedduring migrationsintegration.yml: replaced docker-health-status poll with a direct HTTP poll for Apache (http://localhost:8000/), followed by an explicitphp artisan migrate --forcestep (idempotent — fixes startup if migration failed), then a second poll for the API returning 401