| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| | |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|\| |
|
| |
| |
| |
| |
| |
| | |
Effectively it means this allows to remove user from group
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
particular tests can be selected like this:
* # runs all tests defined by this test case
./run.py -- TestSoftwarePackage
* # runs single test defined by TestSoftwarePackage TestCase
./run.py -- TestSoftwarePackage.test_get_instance
added comments for each assert
made results of tests a lot more readable
different file mode for symlinks passes like in rpm -V
increased number of packages for testing to 5
|
|/
|
|
|
| |
* handle '*' in yum repolist
* select pkg database from 5 times required number of packages
|
| |
|
|
|
|
|
| |
all methods, functions and modules including 'test' in their name
and not intended to be run by nosetests renamed
|
|
|
|
| |
fixed syntax error
|
|
|
|
|
| |
Wrong package could be selected for update due to wrong sorting
mechanism.
|
|
|
|
|
|
|
|
|
| |
All tests are invocable from single script called "run_tests.py" and
as standalone-modules as well.
Its behaviour is modifiable through environment variables according
to TestGuidelines. run_tests.py can be passed arguments instead.
Package database is not fixed anymore. Instead it's generated
automatically for system, where tests are triggered.
|
|
|
|
|
|
|
|
|
| |
also modified mof, so it's better parseable
greatly reduced pylint errors and warnings
LMI_SoftwareInstalledPackage now returns reference to
Linux_ComputerSystem instead of CIM_ComputerSystem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pylintlmi uses pylint (python source code checking utility)
- giving it custom configuration for openlmi project and
plugins with additional checks
for usage see src/software/README
renamed directory "src/software/providers" to
"src/software/openlmi/software"
* allows installation to custom PYTHONPATH together with openlmi-python egg
* that also allows running pylint on sources in devel directory without
messages like:
W0403: 28,0: Relative import 'openlmi.software.core', should be
'openlmi.software.openlmi.software.core'
E0611: 28,0: No name 'software' in module 'openlmi'
F0401: 28,0: Unable to import 'openlmi.software.core'
|
|
|
|
|
| |
- Use popen instead evil tmpnam in service enumeration functions.
- Pass service name to systemctl after a "--" argument list terminator.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This is aimed to be a common package for all openlmi python providers.
It allows using fully-qualified imports in provider source packages.
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Checkum property of LMI_SoftwareFileCheck had different type than
in base class. This prevented registration.
- Solved by renaming:
Checksum -> FileChecksum
ExpectedChecksum -> ExpectedFileChecksum
ChecksumType -> FileChecksumType
fixed filtering of found available and installed packages
- search by nevra replaced with search for particular keys
|
| |
|
| |
|
|
|
|
|
| |
corrected some corner cases, when getting/modifying instance with
wrong or missing keys
|
|\ |
|
| |
| |
| |
| | |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
| |
| |
| |
| | |
bumped version
|
|/
|
|
|
|
|
|
|
|
| |
renamed LMI_Yum* to LMI_Software*
removed attributes GroupString and LicenseString from LMI_SoftwarePackage
modified attributes Group, Architecture and License of
LMI_SoftwarePackage to return string instead of Uints
- because values and valuemaps would need frequent updates
|
|
|
|
|
|
| |
in such case epoch is assumed to be 0
bumped Yum version
|
|
|
|
|
|
|
|
|
| |
currently testing data are suitable only for Fedora 17
added README for tests
lot of bug fixes
support for Remove method in LMI_YumPackage provider
|
|
|
|
|
| |
made more generic checking of System property of
YumInstalledPackage object paths
|
| |
|
| |
|
|
|
|
|
|
|
| |
added LMI_YumPackageFile as association between LMI_YumPackage
and LMI_FileCheck
using overrides in mof
|
|
|
|
|
|
|
|
|
|
|
|
| |
enumerating YumPackage now yields all available packages
- removed update, delete and check_integrity methods
- added Install method
- SoftwareElementState now equals to:
1 ("Installable") - for not installed and available package
2 ("Executable") - for installed package
enumerating YumInstalledPackage now yields all installed packages
- added update, delete and check_integrity methods
|
| |
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
|
|
|
| |
So far only possible to change GECOS record (ElementName), home directory,
login shell and password.
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
| |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
|
|
|
| |
I decided to not follow the DMTF Standard strictly here.
Rather than using embedded instance I use several parameters.
Signed-off-by: Roman Rakus <rrakus@redhat.com>
|
|
|
|
|
| |
If CuraMacros are used by different provider it needs to change location
where the .reg is installed.
|
|
|
|
|
| |
Add missing methods to fix undefined references. All of the methods
return NOT_SUPPORTED error
|