1
0
Fork 0
Commit graph

39 commits

Author SHA1 Message Date
Tomas Korbar
3722b15192 Add range feature for cpu exclusion
- It is now possible to exclude cpu range by !1-3
- Also edited test for cpulist_unpack method to test this new
feature
- Resolves rhbz#1533908
2018-11-21 15:23:11 +01:00
Tomas Korbar
38ebdbeda2 Fix deprecation warnings when python 3 is used
- we should use pyudev.Device class property 'properties'
for accesing device properties
- but we still need to keep try catch workaround
because of old pyudev package which is present in centos
2018-10-15 13:20:14 +02:00
Tomas Korbar
2fad9568f6 Fix test_pickle_provider
- change of default storage file in CommandsTestCase affects this test
- file has been changed also in this test to ensure stable behaviour
2018-10-15 13:20:14 +02:00
Tomas Korbar
d8e319caef Edit InventoryTestCase 2018-10-15 13:20:14 +02:00
Tomas Korbar
db3647ef65 Edit tests for DeviceMatcherUdev class 2018-10-15 13:20:14 +02:00
Tomas Korbar
2b990ac8ac Add Travis and Docker file
- Dockerfile supports builds for both fedora and centos
- This commit will allow us to run tests after each new commit
2018-10-15 13:20:14 +02:00
Tomas Korbar
3319d53a87 Add tests for GlobalConfig class 2018-10-15 13:20:14 +02:00
Tomas Korbar
b4f4e41adc Fix unit tests for Merger class 2018-10-15 13:20:14 +02:00
Tomas Korbar
ca040870b3 Use unittest2 module for unittesting 2018-10-15 13:20:14 +02:00
Tomas Korbar
a2ed07c1af Fix profiles.Loader class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
2a22bf03e1 Add Plugin class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
3049600c35 Add Commands class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
213eca72d8 Add exports Controller class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
d1051a7e3e Add device matcher udev tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
0245c53ee1 Add Inventory class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
b09c8d0d37 Start using unittest2 in test_device_matcher 2018-10-15 13:20:14 +02:00
Jaroslav Škarvada
f563c7d756
An attempt to port Tuned to python3 and keeping it python2 compatible
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-12-21 10:20:13 +01:00
Evgeni Golov
7f087627ef move DeviceMatcher to hardware 2017-04-18 12:17:42 +02:00
Evgeni Golov
7aafbccb32 profile units are OrderedDicts, not lists
refs #35
2017-04-18 11:53:53 +02:00
Jaroslav Škarvada
c909f7f15a tests: added basic functionality test
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-10-17 00:46:53 +02:00
Jan Vcelak
a614c1b54b implement profiles locator class, used by profiles loader 2012-11-07 11:24:49 +01:00
Jan Vcelak
6d48f2099d move DeviceMatcher from profiles to units submodule 2012-10-26 17:59:30 +02:00
Jan Vcelak
ec9c3a53dd profiles: Factory and Merger depend on Loader 2012-10-26 17:59:30 +02:00
Jan Vcelak
69679eaccd profiles.unit: separate properties for type, enabled and replace 2012-10-26 17:59:30 +02:00
Jan Vcelak
fc87b96744 profiles: use Merger object in Loader 2012-10-26 17:59:30 +02:00
Jan Vcelak
123215eaa5 profiles: add Merger class 2012-10-26 17:59:30 +02:00
Jan Vcelak
fd132cf8d0 profiles tests: add device matcher class 2012-10-26 17:59:30 +02:00
Jan Vcelak
89dcad5a19 profiles.loader tests: multiple profiles loading 2012-10-26 17:59:30 +02:00
Jan Vcelak
04d460349b storage tests: check provider property 2012-10-26 17:59:30 +02:00
Jan Vcelak
f72f034c84 monitors tests: exception if update method not implemented 2012-10-26 17:59:30 +02:00
Jan Vcelak
a14d16cb33 monitors tests: instance deregistration 2012-10-26 17:59:30 +02:00
Jan Vcelak
4417a01e27 plugins tests: initial tests for base class 2012-10-26 17:59:29 +02:00
Jan Vcelak
6693b7f359 monitors tests: initial tests for base class 2012-10-26 17:59:29 +02:00
Jan Vcelak
eb4b1d9455 tests: mock TunedLogger with NullHandler 2012-10-26 17:59:29 +02:00
Jan Vcelak
d388dec6ab remove circular dependencies between library and tests 2012-10-26 17:59:29 +02:00
Jan Vcelak
ce5a07d9de profile.loader tests: script name expansion 2012-10-26 17:59:29 +02:00
Jan Vcelak
44e56043c1 Profile: add name property 2012-10-26 17:59:29 +02:00
Jan Vcelak
00d02f4ffb storage: relocate unit tests to correct location 2012-10-26 17:59:29 +02:00
Jan Vcelak
94f24ae120 profiles.loader: new code, unit tests 2012-10-26 17:59:28 +02:00