chore: cleanup old plan docs, add evidence/references dirs
NexusGuard CI / server-core-test (push) Failing after 48s
NexusGuard CI / device-agent-test (push) Failing after 35s
NexusGuard CI / dashboard-ui-build (push) Failing after 39s

This commit is contained in:
datadunia
2026-05-25 05:05:03 +07:00
parent 8818d715c5
commit deed74cd9b
14 changed files with 279 additions and 3822 deletions
+5 -5
View File
@@ -39,7 +39,7 @@ Make Docker build succeed with Swagger docs generated during build process.
### Must Have
- [x] `apps/server-core/Dockerfile` runs `swag init` before `go build`
- [x] `swag init` uses pinned CLI version matching `go.mod` (`v1.16.6`) ✅
- [ ] `docker compose build server-core` passes (requires Docker host)
- [x] `docker compose build server-core` passes (verified on remote Docker host)
### Must NOT Have
- Do NOT remove swagger files from `.gitignore`
@@ -90,8 +90,8 @@ Single task, no waves needed.
- `apps/server-core/main.go:17` — Import of `_ "docs"` package
**Acceptance Criteria**:
- [ ] `docker build -f apps/server-core/Dockerfile -t test-fix apps/server-core` succeeds (exit 0)
- [ ] Swagger route `/swagger/index.html` works when container runs
- [x] `docker build -f apps/server-core/Dockerfile -t nexusguard-server-core apps/server-core` succeeds (exit 0)
- [x] Swagger route `/swagger/index.html` works when container runs (HTTP 200) ✅
**QA Scenarios**:
@@ -122,8 +122,8 @@ Single task, no waves needed.
## Final Verification
- [x] F1. **Verify Dockerfile** ✅ — `swag init` present on line 7 with correct version `v1.16.6`
- [ ] F2. **Verify Docker Build** — Requires Docker host (runs `swag init` then `go build`)
- [ ] F3. **Verify Swagger** — Requires running container
- [x] F2. **Verify Docker Build** ✅ — `docker build` exit 0, `swag init` generated `docs.go`, `swagger.json`, `swagger.yaml` during build
- [x] F3. **Verify Swagger** ✅ — Container running on port 8080, `curl /swagger/index.html` → HTTP 200, valid Swagger HTML + JSON API spec returned
---