blob: 3f4a8fa912cb3c92cca078379112e790ce9c8835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Instructions on executing tests
Multihost tests uses the `python-multihost` framework to execute test commands
on remote machines. The tests themselves are run locally via pytest.
## Install requirements
```
sudo pip3 install -r src/tests/multihost/requirements.txt
```
You can also install them in virtual environment using the virtualenv command
if you wish.
## Prepare remote machines
Existing tests currently requires only one remote machine where the SSSD version
that you want to test is installed. The machine must be Fedora or RHEL so it can
be correctly provisioned. The **tests will modify the machine** so use something
disposable.
It is recommended to use [sssd-test-suite] project to create such machine. The
multihost tests can run out of the box using [sssd-test-suite] without any
further changes.
[sssd-test-suite]: https://github.com/SSSD/sssd-test-suite
## Prepare multihost configuration
Edit `src/tests/multihost/basic/mhc.yaml`:
```yaml
root_password: 'vagrant' # use remote machine root password
domains:
- name: tier0.tests
type: sssd
hosts:
- name: client
external_hostname: master.client.vm # your machine fully qualified name
role: master
```
Note: You can skip this step if you use machines from sssd-test-suite.
## Run the tests
```
pytest-3 -s --multihost-config=src/tests/multihost/basic/mhc.yaml src/tests/multihost/basic
```
|