8 Commits
Author SHA1 Message Date
macanhhuy d6dddbbc91 chore: remove GCP + GitLab references, migrate to Gitea registry
Build + push image / build-and-push (push) Successful in 1m8s
Replace eu.gcr.io/vnc-development image refs with gitea.saas.vnc.biz/vnciac,
swap gcr-json-key pull secret for gitea-registry, and update CI/deploy docs
from GitLab CI to Gitea Actions.
2026-08-19 17:31:05 +07:00
Stefan-Sanger 51504f8a6f fix: correct pytest paths for tester container
The tester container uses WORKDIR /tests, so 'tests/pytest.ini' resolves
to /tests/tests/pytest.ini which does not exist, causing FileNotFoundError
in CI. Use paths relative to /tests (pytest . -c pytest.ini) for all
in-container invocations: CI job, Makefile target, tester image CMD, and
docs. Host-run scripts are unchanged (they run from repo root).

Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/3>
2026-07-15 17:59:12 +02:00
Stefan-Sanger 5179be85a0 chore: remove unused mod_vnc_fcm_hin and mod_vnc_muc_fcm_hin modules
Neither _hin variant is enabled in the config (the active push modules
are mod_vnc_fcm for 1:1 and mod_vnc_muc_fcm for MUC). Drop the dead
files and update AGENTS.md to reference the active modules.

Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/3>
2026-07-15 17:58:02 +02:00
Stefan-Sanger 5572902aac docs: reconcile AGENTS.md with Prosody 13.0.6 + Lua 5.4 and current tooling
Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/3>
2026-07-15 17:58:02 +02:00
Stefan-Sanger bd336c7b44 fix(tests): disable TLS cert verification by default for integration tests
Prosody containers use self-generated self-signed certs. slixmpp with
use_ssl=True verifies certificates by default, causing
SSLCertVerificationError and pytest ERROR during fixture setup.

- VNCXmppClient: add verify_ssl parameter (default False) that creates
  an ssl.SSLContext with verify_mode=CERT_NONE when disabled
- conftest.py: add --verify-ssl CLI option / VERIFY_SSL env var;
  pass verify_ssl through xmpp_config to both client fixtures
- docs: document --verify-ssl in README.md and AGENTS.md

Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/3>
2026-07-15 17:58:02 +02:00
Stefan-Sanger a0f485d248 test: add HTTP Basic Auth support for REST injection tests
The /rest endpoint is typically protected by a reverse proxy. The
RESTInjector helper now accepts optional auth_user/auth_password and
sends an Authorization: Basic header when configured.

- conftest.py: add --rest-user/--rest-password CLI options and env vars;
  update RESTInjector to include Basic auth headers
- test_01_core.py: refactor TestRestInjection to use the authenticated
  rest_injector fixture instead of raw aiohttp calls
- tests/README.md + AGENTS.md: document REST_USER/REST_PASSWORD

Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/3>
2026-07-15 17:58:02 +02:00
Stefan-Sanger c70383ef97 test: enhance suite to cover AUDIT gaps, add PostgreSQL tests, manual docs
- conftest.py: add second distinct JID support (--xmpp-jid2), REST injector
  helper, MUC join/leave/destroy helpers, PostgreSQL connection fixture
- test_01_core.py: add REST->MAM roundtrip, REST->carbons roundtrip,
  non-roster archive verification (shall_store=true contract)
- test_02_muc.py: add room hidden-by-default test, MUC MAM content
  verification, stanza-id stripping, unregister IQ affiliation removal,
  fix automember to require distinct account (xfail otherwise)
- test_03_vnctalk.py: convert pytest.skip on IqError to pytest.fail,
  add open_host_store smoke test via FCM token IQ, add E2E hints test
- test_05_patches.py: new file covering patch behavioral contracts from
  AUDIT.md: unique IQ bare-JID, hidden lib, large stanza / portmanager,
  self-unavailable routing, offline affiliate broadcast
- test_06_postgres.py: new file with PostgreSQL schema and column checks
  for archive, muc_log, vcard tables
- MANUAL_TESTS.md: new file with step-by-step procedures for contracts
  that require DB inspection, federation, or container internals
- AGENTS.md + tests/README.md: update docs with new env vars, deps,
  and run instructions

Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/3>
2026-07-15 17:58:02 +02:00
Stefan-Sanger 2046867241 docs: add AGENTS.md, patch analysis, and pytest integration suite
- Add AGENTS.md with repo-specific conventions, build steps, and quirks
- Add PATCHES_AND_MODULES.md documenting every upstream deviation
- Add tests/ with pytest/slixmpp integration suite for core, MUC,
  vnctalk extensions, and infrastructure verification
- Include pytest.ini and .gitignore

Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/3>
2026-07-15 17:58:02 +02:00