| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
It defaults to off - python implementation is preferred.
|
|
|
|
|
|
|
|
| |
Functions like:
pk_details_get_package_id
pk_details_get_description
are available since version 0.8.12. In RHEL7 we have 0.8.9. Let's avoid
using them.
|
| |
|
|
|
|
| |
...to demonstrate flexibility and filtering basics.
|
| |
|
| |
|
|
|
|
|
| |
This commit brings three basic static indication filters that should
make user's life easier. Also serves as an example.
|
| |
|
| |
|
|
|
|
| |
Off-by-one.
|
|
|
|
| |
This is useful e.g. for indication filtering.
|
|
|
|
|
| |
Author: Sachidananda Urs <sacchi@gmail.com>
Submitted By: Radek Novacek <rnovacek@redhat.com>
|
|
|
|
|
| |
PackedSequence failed to normalize properly sequences like
"1a,0b,1a", which it returned as "a,a" instead of "2a"
|
| |
|
|
|
|
|
|
|
|
|
| |
A small test framework for testing LMI Indications. Oriented on
data-driven testing approach and capable of "provoking" events
and tracking relevant indications.
Classes should be extended on provider-level to include provider-
-specific actions and knowledge.
|
|
|
|
| |
This will be used for indication test cases
|
|
|
|
| |
Properly configure logging of YumWorker process under older python.
|
|
|
|
| |
Use the same pattern in LmiTestCase.conn as CIMTestCase.wbemconnection. This saves the time and network bandwidth and also prepares test suite for lmiwbem module, where we could potentially run out of file descriptors range.
|
| |
|
|
|
|
|
| |
There is no check_output function in subprocess module in python 2.6,
Popen will be used instead.
|
|
|
|
|
| |
Always use 'from lmi.test import unittest' instead of plain 'import
unittest', because it automagically imports unittest2 on python 2.6.
|
| |
|
|
|
|
|
| |
python 2.6 doesn't have logging.config.dictConfig, skip the logging
configuration in that case.
|
| |
|
|
|
|
|
| |
service command is compatible even with non-systemd distribution and
still works with systemd.
|
|
|
|
|
| |
Python 2.6 doesn't have subprocess.check_output function, we'll simulate
it using subprocess.Popen.
|
| |
|
| |
|
|
|
|
|
| |
Since they have much in common, I am moving them under UserOps
static class. This allows for better flexibility and readability.
|
|
|
|
|
|
|
|
|
|
| |
This is an attempt to include profile (un)registration within the
(un)register-PROVIDER make target. This commit extends the cim_registration
macro by an extra argument of the profile file or list of profile files.
To preserve API of the CMake modules this extra argument is an variable arg
in fact and does not need to be specified. Pass a list variable to specify
multiple profile files.
|
|
|
|
|
| |
The string conversion was not working at all, we were accessing
already freed memory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to the Simple Identity Management Profile (DSP1034)
document the LMI_Account.UserPassword property should not contain
the password itself, no matter how encrypted it is. It should either
contain an array of zero elements when password has been set or
NULL when password is missing or not configured.
Another change this commit brings is a more precise behaviour
of LMI_Account.ModifyInstance() method. When the UserPassword
property is array of zero elements, no change regarding password
is made. This case was previously treated as a request for password
removal. The DSP1034 profile doesn't specify such scenario, let's
treat it the same way as the GetInstance() operation.
|
|
|
|
|
|
| |
Return proper error when required properties are not set.
https://fedorahosted.org/openlmi/ticket/270
|
|
|
|
|
|
| |
Really dislike these messages:
cp: cannot remove ‘/etc/passwd’: Permission denied
|
|
|
|
|
|
|
|
|
| |
LMI_JournalMessageLog.GetRecord()
Testing wrong return code when sd_journal_next() was not called as it
was not needed. When step_next == FALSE the EOF flag must be never set
since the journal EOF case is tested at the beginning of the function
and we're not advancing next thus staying on a valid cursor.
|
| |
|
| |
|
| |
|
|
|
|
| |
Counter is not present in python <= 2.6, so replace it with defaultdict.
|
|
|
|
|
|
| |
* use openlmi common library where possible
* get rid of LMI_Hardware.h file
* some other cosmetic changes
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Devassistant is by default disabled, it needs to be explicitly enabled
when it should be used.
|
|
|
|
|
|
|
| |
Add support for easier enabling/disabling providers on different
versions of hosting operating system.
Also add support for RHEL-6.
|