summaryrefslogtreecommitdiffstats
path: root/src/software/test
Commit message (Collapse)AuthorAgeFilesLines
* Uninstall 'unicode-chars' package in test_enum_instance_names test.Jan Safranek2014-04-181-0/+1
| | | | | | The package is installed by TestSoftwareIdentityChecks.test_package_file_checks_unicode and can make the test fail.
* Don't use epoch for 'rpm -q' or '-e'.Jan Safranek2014-04-181-15/+25
| | | | Older rpm doesn't support it.
* Don't require the openlmi-software package installed.Jan Safranek2014-04-181-1/+0
| | | | We want to run tests also from git checkout.
* Use unittest2 on Python 2.6Jan Safranek2014-04-1815-22/+18
|
* User 'yum repolist -v' instead of 'yum repoinfo'.Jan Safranek2014-04-181-3/+3
| | | | | yum repoinfo is available only in newer yum. Surprisingly, they habe the same output.
* Use proper paths for various tools.Jan Safranek2014-04-184-8/+8
|
* Port tests to Python 2.6Jan Safranek2014-04-188-41/+51
| | | | | | | - replace various dictionary/set comprehensions - re-implement subprocess.check_output() - use optparse
* python 2.6 compatibility. fix conversion of string into character set error.Ales Ledvinka2014-04-153-25/+25
|
* python2.6 support, review comment performance of set([])Ales Ledvinka2014-04-143-36/+36
|
* software: added tests for non-ascii charactersMichal Minar2014-01-243-46/+180
| | | | Test that unicode characters work at least for package files.
* Updated copyright yearsPeter Schiffer2014-01-1619-19/+19
| | | | Updated copyright years to include new year 2014.
* software: SoftwareIdentityFileCheck test fixesMichal Minar2014-01-091-0/+3
| | | | | Under some environments umask may be set to 0077 which caused unexpected results in tests. File mode checks did not pass.
* tests: ensure the use of exceptions is well definedMichal Minar2014-01-081-0/+1
| | | | | | | | | | | | | | | 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
* software: test improvementsMichal Minar2014-01-069-24/+45
| | | | | | | | | | * 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.
* software: fixed tests behaviour under nosetestsMichal Minar2013-12-191-13/+13
| | | | | | | | | | | | 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.
* software: test fixesMichal Minar2013-12-192-2/+9
| | | | | | | | | | * 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.
* software: added test for SoftwareInstallationServiceMichal Minar2013-12-191-0/+20
| | | | | It checks, that error description is retrievable when the asynchronous job fails to execute.
* software: test fixes and improvementsMichal Minar2013-12-173-11/+11
| | | | | | | | 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.
* software: fix tests for rhel7Michal Minar2013-12-171-3/+28
| | | | | Packages with empty source tarballs failed to build on rhel7. Added empty readmes to previously empty packages to fix it.
* software: fixed tests for rhel7Michal Minar2013-12-131-1/+2
| | | | | $RPM_BUILD_DIR is not created before %install phase on rhel7. It needs to be done explicitly.
* software: added tests for software installation serviceMichal Minar2013-12-121-1/+171
| | | | Test installation, removal and updating of rpm packages.
* software: improved association testMichal Minar2013-12-121-5/+23
| | | | | Assert that InstallDate is filled properly for available packages that are installed.
* software: test improvementsMichal Minar2013-12-127-78/+156
| | | | | Speeded up test initialization and cleanup. Use as few calls to subprocesses as possible.
* software: added another QA testsMichal Minar2013-12-123-0/+401
| | | | | | This is a collective work of Jan Grec and Michal Minar. Added tests for LMI_SoftwareInstallationService. Added tests for software provider as a whole.
* Software: Tests reorganization and fixes.Robin Hack2013-12-103-1/+145
|
* software: minor test enhancementsMichal Minar2013-12-026-8/+27
| | | | | | | | | | | 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.
* software: added test for installation service associationMichal Minar2013-11-291-0/+350
| | | | | This patch adds test modul for LMI_InstallationServiceAffectsElement association class.
* software: rewritten testsMichal Minar2013-11-2919-1740/+3404
| | | | | | Software tests now create custom testing repositories and packages. This makes them more robust and efficient (nothing needs to be downloaded).
* software: fixed returned value of tests runnerMichal Minar2013-11-071-1/+1
| | | | | 0 shall be returned on successful run of tests and 1 otherwise. Not the other way round.
* software: optimalize testsMichal Minar2013-11-071-1/+1
| | | | Limit number of randomly selected packages to speed up tests.
* 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.
* 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.
* 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.
* 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.
* minor test improvementsMichal Minar2013-10-2414-13/+26
|
* software: Use LANG=C when calling yum repoinfoRadek Novacek2013-10-171-1/+1
| | | | | Big number are displayed as 12,345 which breaks the parsing, with LANG=C they're displayed as 12345 and parsed correctly.
* Use PG_ComputerSystem by default.Jan Safranek2013-10-096-15/+15
| | | | | | | 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...
* software: url check fix in testMichal Minar2013-10-041-3/+3
| | | | Let's ignore trailing slashes when comparing repository urls.
* software: speeded up testsMichal Minar2013-10-046-0/+12
| | | | | Added AssocClass property to Associator(Name)?s calls which limits the number of association classes being enumerated by cimom to 1.
* software: fix test for SoftwareIdentityResourceMichal Minar2013-08-081-10/+22
| | | | | If the repository is enabled, expect repository to be ready. If disabled, allow both OK and Failed states.
* let's not assume AccessInfo to be filledMichal Minar2013-08-081-3/+4
| | | | test fix
* software: allow duplicate entries in repository configsMichal Minar2013-08-081-2/+5
| | | | test fix
* software fix test of Invoke() methodMichal Minar2013-07-292-2/+6
| | | | | Make sure, that tested package is installed and passes rpm verification test before its checked by our provider.
* removed test for enumeration of software identitiesMichal Minar2013-07-291-38/+0
| | | | | EnumInstance(Names)s call is not supported for software identities, let's not test it.
* software: added doc strings; spaces, be goneMichal Minar2013-07-231-1/+1
| | | | removed spaces at the end of lines
* software: test fixesMichal Minar2013-07-231-0/+3
| | | | let's not presume, that package has any files