diff options
author | Michal Minar <miminar@redhat.com> | 2013-02-26 14:41:18 +0100 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-02-26 14:41:18 +0100 |
commit | 282aa360c1ab3c58622d9e284bb0b3600e8997b4 (patch) | |
tree | dc1e102c42e06596b7f09433cbfec7c1261809e9 /src/software/test/test_hosted_software_collection.py | |
parent | 4214208d559ed88f3b29bc046d4679824bf5faa7 (diff) | |
download | openlmi-providers-282aa360c1ab3c58622d9e284bb0b3600e8997b4.tar.gz openlmi-providers-282aa360c1ab3c58622d9e284bb0b3600e8997b4.tar.xz openlmi-providers-282aa360c1ab3c58622d9e284bb0b3600e8997b4.zip |
lot of bugfixes in communication
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
Diffstat (limited to 'src/software/test/test_hosted_software_collection.py')
-rwxr-xr-x | src/software/test/test_hosted_software_collection.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/software/test/test_hosted_software_collection.py b/src/software/test/test_hosted_software_collection.py index bdac158..365fd5d 100755 --- a/src/software/test/test_hosted_software_collection.py +++ b/src/software/test/test_hosted_software_collection.py @@ -124,16 +124,14 @@ class TestHostedSoftwareCollection(base.SoftwareBaseTestCase): Test ReferenceNames for ComputerSystem. """ objpath = self.make_op() - refs = self.conn.ReferenceNames( + refs = self.conn.AssociatorNames( Role="Antecedent", - ObjectName=objpath["Antecedent"]) - self.assertGreater(len(refs), 0) - refs = [ r for r in refs if "Dependent" in r - and r["Dependent"].classname == \ - "LMI_SystemSoftwareCollection" ] - self.assertEqual(1, len(refs)) + ObjectName=objpath["Antecedent"], + ResultRole="Dependent", + ResultClass='LMI_SystemSoftwareCollection') + self.assertEqual(len(refs), 1) ref = refs[0] - self.assertEqual(ref, objpath) + self.assertEqual(objpath["Dependent"], ref) @base.mark_dangerous def test_get_dependent_referents(self): |