summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* added indication sender libraryMichal Minar2014-06-205-0/+989
|
* indications: fixed succeeded static filterMichal Minar2014-06-201-1/+1
| | | | | Succeeded static filter had wrong constant hardcoded for successful job state.
* software-dbus: use is_elem_name_installed() in InstalledSWProviderPeter Schiffer2014-06-201-24/+8
| | | | | Use is_elem_name_installed() function in associators and references method of LMI_InstalledSoftwareIdentityProvider instead of manually checking it.
* Fix comparison methodAlois Mahdal2014-06-201-2/+2
| | | | CIMDateTime is apparently able to compare itself
* software-dbus: implemented LMI_SoftwareIdentityChecksProviderPeter Schiffer2014-06-194-50/+476
|
* Sort reports before extracting info from themAlois Mahdal2014-06-181-5/+7
| | | | | | This is how it was supposed to be in the first place (and how I incorrectly presented the framework so far). Apparently I forgot to add the sorting call.
* software-dbus: implemented LMI_SoftwareIdentityFileCheckProviderPeter Schiffer2014-06-176-26/+527
|
* added openlmi-utils to openlmicommon libraryMichal Minar2014-06-173-1/+116
|
* Add event-based tests for indications (basic set)Alois Mahdal2014-06-101-0/+148
| | | | | | | | | | | | | Basic set of tests with focus on this flow: 1. add set of subscriptions 2. add set of handlers 3. trigger sequence of "interesting" events 4. collect indications 5. and make assertions as needed Currently the assertions are mostly that correct classes have been delivered, reporting the events in correct order.
* added cmake option to build software-dbusMichal Minar2014-06-101-1/+5
| | | | It defaults to off - python implementation is preferred.
* support older versions of PackageKit apiMichal Minar2014-06-101-12/+36
| | | | | | | | 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.
* New provider: LocaleVitezslav Crhonek2014-06-047-0/+904
|
* journald: Enhance indication tests for UID/GID/PID matchingTomas Bzatek2014-05-261-3/+11
|
* journald: Fix instance number limiterTomas Bzatek2014-05-261-1/+1
| | | | Off-by-one.
* journald: Expose UID, GID, PID and syslog facility/severity fieldsTomas Bzatek2014-05-261-33/+82
| | | | This is useful e.g. for indication filtering.
* Fix error in PackedSequenceAlois Mahdal2014-05-221-2/+33
| | | | | PackedSequence failed to normalize properly sequences like "1a,0b,1a", which it returned as "a,a" instead of "2a"
* Add AccountIndicationTestDriver, application of indication testing framework.Alois Mahdal2014-05-221-0/+38
|
* Add indication testing frameworkAlois Mahdal2014-05-221-0/+411
| | | | | | | | | 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.
* Add BaseTestDriver base classAlois Mahdal2014-05-221-0/+119
| | | | This will be used for indication test cases
* software: proper logging setup for python 2.6Michal Minar2014-05-222-59/+48
| | | | Properly configure logging of YumWorker process under older python.
* test lmi: use only one connection for test-casePeter Hatina2014-05-211-3/+5
| | | | 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.
* hardware: replace subprocess.check_output with PopenRadek Novacek2014-05-191-1/+2
| | | | | There is no check_output function in subprocess module in python 2.6, Popen will be used instead.
* Test: get rid of 'import unittest'Radek Novacek2014-05-197-7/+5
| | | | | Always use 'from lmi.test import unittest' instead of plain 'import unittest', because it automagically imports unittest2 on python 2.6.
* PEP8, Flake8, readability improvementsAlois Mahdal2014-05-191-31/+52
|
* Software: don't fail when logging.config doesn't have dictConfigRadek Novacek2014-05-191-1/+4
| | | | | python 2.6 doesn't have logging.config.dictConfig, skip the logging configuration in that case.
* test base: use service instead of systemctl commandRadek Novacek2014-05-191-1/+1
| | | | | service command is compatible even with non-systemd distribution and still works with systemd.
* LogicalFile: simulate subprocess check_output on python 2.6Radek Novacek2014-05-191-4/+14
| | | | | Python 2.6 doesn't have subprocess.check_output function, we'll simulate it using subprocess.Popen.
* Clean up imports in commonAlois Mahdal2014-05-151-15/+6
|
* Add utility classes for indication testingAlois Mahdal2014-05-152-0/+148
|
* Move dangling functions to common.UserOpsAlois Mahdal2014-05-158-102/+138
| | | | | Since they have much in common, I am moving them under UserOps static class. This allows for better flexibility and readability.
* Include profile (un)registration in the (un)register-PROVIDER make targetsTomas Bzatek2014-05-1510-16/+21
| | | | | | | | | | 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.
* journald: Fix LMI_JournalLogRecord.PerceivedSeverityTomas Bzatek2014-05-151-1/+1
| | | | | The string conversion was not working at all, we were accessing already freed memory.
* account: Don't expose the LMI_Account.UserPassword valueTomas Bzatek2014-05-151-14/+27
| | | | | | | | | | | | | | | 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.
* account: Make LMI_MemberOfGroup.CreateInstance() more robustTomas Bzatek2014-05-151-4/+19
| | | | | | Return proper error when required properties are not set. https://fedorahosted.org/openlmi/ticket/270
* account: Mark TestAccountInvalidEtc tests as dangerousTomas Bzatek2014-05-151-0/+2
| | | | | | Really dislike these messages: cp: cannot remove ‘/etc/passwd’: Permission denied
* journald: Fix EOF reporting when not advancing next on ↵Tomas Bzatek2014-05-151-1/+3
| | | | | | | | | 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.
* indmanager: Add a Debugging section in the README fileTomas Bzatek2014-05-151-0/+21
|
* account: use defaultdict instead of CounterRadek Novacek2014-05-131-2/+2
| | | | Counter is not present in python <= 2.6, so replace it with defaultdict.
* Hardware: spring cleanup & refactorPeter Schiffer2014-05-1263-331/+247
| | | | | | * use openlmi common library where possible * get rid of LMI_Hardware.h file * some other cosmetic changes
* logicalfile: fix configuration installationJan Synacek2014-05-121-1/+1
|
* logicalfile: install configurationJan Synacek2014-05-121-0/+2
|
* logicalfile: test providers' configurationJan Synacek2014-05-123-22/+188
|
* Software-dbus: implemented LMI_HostedSoftwareIdentityResourceProviderPeter Schiffer2014-05-091-3/+68
|
* Software-dbus: embrace the new openlmi common libraryPeter Schiffer2014-05-0910-291/+217
|
* spec: modularize spec fileRadek Novacek2014-05-091-0/+4
| | | | | | | Add support for easier enabling/disabling providers on different versions of hosting operating system. Also add support for RHEL-6.
* cmake: install mof for service-legacyRadek Novacek2014-05-091-1/+1
|
* Move generic code to lmi.test.utilAlois Mahdal2014-05-075-218/+224
|
* Software-dbus: implemented LMI_ResourceForSoftwareIdentityProviderPeter Schiffer2014-05-075-177/+1013
|
* Improve random_string util functionAlois Mahdal2014-05-073-7/+9
| | | | | | | | | When writing new test, I find myself constantly computing the size from desired strength and prefix length, whereas I mostly don't care about the final size at all (plus, one can usually see that from surrounding code). Providing strength simplifies use and the function code.
* logicalfile: fix unittest importJan Synacek2014-05-071-1/+1
|