Skip to content

test(api): update stale expectations in test_18c, test_22, test_47 (#1251) - #1294

Merged
jorikfon merged 1 commit into
developfrom
1251-tests-api-stale-expectations
Oct 23, 2026
Merged

jorikfon merged 1 commit into
developfrom
1251-tests-api-stale-expectations

Conversation

@jorikfon

Copy link
Copy Markdown
Collaborator

Closes #1251

  • test_18c test_05: the core logs Duplicate SIP provider pjsip section "<uniqid>" … kept m_Sip.id=… (SIPConf::shouldSkipDuplicateSection); the needle was the old uniqid "…" text.
  • test_22 test_01, test_04: 422 messages are translated, so the tests now read the body (allow_404=True) and check result=false plus the substituted tokens (30, s3_endpoint). They also fail now if validation goes missing (before they only printed a warning).
  • test_47 test_03: the release server returns no firmware from checkNewFirmware for TYPE=docker (Docker updates by image; the update page shows Update/docker.volt), while ifNewReleaseAvailable reports the new version. Lxc/bare/vm get consistent answers. In Docker the test now asserts an empty firmware list instead of consistency; a degraded detailed check (checkSucceeded=false) is reported, not failed.

Verification: local mikopbx-php83 (2026.1.223, Docker): the three files pass 36/36; the unmodified files fail exactly these 4 tests on the same stand.


Устаревшие ожидания в трёх тестах REST: новый текст лога дедупликации SIP, переводимые сообщения 422 у S3, отсутствие прошивок для Docker на сервере релизов (намеренно). Проверено на локальном Docker: 36/36, старые версии падают ровно в 4 тестах.

…1251)

- test_18c: match the current 'Duplicate SIP provider pjsip section' log line.
- test_22: read the 422 body and check substituted tokens instead of English words; fail when validation is missing.
- test_47: in Docker the release server returns no firmware by design, so skip the quick-vs-detailed check there and when the detailed check is degraded.
@jorikfon
jorikfon merged commit aa4db9b into develop Oct 23, 2026
2 checks passed
@jorikfon
jorikfon deleted the 1251-tests-api-stale-expectations branch October 23, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests/api: устаревшие ожидания в test_18c, test_22, test_47

1 participant