~landscape/landscape-client/landscape-client-12.05-0ubuntu1-quantal

« back to all changes in this revision

Viewing changes to landscape/package/tests/test_store.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2010-07-28 08:14:02 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20100728081402-2ygupluqwc2bbe8j
Tags: 1.5.4-0ubuntu0.10.10.0
* New upstream version (LP: #610744):

  - The Eucalyptus management plugin reports the output of the
    'euca-describe-availability-zones verbose' command, which includes
    information about the available instance types and the maximum
    number of each instance type that the cloud can support (LP: #599338)

  - Check if the package directory exists before trying to check the
    package changer lock in the dbus-proxy. This fixes a bug when upgrading
    a dbus-landscape which never registered (LP: #603514).

  - Allow an LDS server to bootstrap new cloud instances with its own CA,
    which is picked up by the client, written to a file on the instance, and
    used in subsequent exchanges with the server (LP: #605079).

  - Skip loopback interface when reporting device info (LP: #608314)

  - Disable landscape-sysinfo when load is more than 1 (LP: #608278)

Show diffs side-by-side

added added

removed removed

Lines of Context:
487
487
    def test_iter_hash_id_requests(self):
488
488
        hashes1 = ["ha\x00sh1", "ha\x00sh2"]
489
489
        hashes2 = ["ha\x00sh3", "ha\x00sh4"]
490
 
        request1 = self.store1.add_hash_id_request(hashes1)
491
 
        request2 = self.store1.add_hash_id_request(hashes2)
 
490
        self.store1.add_hash_id_request(hashes1)
 
491
        self.store1.add_hash_id_request(hashes2)
492
492
        hashes = [hash for request in self.store2.iter_hash_id_requests()
493
493
                       for hash in request.hashes]
494
494
        self.assertEquals(hashes, hashes1 + hashes2)
603
603
        self.mocker.replay()
604
604
 
605
605
        try:
606
 
            task1 = self.store1.add_task("reporter", [1])
607
 
            task2 = self.store1.add_task("reporter", [2])
 
606
            self.store1.add_task("reporter", [1])
 
607
            self.store1.add_task("reporter", [2])
608
608
 
609
609
            task = self.store2.get_next_task("reporter")
610
610
            self.assertEquals(task.timestamp, 111)