| 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
|
|
|
|
|
| |
There is no inspect.callargs there, so we must assume that 'async' is in
kwargs.
|
|
|
|
|
|
| |
There is no inspect.callargs there. As a simple workaround, 'job' must be
the first parameter in decorated method.
|
|
|
|
|
| |
- use correct config file path
- read correct config file item
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
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
|
|
|
|
|
|
| |
* peak() method used to lock wrong mutex, which could cause a deadlock.
* pop_reply() method could block if non-blocking access had been requested.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
Environment needs to be propagated to factory function of CIMError when
error occurs while handling asynchronous job.
Resolves: rhbz#1043243
|
|
|
|
|
| |
Packages with empty source tarballs failed to build on rhel7. Added
empty readmes to previously empty packages to fix it.
|
|
|
|
|
|
|
|
|
|
|
| |
In some rare cases, digest algorithm is not set in rpm packages (happens
on rhel7). Try to deduce it from hash digest stored for installed files
and fallback to some sane default.
In case it's not set, package use md5 digest algorithm for its files.
Provider failed to generate it correctly. The Checksum was doubled.
Resolves: rhbz#1032590
|
|
|
|
|
|
|
|
| |
get_target_operating_system returns a tuple which can not be equal to
integer. Due to this error, GetInstance() call failed on on
LMI_SoftwareIdentityFileCheck objects on rhel7.
Resolves: rhbz#1032590
|
|
|
|
|
|
| |
This should belong in commit 2b22e29 that reworked job handling.
Resolves: rhbz#1039018
|
|
|
|
|
| |
$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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There was a serious flaw in previous object model. JobManager was a
thread spawned from inside of separated YumWorker process. Meanwhile
IndicationManager was spawned in provider process which is correct
otherwise it coult not send indications through broker.
The problem is that JobManager needs to create indications and access
IndicationManager. But they were in different processes.
JobManager worked with static data duplicated from provider process when
the worker process has been forked. Therefor all subscriptions and
indication enablement made after the worker processed has been
created did not affect jobmanager.
For some unknown reasons this could also cause a segfault to worker
process when creating indications that were sent to provider process.
This patch shuffles classes a bit:
* JobManager is spawned as a thread in provider process by YumDB.
* JObManager spawns its own SessionManager that is a wrapper for
YumWorker process
* SessionManager is a thread running in provider's process. It
manages worker process and ensures that yum database is locked when
there is an active session.
* YumWorker does not spawn any other process. It processes jobs one by
one.
Resolves: #1039018
|
|
|
|
|
|
|
|
|
| |
When available packages were searched, they were all treated as not
installed. Yum uses two different classes to represent installed and
available packages and the same package may instantiated from both of
them.
Resolves: #1039025
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
CIM_ERR_NOT_FOUND shall be raised when objectpath of invoked method does
not refer to existing repository. CIM_ERR_FAILED was raised instead
which is unhelpful.
Resolves: rhbz#1036291
|
|
|
|
|
|
|
|
| |
This fix repairs previous patch trying to speed up generating of
software identities associated with software collection through
LMI_MemberOfSoftwareCollection.
Resolves: rhbz#1035328
|
|
|
|
|
|
| |
LMI_SoftwareInstallationService passed incorrect value in InstanceID
property. Value should contain the whole class name, not shortened
version.
|
|
|
|
|
| |
This patch adds test modul for LMI_InstallationServiceAffectsElement
association class.
|
|
|
|
|
|
|
|
|
|
|
| |
LMI_SoftwareInstallationServiceAffectsElement association class
generated just the newest available packages. With this patch, all
available packages are generated.
When generating associators of installation service ComputerSystem
instance was omitted. This patch adds it to generated items.
Resolves: rhbz#1034698
|
|
|
|
|
|
| |
Software tests now create custom testing repositories and packages.
This makes them more robust and efficient (nothing needs to be
downloaded).
|
|
|
|
|
|
|
|
|
|
| |
Associators generator of LMI_MemberOfSoftwareCollection is broken. It
adds Collection property to genereted instance names of
LMI_SoftwareIdentity. Moreover its very slow if instances are requested.
This patch removes superfluous key property and adds optimizations
reducing its execution time to seconds.
Resolves: rhbz#1035328
|
|
|
|
|
|
|
|
|
|
| |
Associators generator of LMI_SoftwareIdentityServiceAffectsElement is
broken. It generates only CIM_ComputerSystem, not any
LMI_SoftwareIdentity instance. And if it did, it would be too slow (tens
of minutes). This patch allows software identities to be generated and
adds optimizations reducing its execution time to seconds.
Resolves: rhbz#1034698
|
|
|
|
|
|
|
| |
Enumeration of LMI_SoftwareInstallationServiceAffectsElement did not
work. Provider would hang indefinitely.
Resolves: rhbz#1034615
|
|
|
|
|
| |
Rpm database stores raw device number that needs to be compared with
st_rdev attribute of stat object, not the st_dev one.
|
|
|
|
|
|
|
|
| |
Due to a failure in handling request for instance of
LMI_SoftwareIdentityFileCheck representing non-existent file, a
CIM_ERR_FAILED was delivered to client instead of CIM_ERR_NOT_FOUND.
Resolves: rhbz#1032502
|