| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Limit number of randomly selected packages to speed up tests.
|
|
|
|
|
|
|
| |
CMake doesn't like spaces around version requirements in pkg-config checks.
Unfortunately also maintains configure cache and doesn't pick the changes in
CMakeLists.txt up automatically so my typo went unspotted during testing.
Damn.
|
|
|
|
|
| |
The commit aac4d3a0d1dc brought new symbols in the code without bumping
libuser version req.
|
|
|
|
|
|
| |
When the watcher() callback returns unsuccessfully and gather() part
has not been run, we may end up with NULL enums that have been originally
created by add_enumeration(). This prevents segfault in such case.
|
| |
|
|
|
|
|
| |
New Provider:
* LMI_DiskPhysicalPackage
|
|
|
|
|
| |
Skipped two unreliable performed on random packages. This is a temporary
solution.
|
|
|
|
|
| |
TargetOperatingSystem property is tested also in
TestSoftwareIdentityChecks, let's share the code in util module.
|
|
|
|
| |
Also remove dependency on sblim-cmpi-base
|
| |
|
| |
|
|
|
|
|
| |
Few tests of LMI_SoftwareIdentityFileCheck are not reliable on randomly
selected package. Let's skip them temporarily.
|
|
|
|
| |
Make sure to check for correct TargetOperatingSystem for rhel.
|
|
|
|
|
|
|
|
|
| |
Can't really have global variables for threads and mutexes as long
as there are more indication managers running, simultaneously using
the same objects, leading to deadlock in a matter of time.
This patch moves the pthread stuff in the IMManager struct which is
(usually) speficic to each CIM indication class.
|
|
|
|
|
| |
Potential double free or freeing of uninitialized memory. Fixes some
asserts thrown from libuser.
|
|
|
|
|
|
|
|
|
|
| |
This is an attempt to get rid of most probable race conditions by creating
inotify watches outside the watcher thread and making them persistent for
the whole time the indication subscription is active. There's a certain
amount of time when watching if off due to gather part of the indication
manager. Leaving a watch fd open with active watches allows us to queue
events that we process next time the watcher is called (once gather part
is finished).
|
| |
|
|
|
|
|
| |
LMI_InstalledSoftwareIdentity generated wrong object paths of
SoftwareIdentities. System does not belong into its keys.
|
|
|
|
|
| |
Base software tests on LmiTestCase from lmi.test.base. Use lmi.shell
abstractions instead of plain pywbem.
|
|
|
|
| |
Do not use packages related to openlmi and CIM for testing purposes.
|
|
|
|
|
| |
Base test classes have been renamed, this patch makes small provider
tests working again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Base test case class is renamed to BaseLmiTest. But it's not intended
for direct use in provider tests. For this purpose two more classes are
added. Namely LmiTestCase and CIMTestCase.
Tests wanting to take advantage of lmi shell's power should subclass
LmiTestCase. Those based on pure pywbem code shall subclass the other
one.
Added lots of convenience methods. Allowed to use lmi.shell abstractions
if available.
Useful utilities are moved to standalone util module.
|
|
|
|
| |
Whitespaces hunting.
|
|
|
|
|
|
|
| |
Dangerous tests changing yum package database are not reliable because
they operate on dynamically changing repositories. This patch
temporarily disables them until custom testing repositories are created
for the purpose of software tests.
|
|
|
|
|
| |
Do not presume that any cache is available before call to yum.
If the cache is not there, call fails.
|
| |
|
| |
|
|
|
|
| |
library.
|
|
|
|
|
|
|
|
|
| |
system_name property has been removed from BaseConfiguration.
This replaces remaining reference with access to ComputerSystem module.
Silently ignore the first access to get_system_name() when
ComputerSystem instance has not been loaded yet. host property is not
mandatory.
|
|
|
|
|
| |
Let's use gethostname() instead of querying BaseConfiguration's system_name
property that has been removed.
|
|
|
|
|
| |
Removed import from software provider. providers package can not depend
on any lmi provider package.
|
|
|
|
|
|
| |
1) Account: Use new atomic libuser api.
2) Account: Added author and license to lock.c and lock.h.
3) Account: Added group locking to LMI_AccountProvider.
|
| |
|
|
|
|
|
|
|
|
|
| |
Added ComputerSystem module to lmi.providers with convenience functions
allowing to obtain instance from CIMOM and check for its correctness
when inspecting client's input.
Also removed obsoleted system_name property out of BaseConfiguration
class.
|
|
|
|
|
|
|
|
| |
lmishell no longer automatically refresh the instance after calling some
method on it. refresh() must be called manually.
Also fix path to the failing.service file when running the test script
directly.
|
|
|
|
|
|
| |
The test for creating socket and http connection get removed, because:
* socket connection might not work on the buildbot
* http(s) connection is tested in the service provider tests anyway
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PG_ComputerSystem has different method how to get hostname than our
providers. In order to create the associations to this class we need to
enumerate it. The downside is that all providers must supply CMPIContext
to the lmi_init function.
New function lmi_get_computer_system returns CMPIObjectPath to the
configured CIM_ComputerSystem subclass instance. This object should be
used in all references with ComputerSystem.
Function lmi_get_system_name has been altered to return same value as
ComputerSystem "Name" property.
|
|
|
|
|
|
|
|
|
|
|
| |
Things are bit harsh in the indication manager when it comes to cancellation.
At certain situation we force-cancel the polling thread, having no chance
for cleanup. The mutex we use to protect memory shared between threads may
be left in undefined state.
The pthread_mutex_unlock() call in im_stop_ind() may be called on already
unlocked mutex which, in default setup, causes a segfault. Setting a mutex
attribute PTHREAD_MUTEX_ERRORCHECK will prevent this, returning proper error.
|
|
|
|
|
|
|
| |
A bit of cleanup, adding "Implemented(true)" qualifiers where applicable,
adding forgotten properties used by the provider and also added and modified
description for the methods we implement. Note that only modified descriptions
have been added, the unchanged ones get inherited just fine.
|
| |
|
|
|
|
|
|
| |
Let's write openlmi version to the main __init__ module of each python
egg at build time. This version information is easily accessible from
setup scripts.
|
|
|
|
| |
Done for: Account, Journald and LogicalFile
|
|
|
|
|
|
|
|
| |
import it in your tests with:
from lmi.test.base import LmiTestCase
For imports to work, run:
export PYTHONPATH=${PROVIDERS_GIT_ROOT}/src/python
before nosetests or before running them individually.
|
|
|
|
|
| |
Added missing 'lmi' package to packages. This fixes installation to
user directory.
|
| |
|
|
|
|
|
|
|
| |
Path to the qualifiers and jobs mofs was hardcoded, now it's a variable.
There is now also a variable for openlmi-mof-register script - this
fixes (un)register-Provider targets.
|
|
|
|
| |
The test is started with undeterministic current working directory.
|
|
|
|
| |
The test must reload service status from CIMOM.
|
|
|
|
| |
It breaks Pegasus.
|
|
|
|
| |
failing.service was removed twice without checking.
|