summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* software: optimalize testsMichal Minar2013-11-071-1/+1
| | | | Limit number of randomly selected packages to speed up tests.
* Fix libuser require once againTomas Bzatek2013-11-061-1/+1
| | | | | | | 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.
* Require libuser >= 0.60Tomas Bzatek2013-11-061-1/+1
| | | | | The commit aac4d3a0d1dc brought new symbols in the code without bumping libuser version req.
* indmanager: Fix empty enum cleanupTomas Bzatek2013-11-061-2/+4
| | | | | | 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.
* Service: Added new author. Fix default enviroment value.Robin Hack2013-11-061-2/+2
|
* Hardware: Added Physical Disk ProviderPeter Schiffer2013-11-058-13/+555
| | | | | New Provider: * LMI_DiskPhysicalPackage
* software: skipped two tests0.4.1Michal Minar2013-11-041-0/+2
| | | | | Skipped two unreliable performed on random packages. This is a temporary solution.
* software: fixed a testMichal Minar2013-11-043-10/+19
| | | | | TargetOperatingSystem property is tested also in TestSoftwareIdentityChecks, let's share the code in util module.
* Prepare 0.4.1 releaseRadek Novacek2013-11-043-3/+3
| | | | Also remove dependency on sblim-cmpi-base
* Fix coverity issuesRadek Novacek2013-11-042-3/+9
|
* power: Use logind instead of upowerRadek Novacek2013-11-042-68/+143
|
* software: skip unreliable testsMichal Minar2013-11-041-0/+2
| | | | | Few tests of LMI_SoftwareIdentityFileCheck are not reliable on randomly selected package. Let's skip them temporarily.
* software: fixed SoftwareIdentityFileCheckMichal Minar2013-11-041-1/+9
| | | | Make sure to check for correct TargetOperatingSystem for rhel.
* indmanager: Use per-instance set of pthread stuffTomas Bzatek2013-11-042-40/+39
| | | | | | | | | 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.
* account: Fix libuser object cleanupTomas Bzatek2013-11-042-4/+4
| | | | | Potential double free or freeing of uninitialized memory. Fixes some asserts thrown from libuser.
* account: Start watching right upon indication subscriptionTomas Bzatek2013-11-044-41/+90
| | | | | | | | | | 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).
* power: handle memory allocation failures properlyRadek Novacek2013-11-044-4/+30
|
* software: fixed referents generatorMichal Minar2013-11-041-2/+2
| | | | | LMI_InstalledSoftwareIdentity generated wrong object paths of SoftwareIdentities. System does not belong into its keys.
* software: refactored testsMichal Minar2013-11-0412-722/+506
| | | | | Base software tests on LmiTestCase from lmi.test.base. Use lmi.shell abstractions instead of plain pywbem.
* software: test improvementsMichal Minar2013-11-041-7/+14
| | | | Do not use packages related to openlmi and CIM for testing purposes.
* tests: adjusted test suits for changes in lmi.testMichal Minar2013-11-043-8/+8
| | | | | Base test classes have been renamed, this patch makes small provider tests working again.
* tests: added Base test cases for cim and lmi shell testsMichal Minar2013-11-044-350/+696
| | | | | | | | | | | | | | 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.
* Account: Whitespaces removed.Robin Hack2013-11-041-6/+6
| | | | Whitespaces hunting.
* software: temporarily disabled dangerous testsMichal Minar2013-11-022-2/+4
| | | | | | | 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.
* software: fix querying repository databaseMichal Minar2013-11-021-1/+1
| | | | | Do not presume that any cache is available before call to yum. If the cache is not there, call fails.
* Use configured ComputerSystem class name.Jan Safranek2013-11-011-1/+1
|
* logicalfile: implement LMI_RootDirectory.EnumerateInstanceNamesJan Safranek2013-11-011-1/+2
|
* Work around Pegasus destroying threads _after_ unloading provider dynamic ↵Jan Safranek2013-11-012-1/+16
| | | | library.
* software: ditched reference to removed system_name propertyMichal Minar2013-10-311-1/+6
| | | | | | | | | 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.
* python: fixed is_this_systemMichal Minar2013-10-311-3/+1
| | | | | Let's use gethostname() instead of querying BaseConfiguration's system_name property that has been removed.
* python: fixed ComputerSystem moduleMichal Minar2013-10-311-2/+2
| | | | | Removed import from software provider. providers package can not depend on any lmi provider package.
* Account: Added 3 changes as one.Robin Hack2013-10-313-106/+243
| | | | | | 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.
* software: use shared ComputerSystem moduleMichal Minar2013-10-3119-166/+72
|
* python: solve ComputerSystem issuesMichal Minar2013-10-313-6/+177
| | | | | | | | | 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.
* test: fix service testsRadek Novacek2013-10-311-1/+7
| | | | | | | | 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.
* test: Don't test connection in the service providerRadek Novacek2013-10-311-30/+0
| | | | | | 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
* Add lmi_get_computer_system function and fix lmi_get_system_nameRadek Novacek2013-10-3191-581/+477
| | | | | | | | | | | | | | 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.
* indmanager: Use proper mutex error checkingTomas Bzatek2013-10-301-2/+6
| | | | | | | | | | | 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.
* journald: Tweak and cleanup the MOF fileTomas Bzatek2013-10-251-0/+1
| | | | | | | 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.
* python: bumped egg versions to 0.4.0Michal Minar2013-10-243-3/+3
|
* python: let's not hardcode version in setupsMichal Minar2013-10-2410-8/+98
| | | | | | 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.
* tests: use shared base class in provider testsMichal Minar2013-10-2411-389/+54
| | | | Done for: Account, Journald and LogicalFile
* tests: added base class for our test casesMichal Minar2013-10-242-0/+467
| | | | | | | | 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.
* pcp: fixed setupMichal Minar2013-10-242-0/+22
| | | | | Added missing 'lmi' package to packages. This fixes installation to user directory.
* minor test improvementsMichal Minar2013-10-2416-15/+27
|
* cmake: don't use hardcoded pathsRadek Novacek2013-10-231-1/+1
| | | | | | | 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.
* service: fix service file locationJan Safranek2013-10-231-1/+1
| | | | The test is started with undeterministic current working directory.
* services: fix test_service_get_status_when_stoppped testJan Safranek2013-10-231-0/+1
| | | | The test must reload service status from CIMOM.
* services: disable test_service_with_null_nameJan Safranek2013-10-231-0/+1
| | | | It breaks Pegasus.
* service: fix test_service_race_conditionJan Safranek2013-10-231-1/+5
| | | | failing.service was removed twice without checking.