summaryrefslogtreecommitdiffstats
path: root/src/logicalfile/test/README
blob: 3c5a32e0b768a86f16dd9fdba18cc0357edb430d (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
LogicalFile tests
=================
Basic tests for the LogicalFile provider. In the initial phase, a directory is
created and populated by various types of files (symlink, device file, fifo
file, ...). These are then used to test the provider.

As the LogicalFile provider explicitly implements all of its
associations-related methods, they should all be tested from both sides, meaning
that the respective associations should be called twice with both of their
"arguments".

Dependencies
------------
$ yum install python-pyudev

Usage
-----
The tests must be run on the same machine as the CIMOM!

Set following environment variables:
LMI_CIMOM_URL - URL to the CIMOM, e.g. 'https://localhost:5989'.
LMI_CIMOM_USERNAME - Name of the user on CIMOM the test will use, e.g. 'root'.
LMI_CIMOM_PASSWORD - Password of the user, e.g. 'opensesame'.
LMI_LOGICALFILE_TESTDIR - Testing directory where all the files and testing will
                          take place. This directory must *not* exist on the
                          system and will be delete after the tests are
                          finished. Default is '/var/tmp/logicalfile-tests'.

Running the tests:
    LMI_CIMOM_PASSWORD=opensesame \
    LMI_LOGICALFILE_TESTDIR="/home/user/my-testing-dir" \
    python test/test_basic.py