-
Notifications
You must be signed in to change notification settings - Fork 53
/
README.testing
54 lines (30 loc) · 1.19 KB
/
README.testing
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
50
51
52
53
54
# How to set up a testing environment
## Running openwsman server
Testing needs a running `openwsmand` service which can connect
to a CIM broker.
This can be achieved by running `make install` followed by
`sudo openwsman -d` or by
```
LD_LIBRARY_PATH=src/lib:src/authenticators/file ./src/server/openwsmand -d -c ../etc/openwsman_test.conf -a `pwd`/src/authenticators/file -b `pwd`/../etc/test_simple_auth.passwd -P `pwd`/src/plugins/cim
```
from the `build` directory.
## Running a CIM server
sfcb (small footprint cim broker) is used as the CIM broker. It should
have the 'cmpi-base' CIM provider available.
## Authentication
It is assumed that a 'wsman' user exists with password 'secret'.
This user should be in the 'sfcb' group.
## Testing under (open)SUSE
zypper in sblim-sfcb
zypper in sblim-cmpi-base
Start sblim-sfcb
> sudo sfcbd
## Running tests
> cd build
> export LD_LIBRARY_PATH=`pwd`/src/lib
> make test
Note: When running openwsmand from the local build directory as
outlined above, this will fail all `identify` tests since the
respective plugin isn't loaded.
You can change the last parameter (`-P`) to end with `/identify`
(instead of `/cim`) to just make the identity tests pass.