From 5bc1b5773a9c02030fe199fdb6ec1f2505642032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 12 Jun 2026 23:01:28 +0400 Subject: [PATCH] =?UTF-8?q?v2:=20fix=20test=20router=20mount=20/test/api?= =?UTF-8?q?=20=E2=86=92=20/test,=20/chaos=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D1=8C=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=B1=D0=B5=D0=B7=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- v2/server.js | 2 +- v2/src/config/index.js | 2 +- v2/src/test/test.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 632baca..25a35f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.5.87", + "version": "0.5.88", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/server.js b/v2/server.js index 6ca4019..db81d99 100644 --- a/v2/server.js +++ b/v2/server.js @@ -67,7 +67,7 @@ function createV2Router() { // ── /v2/test/api — тестовый эндпоинт для CRUD const { createTestRouter } = require('./src/test'); - router.use('/test/api', createTestRouter()); + router.use('/test', createTestRouter()); // ── GET /v2/logout ─────────────────────────────────────────────────────── diff --git a/v2/src/config/index.js b/v2/src/config/index.js index fcedce1..b018eb6 100644 --- a/v2/src/config/index.js +++ b/v2/src/config/index.js @@ -6,7 +6,7 @@ // ═══════════════════════════════════════════════════════════════════════════════ module.exports = { - version: '0.5.87', + version: '0.5.88', iamUrl: process.env.V2_IAM_API_URL || 'https://auth-api.ngcloud.ru', appUrl: process.env.V2_APP_URL || 'https://whitelist.nodejsk8s.services.ngcloud.ru', }; diff --git a/v2/src/test/test.sh b/v2/src/test/test.sh index 99310e6..b2b4cc6 100644 --- a/v2/src/test/test.sh +++ b/v2/src/test/test.sh @@ -3,7 +3,7 @@ # ПОЛНЫЕ тесты CRUD — ТЗ, нагрузка, БД, имперсонация # ═══════════════════════════════════════════════════════════════════════════════ -BASE="${1:-http://localhost:3000}/v2/test/api" +BASE="${1:-http://localhost:3000}/v2/test" P=0 F=0 TOTAL=0 t() { ((TOTAL++)); local n="$1"; shift; if "$@"; then echo "✅ $n"; ((P++)); else echo "❌ $n"; ((F++)); fi; }