/opt/imh-python/lib/python3.9/site-packages/openstack/tests/functional/network/v2
NameSizeModeActions
__pycache__/-0755rm
test_address_scope.py23420644editdlrm
test_agent.py16410644editdlrm
test_agent_add_remove_network.py21100644editdlrm
test_agent_add_remove_router.py18150644editdlrm
test_auto_allocated_topology.py24410644editdlrm
test_availability_zone.py9890644editdlrm
test_dvr_router.py19460644editdlrm
test_extension.py10650644editdlrm
test_firewall_group.py19090644editdlrm
test_firewall_policy.py19220644editdlrm
test_firewall_rule.py26590644editdlrm
test_firewall_rule_insert_remove_policy.py39360644editdlrm
test_flavor.py29080644editdlrm
test_floating_ip.py74890644editdlrm
test_network.py31740644editdlrm
test_network_ip_availability.py27500644editdlrm
test_network_segment_range.py41330644editdlrm
test_port.py33810644editdlrm
test_port_forwarding.py71680644editdlrm
test_qos_bandwidth_limit_rule.py39800644editdlrm
test_qos_dscp_marking_rule.py30510644editdlrm
test_qos_minimum_bandwidth_rule.py33960644editdlrm
test_qos_policy.py29140644editdlrm
test_qos_rule_type.py13080644editdlrm
test_quota.py15270644editdlrm
test_rbac_policy.py21670644editdlrm
test_router.py23100644editdlrm
test_router_add_remove_interface.py27740644editdlrm
test_security_group.py22510644editdlrm
test_security_group_rule.py26050644editdlrm
test_segment.py38510644editdlrm
test_service_profile.py25270644editdlrm
test_service_provider.py9260644editdlrm
test_subnet.py35200644editdlrm
test_subnet_from_subnet_pool.py30740644editdlrm
test_subnet_pool.py35300644editdlrm
test_trunk.py33400644editdlrm
__init__.py00644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/openstack/tests/functional/network/v2/test_quota.py (1527B)
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from openstack.tests.functional import base class TestQuota(base.BaseFunctionalTest): def test_list(self): for qot in self.conn.network.quotas(): self.assertIsNotNone(qot.project_id) self.assertIsNotNone(qot.networks) def test_list_details(self): expected_keys = ['limit', 'used', 'reserved'] project_id = self.conn.session.get_project_id() quota_details = self.conn.network.get_quota(project_id, details=True) for details in quota_details._body.attributes.values(): for expected_key in expected_keys: self.assertTrue(expected_key in details.keys()) def test_set(self): attrs = {'networks': 123456789} for project_quota in self.conn.network.quotas(): self.conn.network.update_quota(project_quota, **attrs) new_quota = self.conn.network.get_quota(project_quota.project_id) self.assertEqual(123456789, new_quota.networks)