~hopem/charms/trusty/neutron-api/add-configurable-flat-network

« back to all changes in this revision

Viewing changes to unit_tests/test_neutron_api_context.py

  • Committer: Liam Young
  • Date: 2015-03-12 09:01:12 UTC
  • mfrom: (73.3.6 neutron-api)
  • Revision ID: liam.young@canonical.com-20150312090112-o13qaobqvsqbajkv
[xtrusia, r=gnuoy] Add neutron quota support

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
            'verbose': True,
158
158
            'l2_population': True,
159
159
            'overlay_network_type': 'gre',
 
160
            'quota_floatingip': 50,
 
161
            'quota_health_monitors': -1,
 
162
            'quota_member': -1,
 
163
            'quota_network': 10,
 
164
            'quota_pool': 10,
 
165
            'quota_port': 50,
 
166
            'quota_router': 10,
 
167
            'quota_security_group': 10,
 
168
            'quota_security_group_rule': 100,
 
169
            'quota_subnet': 10,
 
170
            'quota_vip': 10,
160
171
        }
161
172
        napi_ctxt = context.NeutronCCContext()
162
173
        with patch.object(napi_ctxt, '_ensure_packages'):
175
186
            'verbose': True,
176
187
            'l2_population': True,
177
188
            'overlay_network_type': 'vxlan',
 
189
            'quota_floatingip': 50,
 
190
            'quota_health_monitors': -1,
 
191
            'quota_member': -1,
 
192
            'quota_network': 10,
 
193
            'quota_pool': 10,
 
194
            'quota_port': 50,
 
195
            'quota_router': 10,
 
196
            'quota_security_group': 10,
 
197
            'quota_security_group_rule': 100,
 
198
            'quota_subnet': 10,
 
199
            'quota_vip': 10,
178
200
        }
179
201
        napi_ctxt = context.NeutronCCContext()
180
202
        with patch.object(napi_ctxt, '_ensure_packages'):