summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* doc: improvement in software's usageMichal Minar2013-10-311-1/+2
| | | | Resolves ticket #165
* 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: Alter the MOF file for proper class parseoutTomas Bzatek2013-10-291-1/+1
| | | | | | 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.
* journald: Documentation tweaks and additionsTomas Bzatek2013-10-251-5/+44
|
* journald: Tweak and cleanup the MOF fileTomas Bzatek2013-10-252-12/+169
| | | | | | | 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
* spec: use python2_sitelib instead of python_sitelibMichal Minar2013-10-241-14/+12
| | | | | In the future python3's sitelib will be a default. But we're not ready for python3 yet.
* 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-233-3/+8
| | | | | | | 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.
* doc: fix account indication examplesVitezslav Crhonek2013-10-231-5/+9
|
* Make the new registration script the default one.Tomas Smetana2013-10-235-904/+513
|
* service: fix service file locationJan Safranek2013-10-231-1/+1
| | | | The test is started with undeterministic current working directory.
* Remove direct dependency on systemd-libs.Jan Safranek2013-10-231-1/+0
| | | | | RPM will find the dependency by itself. This suppresses rpmlint message: E: explicit-lib-dependency systemd-libs
* 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.
* service: fix test_restart_service_broker test, we must wait for the CIMOM to ↵Jan Safranek2013-10-231-3/+16
| | | | | | | | 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.
* doc: added missing devel dependenciesMichal Minar2013-10-231-1/+1
| | | | | | More packages are needed to do serious provider development. Reported by jfilak@redhat.com.
* spec: added cim-schema to requiresMichal Minar2013-10-231-0/+1
| | | | | | | OpenLMI providers are not usable without cim-schema installed. Let's require it. Reported by jfilak@redhat.com.
* doc: added note to listing available packagesMichal Minar2013-10-231-0/+8
| | | | Resolves: ticket #162
* Add explicit dependency to satisfy rpmdiffRadek Novacek2013-10-221-0/+1
| | | | | Rpmdiff requires explicit dependency between openlmi-account and openlmi-indicationmanager-libs.
* Remove 'verify_server_cert=False' from test.Jan Safranek2013-10-221-3/+3
| | | | | We expect that test machines have correct https setup and certificates are distributed to the right places.
* doc: remove generated mof/*.rst files before creating overall documentation.Jan Safranek2013-10-221-1/+9
| | | | | 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.
* Registration script: group list of registrations by ID when looking for ↵Tomas Smetana2013-10-221-3/+4
| | | | number of registration IDs
* Workaround having string "class" anywhere in the mofRadek Novacek2013-10-221-2/+2
| | | | | This ugly workaround allows to have "class" string in the Description qualifier.
* Fixed sending of indications.Jan Safranek2013-10-221-2/+2
|
* Increase verbosity of logged exceptions.Jan Safranek2013-10-221-2/+2
| | | | There is too much noise in TRACE_VERBOSE and exception stack trace is more important than e.g. entering/leaving messages.
* Fix some compilation warnings and coverity issuesRadek Novacek2013-10-224-5/+7
|
* Do not depend on installed openlmi-providers.Jan Safranek2013-10-212-4/+4
|
* Update spec file with the new documentation structure.Jan Safranek2013-10-211-12/+25
|
* Fix Fan documentation title.Jan Safranek2013-10-211-2/+2
|
* Update README with missing providers.Jan Safranek2013-10-211-0/+22
|
* Update gendoc tool for the new documentation structure.Jan Safranek2013-10-213-32/+18
|
* Rework documentation.Jan Safranek2013-10-1877-4019/+237
| | | | | | | | | | - 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.
* software: Fix doc theme pathTomas Bzatek2013-10-181-1/+1
| | | | A fallout from commit b60cd25e366d
* journald: Add documentationTomas Bzatek2013-10-188-3/+586
|
* journald: Rename common test module to prevent conflictTomas Bzatek2013-10-184-3/+3
| | | | When running nosetest over all tests, modules having same name are not re-imported.
* spec: install fan documentationMichal Minar2013-10-181-15/+26
|
* fan: added documentationMichal Minar2013-10-187-0/+690
|
* extended gitignoreMichal Minar2013-10-181-0/+2
|
* software: make the admin documentation the same wayMichal Minar2013-10-1814-7/+9
| | | | | | Let's not deviate from other providers by having '_build' directory. Also moved the sources to source directory - just like the other providers.
* software: decorate function correctlyMichal Minar2013-10-183-6/+8
| | | | | | | Preserve the attributes of function being wrapped when creating a wrapper in decorator. Also removed redundant logging.
* python: correctly create function wrappersMichal Minar2013-10-181-0/+2
| | | | | | 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.