test(rbac): user2 expected role expired after brusnika trial cutoff #2473
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2473
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/rbac-test-user2-expired"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Что
Follow-up к #2472 (user2 «Брусника» pilot→expired в
auth/roles.yaml).test_get_role_known_usersпроверялuser1..user10 == "pilot"циклом. user2 теперьexpired→ тест падал:AssertionError: assert 'expired' == 'pilot'.Почему прошло мимо CI на #2472
На #2472 менялся только
auth/roles.yaml(корень репо). Paths-filterci-tradein.yml/ci.ymlматчитtradein-mvp/**/backend/**— тесты были skipped, PR показал зелёный. Провал всплыл уже на полномdeploy-tradein(set-allгонит весь suite). Классический false-green от paths-filter.Фикс
В обоих зеркалах (
tradein-mvp/backend/tests/test_rbac.py+backend/tests/test_rbac.py) цикл ожидаетexpiredдляn==2,pilotдля остальных. Локальноtest_get_role_known_users— passed.После мержа этого PR paths-filter матчит
backend/**иtradein-mvp/**→ тесты реально прогонятся, деплой пройдёт и подхватитuser2=expiredв рантайме.