~ethuleau/nova/lp824433

« back to all changes in this revision

Viewing changes to nova/tests/test_cloud.py

  • Committer: Tarmac
  • Author(s): Brian Waldon
  • Date: 2011-09-01 17:54:52 UTC
  • mfrom: (1508.4.4 changes-since-lp837405)
  • Revision ID: tarmac-20110901175452-bc0key3jekoksnpf
- implements changes-since for servers resource
- default sort is now created_at desc for instances

Show diffs side-by-side

added added

removed removed

Lines of Context:
486
486
        inst2 = db.instance_create(self.context, args2)
487
487
        db.instance_destroy(self.context, inst1.id)
488
488
        result = self.cloud.describe_instances(self.context)
489
 
        result = result['reservationSet'][0]['instancesSet']
490
 
        self.assertEqual(result[0]['instanceId'],
 
489
        result1 = result['reservationSet'][0]['instancesSet']
 
490
        self.assertEqual(result1[0]['instanceId'],
 
491
                         ec2utils.id_to_ec2_id(inst1.id))
 
492
        result2 = result['reservationSet'][1]['instancesSet']
 
493
        self.assertEqual(result2[0]['instanceId'],
491
494
                         ec2utils.id_to_ec2_id(inst2.id))
492
495
 
493
496
    def _block_device_mapping_create(self, instance_id, mappings):