Skip to content

functional tests: Add pytest testinfra plugin

Veiko Aasa requested to merge vexch/freedombox:functional-testinfra into main

Adds ability to run local commands with functional tests.

By default, commands are run locally. It is possible to set remote host connection parameters from pytest command line, for example: --hosts 'fbx@IP' --ssh-identity-file '.container/ssh/id_ed25519'

For more options, see documentation https://testinfra.readthedocs.io/en/latest/backends.html#ssh.

Includes a fixture host_sudo to run commands as sudo.

Relates to #2451 (comment 530752).

Commit 2:

users: tests: Check LDAP information is correct after renaming user

Tests performed in stable and testing containers:

  • All the users module tests pass.

This MR is build on top of !2532 (closed).

Merge request reports

Loading