summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* cmake: fixed build error caused by greedy sed editMichal Minar2014-05-061-2/+2
|
* libopenlmi: re-version to 0.0.2Jan Synacek2014-05-061-11/+7
|
* indmanager: move to libsJan Synacek2014-05-069-4/+4
|
* libopenlmi: rename back to openlmicommon and get versioning rightJan Synacek2014-05-0612-20/+20
|
* libopenlmi: minor fixes and improvementsJan Synacek2014-05-0660-235/+272
|
* libopenlmi: reorganize and gatherJan Synacek2014-04-30134-732/+616
| | | | | | | Make naming consistent. Gather common functionality into one library and try to use it across all providers. Introduce libtool-style versioning for libraries.
* Service-legacy (non d-bus):Vitezslav Crhonek2014-04-293-14/+18
| | | | | | - Detect and handle unsupported methods - serviceutil.sh - fix 'is-enabled' method, call 'status' command with LANG=C because of parsing its output, fix indentation
* logicalfile: add sentinel to provider_config_defaultsJan Synacek2014-04-291-0/+1
|
* logicalfile: enhance testsJan Synacek2014-04-281-9/+24
| | | | | After creating a directory or symlink, check if the object created really is the directory or symlink.
* logicalfile: respect configuration when creating/removing directoriesJan Synacek2014-04-281-2/+13
|
* logicalfile: respect configuration when creating symlinksJan Synacek2014-04-281-1/+7
|
* logicalfile: provide default configurationJan Synacek2014-04-282-1/+18
|
* common: logging fixesJan Synacek2014-04-252-7/+9
| | | | | | Fix top level configuration defaults. Add warning when attempting to parse non-existent group or key from a key file. Correct loglevel comment in configuration.
* logicalfile: remove unused code and add a few checksJan Synacek2014-04-241-2/+4
|
* logicalfile: add support for symlink creationJan Synacek2014-04-245-3/+51
|
* moved openlmicommon library to common/ subfolderMichal Minar2014-04-236-20/+26
|
* Software-dbus: safer extracting of element name from SwIdentity InstanceIDPeter Schiffer2014-04-239-68/+70
|
* Software-dbus: implemented LMI_InstalledSoftwareIdentityProviderPeter Schiffer2014-04-186-55/+291
|
* Avoid endless import loop in lmi.test.unittest.Jan Safranek2014-04-182-28/+8
| | | | lmi.test.unittest is now defined directly in lmi/test/__init__.py
* Uninstall 'unicode-chars' package in test_enum_instance_names test.Jan Safranek2014-04-181-0/+1
| | | | | | The package is installed by TestSoftwareIdentityChecks.test_package_file_checks_unicode and can make the test fail.
* Don't use epoch for 'rpm -q' or '-e'.Jan Safranek2014-04-181-15/+25
| | | | Older rpm doesn't support it.
* Don't require the openlmi-software package installed.Jan Safranek2014-04-181-1/+0
| | | | We want to run tests also from git checkout.
* Use unittest2 on Python 2.6Jan Safranek2014-04-1819-25/+49
|
* User 'yum repolist -v' instead of 'yum repoinfo'.Jan Safranek2014-04-181-3/+3
| | | | | yum repoinfo is available only in newer yum. Surprisingly, they habe the same output.
* Use proper paths for various tools.Jan Safranek2014-04-184-8/+8
|
* Port tests to Python 2.6Jan Safranek2014-04-188-41/+51
| | | | | | | - replace various dictionary/set comprehensions - re-implement subprocess.check_output() - use optparse
* journald: Properly handle journal EOFTomas Bzatek2014-04-183-21/+77
| | | | | | | | | | | | | | | | | | | The logic of handling EOF is incompatible between journald API and CIM_MessageLog model we use. The CIM_MessageLog.GetRecord() method allows stepping to the next record after data retrieval but there's no specific return code for the EOF case. And returning failure code makes the client application think the whole data retrieval has failed and thus throwing away the last record. To work around this case, a new flag has been introduced to the IterationIdentifier string, which is considered opaque to the client. That way we return success from the GetRecord() method call and putting a flag to the IterationIdentifier string so that any successive GetRecord() method call properly fails without any data loss. Care is taken of the case when a new message is logged between the GetRecord() calls. This commit also adds the CIM_MessageLog.PositionToLastRecord() method for convenient access to the end of the journal.
* Software-dbus: refactor & cleanup 2Peter Schiffer2014-04-184-222/+166
|
* Update job_request decorator for Python 2.6Jan Safranek2014-04-171-2/+4
| | | | | There is no inspect.callargs there, so we must assume that 'async' is in kwargs.
* Update job_handler decorator for Python 2.6Jan Safranek2014-04-171-8/+16
| | | | | | There is no inspect.callargs there. As a simple workaround, 'job' must be the first parameter in decorated method.
* Fixed loading of logging config.Jan Safranek2014-04-172-2/+2
| | | | | - use correct config file path - read correct config file item
* Software-dbus: refactor & cleanupPeter Schiffer2014-04-175-202/+214
|
* Service-legacy (non d-bus):Vitezslav Crhonek2014-04-173-5/+6
| | | | | | - Add support for building service-legacy provider into cmake files (OFF by default) - Add service-legacy mof file (no indications, builds with older cmake) - Fix service enumeration (use chkconfig)
* Merge branch 'master' of ssh://git.fedorahosted.org/git/openlmi-providersAles Ledvinka2014-04-162-2/+2
|\
| * Software-dbus: fix resolving of older packagesPeter Schiffer2014-04-152-2/+2
| | | | | | | | | | | | Function pk_task_resolve_sync() won't return all versions of required package, so this patch replaces this function with pk_task_search_names_sync() which returns all versions of given package.
* | python 2.6 newclassAles Ledvinka2014-04-161-1/+1
| |
* | Merge branch 'master' of https://git.fedorahosted.org/git/openlmi-providersAles Ledvinka2014-04-153-14/+15
|\|