| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The package is installed by
TestSoftwareIdentityChecks.test_package_file_checks_unicode and can make the
test fail.
|
|
|
|
| |
Older rpm doesn't support it.
|
|
|
|
| |
We want to run tests also from git checkout.
|
| |
|
|
|
|
|
| |
yum repoinfo is available only in newer yum. Surprisingly, they habe the
same output.
|
| |
|
|
|
|
|
|
|
| |
- replace various dictionary/set comprehensions
- re-implement subprocess.check_output()
- use optparse
|
| |
|
| |
|
|
|
|
| |
Test that unicode characters work at least for package files.
|
|
|
|
| |
Updated copyright years to include new year 2014.
|
|
|
|
|
| |
Under some environments umask may be set to 0077 which caused
unexpected results in tests. File mode checks did not pass.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some tests expect that exceptions won't be thrown out of LMIShell's
functions. Others prefers them and enable them globally. This causes
problems when running under nosetests all provider tests at once.
Tests that modified enablement of exception throws globally caused
others to fail.
This patch makes sure that each TestCase has defined use of exceptions.
Default state is to have them disabled. If a TestCase prefers having
them enabled, just one variable needs to be overriden in its body:
class AccountBase(lmibase.LmiTestCase):
USE_EXCEPTIONS = True
|
|
|
|
|
|
|
|
|
|
| |
* Suppress warnings when removing testing packages that may have been
modified by finished test. Whe some installed file were missing, rpm
produced ugly warnings and errors.
* Set LC_ALL=C when running yum and parsing its output. Otherwise
numbers get localized, which confuses the parser.
* Allow to run tests from another directory.
* Minor cleanups and docstrings corrections.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test cases under nosetests did not behave well. The part of class setup
method was not called due to faulty checking of test case instantiation.
It caused not-testing repositories to be enabled during running all but
first test.
This patch ensures that all not-testing repositories are disabled during
subsequents test runs.
If anyhing is missing upon intialization, testing database is recreated.
|
|
|
|
|
|
|
|
|
|
| |
* Restore repository, after the test run, only if it was previously
enabled.
* yum-config-manager, which is used to get information about
reporitories, shortens lines on its output when too long. Therefor
repository name can not be checked for exact match against data in
LMI_SoftwareIdentityResource if it is too long.
|
|
|
|
|
| |
It checks, that error description is retrievable when the asynchronous
job fails to execute.
|
|
|
|
|
|
|
|
| |
Fixed package installation tests that did not ensure that particular package is
uninstalled before test begins.
Speeded up test set up phase for TestSoftwareIdentityFileChecks and
TestSoftwareIdentityChecks.
|
|
|
|
|
| |
Packages with empty source tarballs failed to build on rhel7. Added
empty readmes to previously empty packages to fix it.
|
|
|
|
|
| |
$RPM_BUILD_DIR is not created before %install phase on rhel7. It needs
to be done explicitly.
|
|
|
|
| |
Test installation, removal and updating of rpm packages.
|
|
|
|
|
| |
Assert that InstallDate is filled properly for available packages that
are installed.
|
|
|
|
|
| |
Speeded up test initialization and cleanup. Use as few calls to
subprocesses as possible.
|
|
|
|
|
|
| |
This is a collective work of Jan Grec and Michal Minar.
Added tests for LMI_SoftwareInstallationService.
Added tests for software provider as a whole.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Added one test to SoftwareIdentityFileCheck.Invoke() method testing
correct error code.
Renamed testing package pkg1 to pkg2 in misc repository to match its
comment.
Rendering function CIMInstanceNames should behave nicely for
objects of another type and return their text representation.
|
|
|
|
|
| |
This patch adds test modul for LMI_InstallationServiceAffectsElement
association class.
|
|
|
|
|
|
| |
Software tests now create custom testing repositories and packages.
This makes them more robust and efficient (nothing needs to be
downloaded).
|
|
|
|
|
| |
0 shall be returned on successful run of tests and 1 otherwise.
Not the other way round.
|
|
|
|
| |
Limit number of randomly selected packages to speed up tests.
|
|
|
|
|
| |
Skipped two unreliable performed on random packages. This is a temporary
solution.
|
|
|
|
|
| |
TargetOperatingSystem property is tested also in
TestSoftwareIdentityChecks, let's share the code in util module.
|
|
|
|
|
| |
Few tests of LMI_SoftwareIdentityFileCheck are not reliable on randomly
selected package. Let's skip them temporarily.
|
|
|
|
| |
Make sure to check for correct TargetOperatingSystem for rhel.
|
|
|
|
|
| |
Base software tests on LmiTestCase from lmi.test.base. Use lmi.shell
abstractions instead of plain pywbem.
|
|
|
|
| |
Do not use packages related to openlmi and CIM for testing purposes.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Do not presume that any cache is available before call to yum.
If the cache is not there, call fails.
|
| |
|
|
|
|
|
| |
Big number are displayed as 12,345 which breaks the parsing, with LANG=C
they're displayed as 12345 and parsed correctly.
|
|
|
|
|
|
|
| |
And get rid of sblim-cmpi-base dependency.
It would be nice if our tests have an option to select Linux_ComputerSystem
or PG_ComputerSystem in the future...
|
|
|
|
| |
Let's ignore trailing slashes when comparing repository urls.
|
|
|
|
|
| |
Added AssocClass property to Associator(Name)?s calls which limits the
number of association classes being enumerated by cimom to 1.
|
|
|
|
|
| |
If the repository is enabled, expect repository to be ready.
If disabled, allow both OK and Failed states.
|
|
|
|
| |
test fix
|
|
|
|
| |
test fix
|
|
|
|
|
| |
Make sure, that tested package is installed and passes rpm verification
test before its checked by our provider.
|
|
|
|
|
| |
EnumInstance(Names)s call is not supported for software identities,
let's not test it.
|
|
|
|
| |
removed spaces at the end of lines
|
|
|
|
| |
let's not presume, that package has any files
|