summaryrefslogtreecommitdiffstats
path: root/src/software/test
Commit message (Collapse)AuthorAgeFilesLines
...
* software: be more tolerant when checking SystemNameMichal Minar2013-07-236-7/+7
| | | | | | | Allow hostname aliases and fully qualified domain names in properties like SystemName. Modified tests accordingly.
* software: do not check symlink's file mode in testsMichal Minar2013-07-101-3/+4
|
* software: fixed test of LMI_InstalledSoftwareIdentityMichal Minar2013-07-101-1/+1
|
* software: don't use some packages for dangerous testsMichal Minar2013-07-101-1/+5
|
* renamed openlmi namespace to lmiMichal Minar2013-07-041-1/+1
| | | | | To comply with lmi shell, which is placed in *lmi* package, and to make our imports shorter, we are renaming *openlmi* namespace to *lmi*.
* small software test improvementsMichal Minar2013-07-042-8/+4
|
* fixed RequestStateChange of LMI_SoftwareIdentityResourceMichal Minar2013-07-043-10/+68
| | | | added test for this method
* added tests for SoftwareIdentityFileCheckMichal Minar2013-07-031-8/+8
|
* added tests for SoftwareIdentityChecksMichal Minar2013-07-031-0/+144
|
* added tests for SoftwareIdentityFileCheckMichal Minar2013-07-033-3/+467
|
* added LMI_ to classnames prefix for to key propertiesMichal Minar2013-04-117-23/+23
| | | | | | | | | | | previous pattern of key properties: LMI:ShortClassName:* replaces with LMI:FullClassName:* where FullClassName = "LMI_" + ShortClassName
* marked two tests as dangerousMichal Minar2013-03-261-0/+2
|
* various enhancementsMichal Minar2013-03-211-2/+1
| | | | | | | | | | | | | | consistent access to Package's version and release attributes - all 'ver' and 'rel' replaced to full names added tracing decorators to some functions providers having Values class under core subpackage now reference it with self.values property Identity.pkg2model now accepts also nevra as string removed tabs in source code
* Merge remote-tracking branch 'origin/master' into software-smashMichal Minar2013-03-2014-17/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/software/cli/software.py src/software/openlmi/__init__.py src/software/openlmi/software/LMI_HostedSoftwareIdentityResource.py src/software/openlmi/software/LMI_SoftwareFileCheck.py src/software/openlmi/software/LMI_SoftwareInstalledPackage.py src/software/openlmi/software/LMI_SoftwarePackage.py src/software/openlmi/software/__init__.py src/software/openlmi/software/cimom_entry.py src/software/openlmi/software/core/ComputerSystem.py src/software/openlmi/software/core/SoftwareFileCheck.py src/software/openlmi/software/core/SoftwareInstalledPackage.py src/software/openlmi/software/core/SoftwarePackage.py src/software/openlmi/software/core/SoftwarePackageChecks.py src/software/openlmi/software/core/__init__.py src/software/openlmi/software/util/__init__.py src/software/openlmi/software/yumdb/__init__.py src/software/openlmi/software/yumdb/errors.py src/software/openlmi/software/yumdb/jobs.py src/software/openlmi/software/yumdb/packagecheck.py src/software/openlmi/software/yumdb/packageinfo.py src/software/openlmi/software/yumdb/process.py src/software/test/base.py src/software/test/rpmcache.py src/software/test/run.py src/software/test/test_software_file_check.py src/software/test/test_software_installed_package.py src/software/test/test_software_package.py
| * Happy New Year! (better later than never)Jan Synacek2013-03-136-6/+6
| |
* | happy new yearMichal Minar2013-03-2014-14/+14
| | | | | | | | welcome 2013! in our source code
* | changed LMI:* prefixes in key propertiesMichal Minar2013-03-205-20/+21
| | | | | | | | to avoid id collisions with other OpenLMI classes
* | added new providers, allowed for asynchronous jobsMichal Minar2013-03-202-6/+19
| | | | | | | | | | | | new providers: LMI_SoftwareInstallationJob LMI_SoftwareInstallationService
* | added association providers for SoftwareIdentityResourceMichal Minar2013-03-042-0/+341
| | | | | | | | simplified writing references() method of any association provider
* | lot of bugfixes in communicationMichal Minar2013-02-265-71/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | communication: * now the client can detect YumWorker's early termination and restart it * session level is counted on client and server side - this allows to restore session state, when process is restarted * minimized session nesting on server to 1 at max - thanks to counter on client side - reduces communication traffic * improved logging api changes: * PackageInfo's pkgid renamed to objid * Repository's name renamed to repoid caption renamed to name * added include_repos and exclude_repos to YumDB methods, where it makes sense other bugfixes: * fixed issues with repo enable * assigning None to Instance properties with CIMProperty values instead of skipping the value assignment to prevent using old reference to value allowed for repository management - enable/disable allowed to list/filter packages of particular repositories added filter for packages to match those belonging to repository testing: * improved testing speed using run.py script * removed unfinishable tests
* | added LMI_SoftwareIdentityResource providerMichal Minar2013-02-184-11/+440
| | | | | | | | now it's possible to list and manage repositories
* | new association provider LMI_InstalledSoftwareIdentityMichal Minar2013-02-131-0/+255
| |
* | initial phase of rewrite for SMASH profileMichal Minar2013-02-1312-1308/+1070
|/ | | | | currently only a subset of Software Inventory profile is supported * listing available packages
* rewritten for safe execution of transactionsMichal Minar2013-02-046-59/+157
| | | | | | | | | | | | | | | | | | | | | | | Made separate process openlmi.software.yumdb.process.YumWorker for calls to yum API. Its client openlmi.software.yumdb.YumDB communicates with it via synchronnous queues - uplink and downlink. Resolves: #63 in openlmi trac -- yum API not useable, while changing thread_id) Resolves: #33 in openlmi trac -- Install/remove package Common functionality of providers moved under openlmi.software.core subpackage to make them easily accessible from other providers without cyclic dependencies. Improved logging with cmpi_logging module. openlmi.software.cimom_entry module now is the only module loadable by cmpi-bindings. It sets up providers and maps them by their name. New subpackages: openlmi.software.core openlmi.software.yumdb
* fixed test selection, when launching tests with runMichal Minar2012-12-136-247/+496
| | | | | | | | | | | | | | | | 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
* more software test bugfixesMichal Minar2012-12-111-2/+4
| | | | | * handle '*' in yum repolist * select pkg database from 5 times required number of packages
* fixed tests for f18 an RHEL7Michal Minar2012-12-112-22/+72
|
* comply with nosetests rulesMichal Minar2012-12-073-10/+10
| | | | | all methods, functions and modules including 'test' in their name and not intended to be run by nosetests renamed
* non-ascii char appeared in commentMichal Minar2012-12-071-1/+1
| | | | fixed syntax error
* rewritten tests for software managementMichal Minar2012-12-077-339/+1195
| | | | | | | | | 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.
* fixed most of pylint errorsMichal Minar2012-11-291-3/+3
| | | | | | | | | 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
* Relicence all sources from GPLv2+ to LGPLv2+0.0.15Radek Novacek2012-11-124-0/+77
|
* modified for used under tog-pegasusMichal Minar2012-10-241-8/+8
| | | | | | | | | | | | 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
* renamed yum package providers to softwareMichal Minar2012-10-105-0/+733
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