-
Notifications
You must be signed in to change notification settings - Fork 1
Development
Like Samba, Sambal enforces a strict linear history. Pull requests must be rebased on master before they can be merged.
At the moment tests don't run in CI yet because the setup is quite involved, at least until some of these changes make it into a Samba release. It requires compiling Samba from master, but it also requires a server to run against, either Windows Server 2022 in a VM or Samba itself.
Linting still happens in CI (via Ruff), but for the time being running the test suite will have to be done on the developers workstation. That doesn't mean we don't write tests, just that "eventually" these will run in CI.
The test suite can be run against Samba itself or Windows Server 2022 VM. Some additional environment variables are required so that it can login as the Administrator user or a user with enough priviledges. Please don't use an actual important server for this.
-
SAMBAL_TEST_HOST
- hostname can start with ldap:// or without -
SAMBAL_TEST_USERNAME
- admin user -
SAMBAL_TEST_PASSWORD
- admin password -
SAMBAL_TEST_REALM
- realm
Then just run pytest
and it should work if everything is configured correctly.
As time progresses, these model changes will make it into Samba releases and hopefully it will make setup a bit easier going forward.