~rackspace-titan/glance/glance-clear-lp766295

« back to all changes in this revision

Viewing changes to tests/unit/test_registry_api.py

  • Committer: jaypipes at gmail
  • Date: 2011-01-28 20:11:45 UTC
  • mfrom: (55.1.1 glance)
  • Revision ID: jaypipes@gmail.com-20110128201145-fijtr7qpffk79ym2
Merge bexar trunk final changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
2
 
3
 
# Copyright 2010 OpenStack, LLC
 
3
# Copyright 2010-2011 OpenStack, LLC
4
4
# All Rights Reserved.
5
5
#
6
6
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
80
80
                   'name': 'fake image #2',
81
81
                   'is_public': True,
82
82
                   'type': 'kernel',
83
 
                   'status': 'active'
 
83
                   'status': 'active',
84
84
                  }
85
85
        req = webob.Request.blank('/images/detail')
86
86
        res = req.get_response(server.API())
97
97
        """Tests that the /images POST registry API creates the image"""
98
98
        fixture = {'name': 'fake public image',
99
99
                   'is_public': True,
100
 
                   'type': 'kernel'
 
100
                   'type': 'kernel',
101
101
                  }
102
102
 
103
103
        req = webob.Request.blank('/images')
126
126
                   'name': 'fake public image',
127
127
                   'is_public': True,
128
128
                   'type': 'kernel',
129
 
                   'status': 'bad status'
 
129
                   'status': 'bad status',
130
130
                  }
131
131
 
132
132
        req = webob.Request.blank('/images')
143
143
    def test_update_image(self):
144
144
        """Tests that the /images PUT registry API updates the image"""
145
145
        fixture = {'name': 'fake public image #2',
146
 
                   'type': 'ramdisk'
 
146
                   'type': 'ramdisk',
147
147
                  }
148
148
 
149
149
        req = webob.Request.blank('/images/2')
167
167
                   'name': 'fake public image',
168
168
                   'is_public': True,
169
169
                   'type': 'kernel',
170
 
                   'status': 'bad status'
 
170
                   'status': 'bad status',
171
171
                  }
172
172
 
173
173
        req = webob.Request.blank('/images/3')