From 2f1bdec67692303756b66b39b0e3e9e1f57c22b2 Mon Sep 17 00:00:00 2001 From: Valery Petrov Date: Thu, 4 Jun 2026 13:22:23 +0300 Subject: [PATCH] issues/27: autotesting deploy verification section --- infrastructure/autotesting.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/infrastructure/autotesting.md b/infrastructure/autotesting.md index 72b370f..4005827 100644 --- a/infrastructure/autotesting.md +++ b/infrastructure/autotesting.md @@ -69,6 +69,20 @@ flowchart LR 1. **Pre-deploy** — в workflow каждого приложения (`build.yml`). 2. **Post-deploy** — репозиторий `sova-e2e`, ожидание Argo CD (`scripts/wait-for-argocd.sh`), отчёт Playwright HTML в artifacts. +## Проверка деплоя на test (локальная ферма) + +После `./scripts/release-tag.sh backend backend-v1.0.6-test test` (и аналоги для adminpanel, cabinet, docs): + +| Проверка | Команда / URL | +|----------|----------------| +| Образы в кластере | `kubectl get deploy -n sova-test` → теги `*-v1.0.x-test` | +| API smoke | `curl -H "Host: api.test.sova.local" http://192.168.252.6/news/list` | +| admin login | `curl -H "Host: admin.test.sova.local" http://192.168.252.6/login` | +| Docs | `curl -H "Host: docs.sova.local" http://192.168.252.6/` (или `docs.test.sova.local` после sync ingress) | +| Playwright | `cd sova-e2e && npm run test:smoke` | + +Gitea Actions: артефакты `backend-coverage-*`, `adminpanel-coverage-*` (14 дней). + ## Покрытие (test contour) При теге `backend-v1.0.x-test` / `adminpanel-v1.0.x-test` в Gitea Actions → **Artifacts**: