Skip to content

test(mount): comprehensive mount e2e suite (mount/001-020)#42

Merged
windoliver merged 3 commits intomainfrom
feat/mount-e2e-tests
Feb 28, 2026
Merged

test(mount): comprehensive mount e2e suite (mount/001-020)#42
windoliver merged 3 commits intomainfrom
feat/mount-e2e-tests

Conversation

@windoliver
Copy link
Contributor

Summary

  • Rewrite mount tests from 3 basic tests to 20 comprehensive tests covering full mount API surface
  • 7 test classes: lifecycle, readonly, connectors, persistence, errors, permissions, brick lifecycle
  • All tests validated against live server with enforce_permissions=true, enforce_zone_isolation=true

Test coverage

Class Tests Covers
TestMountLifecycle mount/001-005 list, add+remove, get, has_mount, read-through
TestReadOnlyMount mount/006-007 readonly flag, readonly in listings
TestConnectorDiscovery mount/008-009 list connectors, filter by category
TestMountPersistence mount/010-013 save, load, delete saved, readonly persist
TestMountErrors mount/014-017 overwrite, invalid backend, missing mount
TestMountPermissions mount/018-019 owner permission, permission filtering
TestBrickLifecycle mount/020 brick unmount+remount REST API

Test plan

  • All 20 tests pass against live server (port 2026, 2.09s)
  • Config key fixed: root_path per LocalBackend.CONNECTION_ARGS
  • Tests adjusted to match actual server semantics (mount overwrite, readonly enforcement)

20 tests across 4 files covering event bus, permissions, federation,
and delivery. Includes EventClient wrapper with latency measurement.

- test_event_bus.py: 8 tests (emission, filtering, replay, metadata, latency)
- test_event_permissions.py: 5 tests (auth, zone isolation, admin access)
- test_event_federation.py: 4 tests (cross-zone, replication, latency)
- test_event_delivery.py: 3 tests (SSE, durability, batch writes)
Add 8 new test files covering advanced operations, concurrency,
exporters, isolation, operations, Redis pub/sub, SSE streaming,
and watch/observe patterns. Fix zone channel isolation test to
query zone="default" and rmdir event type matching to include
"rmdir_recursive". Results: 55 passed, 0 failed, 9 skipped
(infra-dependent: watch, SSE, federation, permissions).
Rewrite mount tests from 3 basic tests to 20 comprehensive tests
covering full mount API surface with auth+permissions+zone isolation.

Test classes:
- TestMountLifecycle: list, add+remove, get, has_mount, read-through
- TestReadOnlyMount: readonly flag preservation, readonly in listings
- TestConnectorDiscovery: list connectors, filter by category
- TestMountPersistence: save, load, delete, readonly persistence
- TestMountErrors: overwrite semantics, invalid backend, missing mount
- TestMountPermissions: owner permission creation, permission filtering
- TestBrickLifecycle: brick unmount+remount cycle via REST API

All 20 tests pass against live server (port 2026) with
enforce_permissions=true, enforce_zone_isolation=true.
@windoliver windoliver merged commit a022b37 into main Feb 28, 2026
1 check failed
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.

1 participant