ci: дымовой тест на push и полный release gate
This commit is contained in:
@@ -102,6 +102,7 @@ log "Применяю миграции ветки..."
|
||||
cat services/identity-service/src/main/resources/db/migration/V8__membership_history.sql
|
||||
cat services/identity-service/src/main/resources/db/migration/V9__account_statuses.sql
|
||||
cat services/identity-service/src/main/resources/db/migration/V10__audit_events.sql
|
||||
cat services/identity-service/src/main/resources/db/migration/V11__refresh_tokens.sql
|
||||
echo 'SET search_path TO academic;'
|
||||
cat services/academic-service/src/main/resources/db/migration/V6__courses.sql
|
||||
cat services/academic-service/src/main/resources/db/migration/V7__labs_course.sql
|
||||
@@ -119,6 +120,8 @@ CHECK_SQL=$(cat <<'SQL'
|
||||
SET search_path TO identity;
|
||||
SELECT 'audit_events=' || count(*) FROM information_schema.tables
|
||||
WHERE table_schema='identity' AND table_name='audit_events';
|
||||
SELECT 'refresh_tokens=' || count(*) FROM information_schema.tables
|
||||
WHERE table_schema='identity' AND table_name='refresh_tokens';
|
||||
SELECT 'students=' || count(*) FROM students;
|
||||
SELECT 'groups=' || count(*) FROM groups;
|
||||
SELECT 'history=' || count(*) FROM membership_history;
|
||||
@@ -159,6 +162,7 @@ import sys
|
||||
out, result, v13 = sys.argv[1], sys.argv[2], sys.argv[3]
|
||||
required = {
|
||||
"audit_events=1",
|
||||
"refresh_tokens=1",
|
||||
"students=1",
|
||||
"groups=1",
|
||||
"history=1",
|
||||
|
||||
Reference in New Issue
Block a user