| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Resolves ticket #165
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
With the recent change of the way classes are parsed out from MOF files
(commit 6d439c392595) the keyword "class" needs to be at the very beginning
of the line otherwise it gets ignored.
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
In the future python3's sitelib will be a default. But we're not
ready for python3 yet.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
RPM will find the dependency by itself. This suppresses rpmlint message:
E: explicit-lib-dependency systemd-libs
|
|
|
|
| |
The test must reload service status from CIMOM.
|
|
|
|
| |
It breaks Pegasus.
|
|
|
|
| |
failing.service was removed twice without checking.
|
|
|
|
|
|
|
|
| |
restart.
The test expected that the CIMOM restarts atomically, which is not the case
- there are few seconds of no CIM service and the test must wait until
the CIMOM becomes online.
|
|
|
|
|
|
| |
More packages are needed to do serious provider development.
Reported by jfilak@redhat.com.
|
|
|
|
|
|
|
| |
OpenLMI providers are not usable without cim-schema installed. Let's
require it.
Reported by jfilak@redhat.com.
|
|
|
|
| |
Resolves: ticket #162
|
|
|
|
|
| |
Rpmdiff requires explicit dependency between openlmi-account and
openlmi-indicationmanager-libs.
|
|
|
|
|
| |
We expect that test machines have correct https setup and certificates
are distributed to the right places.
|
|
|
|
|
| |
There should be only one documentation of a CIM class and that's the one
on the top level mof/ directory, therefore all the others must be removed.
|
|
|
|
| |
number of registration IDs
|
|
|
|
|
| |
This ugly workaround allows to have "class" string in the Description
qualifier.
|
| |
|
|
|
|
| |
There is too much noise in TRACE_VERBOSE and exception stack trace is
more important than e.g. entering/leaving messages.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Everything is in openlmi-providers/doc/admin directory.
- 'make doc' automatically builds documentation of all
enabled providers.
- Documentation shares one 'conf.py' for sphinx.
- All documentation uses the same directory structure.
There is only one CMakefile.txt to generate all the docs.
|
|
|
|
| |
A fallout from commit b60cd25e366d
|
| |
|
|
|
|
| |
When running nosetest over all tests, modules having same name are not re-imported.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Let's not deviate from other providers by having '_build' directory.
Also moved the sources to source directory - just like the other
providers.
|
|
|
|
|
|
|
| |
Preserve the attributes of function being wrapped when creating a
wrapper in decorator.
Also removed redundant logging.
|
|
|
|
|
|
| |
Function wrappers should look like the functions being wrapped. Without
the *wraps()* decorator, the resulting function would not have assigned
doc string, would have wrong name etc.
|