~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/tests/api/openstack/compute/test_extensions.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-24 13:12:53 UTC
  • mfrom: (1.1.55)
  • Revision ID: package-import@ubuntu.com-20120524131253-ommql08fg1en06ut
Tags: 2012.2~f1-0ubuntu1
* New upstream release.
* Prepare for quantal:
  - Dropped debian/patches/upstream/0006-Use-project_id-in-ec2.cloud._format_image.patch
  - Dropped debian/patches/upstream/0005-Populate-image-properties-with-project_id-again.patch
  - Dropped debian/patches/upstream/0004-Fixed-bug-962840-added-a-test-case.patch
  - Dropped debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch
  - Dropped debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch
  - Dropped debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch 
  - Dropped debian/patches/0001-fix-useexisting-deprecation-warnings.patch
* debian/control: Add python-keystone as a dependency. (LP: #907197)
* debian/patches/kombu_tests_timeout.patch: Refreshed.
* debian/nova.conf, debian/nova-common.postinst: Convert to new ini
  file configuration
* debian/patches/nova-manage_flagfile_location.patch: Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import json
20
20
 
 
21
import iso8601
 
22
from lxml import etree
21
23
import webob
22
 
from lxml import etree
23
24
 
24
25
from nova.api.openstack import compute
 
26
from nova.api.openstack.compute import extensions as compute_extensions
25
27
from nova.api.openstack import extensions as base_extensions
26
 
from nova.api.openstack.compute import extensions as compute_extensions
27
28
from nova.api.openstack import wsgi
28
29
from nova.api.openstack import xmlutil
29
30
from nova import flags
30
31
from nova import test
31
32
from nova.tests.api.openstack import fakes
 
33
from nova import utils
32
34
 
33
35
FLAGS = flags.FLAGS
34
36
 
173
175
            "Keypairs",
174
176
            "Multinic",
175
177
            "Networks",
 
178
            "QuotaClasses",
176
179
            "Quotas",
177
180
            "Rescue",
178
181
            "SchedulerHints",
179
182
            "SecurityGroups",
180
 
            "ServerActionList",
181
183
            "ServerDiagnostics",
182
184
            "ServerStartStop",
183
185
            "SimpleTenantUsage",
201
203
        names.sort()
202
204
        self.assertEqual(names, self.ext_list)
203
205
 
 
206
        # Ensure all the timestamps are valid according to iso8601
 
207
        for ext in data['extensions']:
 
208
            iso8601.parse_date(ext['updated'])
 
209
 
204
210
        # Make sure that at least Fox in Sox is correct.
205
211
        (fox_ext, ) = [
206
212
            x for x in data['extensions'] if x['alias'] == 'FOXNSOX']