python-openstackclient 9.0.0__py3-none-any.whl → 10.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openstackclient/__init__.py +2 -6
- openstackclient/api/api.py +41 -23
- openstackclient/api/compute_v2.py +44 -25
- openstackclient/api/object_store_v1.py +75 -97
- openstackclient/api/volume_v2.py +2 -1
- openstackclient/api/volume_v3.py +2 -1
- openstackclient/common/availability_zone.py +59 -43
- openstackclient/common/clientmanager.py +56 -29
- openstackclient/common/configuration.py +10 -3
- openstackclient/common/envvars.py +2 -2
- openstackclient/common/extension.py +14 -5
- openstackclient/common/limits.py +10 -5
- openstackclient/common/module.py +36 -34
- openstackclient/common/pagination.py +50 -6
- openstackclient/common/progressbar.py +7 -6
- openstackclient/common/project_cleanup.py +11 -6
- openstackclient/common/quota.py +105 -103
- openstackclient/common/versions.py +8 -2
- openstackclient/compute/client.py +7 -3
- openstackclient/compute/v2/agent.py +17 -10
- openstackclient/compute/v2/aggregate.py +36 -22
- openstackclient/compute/v2/console.py +14 -8
- openstackclient/compute/v2/console_connection.py +11 -3
- openstackclient/compute/v2/flavor.py +42 -22
- openstackclient/compute/v2/host.py +14 -6
- openstackclient/compute/v2/hypervisor.py +16 -5
- openstackclient/compute/v2/hypervisor_stats.py +10 -2
- openstackclient/compute/v2/keypair.py +35 -16
- openstackclient/compute/v2/server.py +268 -179
- openstackclient/compute/v2/server_backup.py +10 -4
- openstackclient/compute/v2/server_event.py +28 -12
- openstackclient/compute/v2/server_group.py +23 -11
- openstackclient/compute/v2/server_image.py +19 -10
- openstackclient/compute/v2/server_migration.py +27 -10
- openstackclient/compute/v2/server_share.py +274 -0
- openstackclient/compute/v2/server_volume.py +13 -5
- openstackclient/compute/v2/service.py +17 -8
- openstackclient/compute/v2/usage.py +28 -23
- openstackclient/identity/client.py +8 -3
- openstackclient/identity/common.py +82 -47
- openstackclient/identity/v2_0/catalog.py +14 -7
- openstackclient/identity/v2_0/ec2creds.py +21 -10
- openstackclient/identity/v2_0/endpoint.py +23 -11
- openstackclient/identity/v2_0/project.py +25 -14
- openstackclient/identity/v2_0/role.py +28 -14
- openstackclient/identity/v2_0/role_assignment.py +9 -3
- openstackclient/identity/v2_0/service.py +23 -11
- openstackclient/identity/v2_0/token.py +12 -5
- openstackclient/identity/v2_0/user.py +26 -15
- openstackclient/identity/v3/access_rule.py +32 -12
- openstackclient/identity/v3/application_credential.py +66 -24
- openstackclient/identity/v3/catalog.py +14 -7
- openstackclient/identity/v3/consumer.py +22 -11
- openstackclient/identity/v3/credential.py +39 -17
- openstackclient/identity/v3/domain.py +40 -19
- openstackclient/identity/v3/ec2creds.py +25 -12
- openstackclient/identity/v3/endpoint.py +98 -64
- openstackclient/identity/v3/endpoint_group.py +28 -17
- openstackclient/identity/v3/federation_protocol.py +44 -20
- openstackclient/identity/v3/group.py +64 -40
- openstackclient/identity/v3/identity_provider.py +95 -57
- openstackclient/identity/v3/implied_role.py +21 -9
- openstackclient/identity/v3/limit.py +42 -17
- openstackclient/identity/v3/mapping.py +58 -28
- openstackclient/identity/v3/policy.py +23 -12
- openstackclient/identity/v3/project.py +59 -26
- openstackclient/identity/v3/region.py +39 -17
- openstackclient/identity/v3/registered_limit.py +41 -16
- openstackclient/identity/v3/role.py +62 -31
- openstackclient/identity/v3/role_assignment.py +25 -7
- openstackclient/identity/v3/service.py +39 -17
- openstackclient/identity/v3/service_provider.py +40 -16
- openstackclient/identity/v3/tag.py +23 -6
- openstackclient/identity/v3/token.py +30 -14
- openstackclient/identity/v3/trust.py +39 -18
- openstackclient/identity/v3/unscoped_saml.py +10 -2
- openstackclient/identity/v3/user.py +86 -36
- openstackclient/image/client.py +7 -3
- openstackclient/image/v1/image.py +33 -26
- openstackclient/image/v2/cache.py +16 -11
- openstackclient/image/v2/image.py +88 -56
- openstackclient/image/v2/info.py +7 -1
- openstackclient/image/v2/metadef_namespaces.py +117 -20
- openstackclient/image/v2/metadef_objects.py +32 -19
- openstackclient/image/v2/metadef_properties.py +30 -16
- openstackclient/image/v2/metadef_resource_type_association.py +14 -7
- openstackclient/image/v2/metadef_resource_types.py +7 -1
- openstackclient/image/v2/task.py +25 -27
- openstackclient/locale/tr_TR/LC_MESSAGES/openstackclient.po +7 -192
- openstackclient/network/client.py +7 -2
- openstackclient/network/common.py +16 -241
- openstackclient/network/utils.py +27 -54
- openstackclient/network/v2/address_group.py +39 -16
- openstackclient/network/v2/address_scope.py +36 -20
- openstackclient/network/v2/bgpvpn/bgpvpn.py +477 -0
- openstackclient/network/v2/bgpvpn/constants.py +30 -0
- openstackclient/network/v2/bgpvpn/network_association.py +226 -0
- openstackclient/network/v2/bgpvpn/port_association.py +504 -0
- openstackclient/network/v2/bgpvpn/router_association.py +301 -0
- openstackclient/network/v2/default_security_group_rule.py +31 -14
- openstackclient/network/v2/floating_ip.py +121 -162
- openstackclient/network/v2/floating_ip_port_forwarding.py +41 -19
- openstackclient/network/v2/fwaas/__init__.py +0 -0
- openstackclient/network/v2/fwaas/group.py +499 -0
- openstackclient/network/v2/fwaas/policy.py +518 -0
- openstackclient/network/v2/fwaas/rule.py +610 -0
- openstackclient/network/v2/ip_availability.py +25 -8
- openstackclient/network/v2/l3_conntrack_helper.py +35 -13
- openstackclient/network/v2/local_ip.py +27 -13
- openstackclient/network/v2/local_ip_association.py +17 -7
- openstackclient/network/v2/ndp_proxy.py +23 -11
- openstackclient/network/v2/network.py +213 -213
- openstackclient/network/v2/network_agent.py +77 -34
- openstackclient/network/v2/network_auto_allocated_topology.py +27 -15
- openstackclient/network/v2/network_flavor.py +45 -21
- openstackclient/network/v2/network_flavor_profile.py +42 -17
- openstackclient/network/v2/network_meter.py +39 -15
- openstackclient/network/v2/network_meter_rule.py +40 -12
- openstackclient/network/v2/network_qos_policy.py +39 -21
- openstackclient/network/v2/network_qos_rule.py +48 -18
- openstackclient/network/v2/network_qos_rule_type.py +28 -9
- openstackclient/network/v2/network_rbac.py +34 -16
- openstackclient/network/v2/network_segment.py +32 -11
- openstackclient/network/v2/network_segment_range.py +70 -31
- openstackclient/network/v2/network_service_provider.py +7 -1
- openstackclient/network/v2/network_trunk.py +41 -22
- openstackclient/network/v2/port.py +141 -40
- openstackclient/network/v2/router.py +101 -67
- openstackclient/network/v2/security_group.py +97 -198
- openstackclient/network/v2/security_group_rule.py +115 -282
- openstackclient/network/v2/subnet.py +63 -34
- openstackclient/network/v2/subnet_pool.py +42 -24
- openstackclient/network/v2/taas/tap_flow.py +35 -14
- openstackclient/network/v2/taas/tap_mirror.py +28 -14
- openstackclient/network/v2/taas/tap_service.py +26 -12
- openstackclient/object/client.py +7 -2
- openstackclient/object/v1/account.py +13 -6
- openstackclient/object/v1/container.py +28 -16
- openstackclient/object/v1/object.py +28 -16
- openstackclient/py.typed +0 -0
- openstackclient/shell.py +46 -10
- openstackclient/tests/functional/base.py +55 -20
- openstackclient/tests/functional/common/test_extension.py +4 -0
- openstackclient/tests/functional/common/test_quota.py +3 -1
- openstackclient/tests/functional/compute/v2/common.py +14 -13
- openstackclient/tests/functional/compute/v2/test_flavor.py +3 -1
- openstackclient/tests/functional/compute/v2/test_server.py +3 -0
- openstackclient/tests/functional/identity/v2/common.py +10 -6
- openstackclient/tests/functional/identity/v2/test_role.py +4 -4
- openstackclient/tests/functional/identity/v3/common.py +59 -19
- openstackclient/tests/functional/identity/v3/test_application_credential.py +1 -1
- openstackclient/tests/functional/identity/v3/test_group.py +20 -20
- openstackclient/tests/functional/identity/v3/test_idp.py +3 -1
- openstackclient/tests/functional/identity/v3/test_mapping.py +81 -0
- openstackclient/tests/functional/identity/v3/test_project.py +10 -10
- openstackclient/tests/functional/identity/v3/test_role.py +18 -18
- openstackclient/tests/functional/identity/v3/test_role_assignment.py +12 -12
- openstackclient/tests/functional/identity/v3/test_user.py +8 -8
- openstackclient/tests/functional/image/base.py +1 -6
- openstackclient/tests/functional/network/v2/common.py +5 -2
- openstackclient/tests/functional/network/v2/test_floating_ip.py +10 -4
- openstackclient/tests/functional/network/v2/test_ip_availability.py +4 -0
- openstackclient/tests/functional/network/v2/test_network_meter_rule.py +3 -2
- openstackclient/tests/functional/network/v2/test_network_segment.py +5 -0
- openstackclient/tests/functional/network/v2/test_subnet.py +13 -9
- openstackclient/tests/functional/object/v1/common.py +4 -0
- openstackclient/tests/functional/volume/v2/common.py +4 -0
- openstackclient/tests/functional/volume/v2/test_volume_snapshot.py +27 -11
- openstackclient/tests/functional/volume/v2/test_volume_type.py +2 -2
- openstackclient/tests/functional/volume/v3/common.py +4 -0
- openstackclient/tests/functional/volume/v3/test_volume_group.py +163 -0
- openstackclient/tests/functional/volume/v3/test_volume_snapshot.py +11 -7
- openstackclient/tests/functional/volume/v3/test_volume_type.py +2 -2
- openstackclient/tests/unit/common/test_availability_zone.py +35 -49
- openstackclient/tests/unit/common/test_extension.py +2 -2
- openstackclient/tests/unit/common/test_limits.py +1 -1
- openstackclient/tests/unit/common/test_module.py +82 -44
- openstackclient/tests/unit/common/test_project_cleanup.py +3 -1
- openstackclient/tests/unit/common/test_quota.py +15 -26
- openstackclient/tests/unit/compute/v2/fakes.py +26 -57
- openstackclient/tests/unit/compute/v2/test_agent.py +4 -4
- openstackclient/tests/unit/compute/v2/test_aggregate.py +1 -1
- openstackclient/tests/unit/compute/v2/test_console.py +2 -2
- openstackclient/tests/unit/compute/v2/test_console_connection.py +1 -1
- openstackclient/tests/unit/compute/v2/test_flavor.py +29 -3
- openstackclient/tests/unit/compute/v2/test_host.py +3 -3
- openstackclient/tests/unit/compute/v2/test_hypervisor.py +2 -2
- openstackclient/tests/unit/compute/v2/test_hypervisor_stats.py +1 -1
- openstackclient/tests/unit/compute/v2/test_keypair.py +7 -7
- openstackclient/tests/unit/compute/v2/test_server.py +26 -111
- openstackclient/tests/unit/compute/v2/test_server_backup.py +1 -1
- openstackclient/tests/unit/compute/v2/test_server_event.py +2 -2
- openstackclient/tests/unit/compute/v2/test_server_group.py +1 -1
- openstackclient/tests/unit/compute/v2/test_server_image.py +1 -1
- openstackclient/tests/unit/compute/v2/test_server_migration.py +4 -4
- openstackclient/tests/unit/compute/v2/test_server_share.py +287 -0
- openstackclient/tests/unit/compute/v2/test_server_volume.py +2 -2
- openstackclient/tests/unit/compute/v2/test_service.py +3 -3
- openstackclient/tests/unit/compute/v2/test_usage.py +1 -1
- openstackclient/tests/unit/identity/v2_0/fakes.py +3 -7
- openstackclient/tests/unit/identity/v2_0/test_endpoint.py +1 -1
- openstackclient/tests/unit/identity/v2_0/test_project.py +1 -1
- openstackclient/tests/unit/identity/v2_0/test_role.py +1 -1
- openstackclient/tests/unit/identity/v2_0/test_role_assignment.py +1 -1
- openstackclient/tests/unit/identity/v2_0/test_service.py +1 -1
- openstackclient/tests/unit/identity/v2_0/test_token.py +2 -2
- openstackclient/tests/unit/identity/v2_0/test_user.py +1 -1
- openstackclient/tests/unit/identity/v3/fakes.py +8 -38
- openstackclient/tests/unit/identity/v3/test_access_rule.py +3 -3
- openstackclient/tests/unit/identity/v3/test_application_credential.py +4 -4
- openstackclient/tests/unit/identity/v3/test_credential.py +5 -5
- openstackclient/tests/unit/identity/v3/test_domain.py +5 -5
- openstackclient/tests/unit/identity/v3/test_endpoint.py +6 -6
- openstackclient/tests/unit/identity/v3/test_endpoint_group.py +1 -1
- openstackclient/tests/unit/identity/v3/test_group.py +12 -22
- openstackclient/tests/unit/identity/v3/test_identity_provider.py +303 -299
- openstackclient/tests/unit/identity/v3/test_implied_role.py +1 -1
- openstackclient/tests/unit/identity/v3/test_limit.py +5 -5
- openstackclient/tests/unit/identity/v3/test_mappings.py +163 -79
- openstackclient/tests/unit/identity/v3/test_project.py +28 -5
- openstackclient/tests/unit/identity/v3/test_protocol.py +3 -3
- openstackclient/tests/unit/identity/v3/test_region.py +5 -5
- openstackclient/tests/unit/identity/v3/test_registered_limit.py +5 -5
- openstackclient/tests/unit/identity/v3/test_role.py +8 -8
- openstackclient/tests/unit/identity/v3/test_role_assignment.py +1 -1
- openstackclient/tests/unit/identity/v3/test_service.py +5 -5
- openstackclient/tests/unit/identity/v3/test_token.py +2 -2
- openstackclient/tests/unit/identity/v3/test_trust.py +4 -4
- openstackclient/tests/unit/identity/v3/test_user.py +77 -10
- openstackclient/tests/unit/image/v2/test_image.py +11 -11
- openstackclient/tests/unit/image/v2/test_metadef_namespaces.py +105 -6
- openstackclient/tests/unit/network/test_common.py +0 -155
- openstackclient/tests/unit/network/v2/bgpvpn/__init__.py +0 -0
- openstackclient/tests/unit/network/v2/bgpvpn/fakes.py +179 -0
- openstackclient/tests/unit/network/v2/bgpvpn/test_bgpvpn.py +584 -0
- openstackclient/tests/unit/network/v2/bgpvpn/test_network_association.py +285 -0
- openstackclient/tests/unit/network/v2/bgpvpn/test_port_association.py +384 -0
- openstackclient/tests/unit/network/v2/bgpvpn/test_router_association.py +297 -0
- openstackclient/tests/unit/network/v2/fakes.py +5 -77
- openstackclient/tests/unit/network/v2/fwaas/__init__.py +0 -0
- openstackclient/tests/unit/network/v2/fwaas/test_group.py +923 -0
- openstackclient/tests/unit/network/v2/fwaas/test_policy.py +869 -0
- openstackclient/tests/unit/network/v2/fwaas/test_rule.py +1005 -0
- openstackclient/tests/unit/network/v2/taas/{test_osc_tap_flow.py → test_tap_flow.py} +18 -25
- openstackclient/tests/unit/network/v2/taas/{test_osc_tap_mirror.py → test_tap_mirror.py} +19 -29
- openstackclient/tests/unit/network/v2/taas/{test_osc_tap_service.py → test_tap_service.py} +19 -29
- openstackclient/tests/unit/network/v2/test_address_group.py +26 -2
- openstackclient/tests/unit/network/v2/test_address_scope.py +24 -0
- openstackclient/tests/unit/network/v2/{test_floating_ip_network.py → test_floating_ip.py} +27 -2
- openstackclient/tests/unit/network/v2/test_floating_ip_port_forwarding.py +37 -13
- openstackclient/tests/unit/network/v2/test_ip_availability.py +25 -0
- openstackclient/tests/unit/network/v2/test_l3_conntrack_helper.py +29 -3
- openstackclient/tests/unit/network/v2/test_network.py +74 -12
- openstackclient/tests/unit/network/v2/test_network_agent.py +58 -5
- openstackclient/tests/unit/network/v2/test_network_auto_allocated_topology.py +3 -3
- openstackclient/tests/unit/network/v2/test_network_flavor.py +26 -2
- openstackclient/tests/unit/network/v2/test_network_flavor_profile.py +24 -0
- openstackclient/tests/unit/network/v2/test_network_meter.py +24 -0
- openstackclient/tests/unit/network/v2/test_network_qos_policy.py +25 -1
- openstackclient/tests/unit/network/v2/test_network_qos_rule.py +2 -2
- openstackclient/tests/unit/network/v2/test_network_qos_rule_type.py +24 -0
- openstackclient/tests/unit/network/v2/test_network_rbac.py +25 -1
- openstackclient/tests/unit/network/v2/test_network_segment.py +25 -1
- openstackclient/tests/unit/network/v2/test_network_segment_range.py +31 -10
- openstackclient/tests/unit/network/v2/test_network_trunk.py +1 -1
- openstackclient/tests/unit/network/v2/test_port.py +166 -0
- openstackclient/tests/unit/network/v2/test_router.py +36 -16
- openstackclient/tests/unit/network/v2/{test_security_group_network.py → test_security_group.py} +11 -8
- openstackclient/tests/unit/network/v2/{test_security_group_rule_network.py → test_security_group_rule.py} +28 -37
- openstackclient/tests/unit/network/v2/test_subnet.py +30 -5
- openstackclient/tests/unit/network/v2/test_subnet_pool.py +26 -1
- openstackclient/tests/unit/object/v1/fakes.py +8 -7
- openstackclient/tests/unit/object/v1/test_container.py +65 -101
- openstackclient/tests/unit/object/v1/test_container_all.py +8 -1
- openstackclient/tests/unit/object/v1/test_object.py +44 -84
- openstackclient/tests/unit/object/v1/test_object_all.py +8 -1
- openstackclient/tests/unit/test_hacking.py +108 -0
- openstackclient/tests/unit/volume/v2/fakes.py +21 -140
- openstackclient/tests/unit/volume/v2/test_volume_backup.py +6 -14
- openstackclient/tests/unit/volume/v2/test_volume_snapshot.py +8 -1
- openstackclient/tests/unit/volume/v2/test_volume_type.py +2 -4
- openstackclient/tests/unit/volume/v3/fakes.py +205 -100
- openstackclient/tests/unit/volume/v3/test_backup_record.py +114 -0
- openstackclient/tests/unit/volume/v3/test_consistency_group.py +720 -0
- openstackclient/tests/unit/volume/v3/test_consistency_group_snapshot.py +354 -0
- openstackclient/tests/unit/volume/v3/test_qos_specs.py +455 -0
- openstackclient/tests/unit/volume/v3/test_volume.py +60 -3
- openstackclient/tests/unit/volume/v3/test_volume_attachment.py +3 -1
- openstackclient/tests/unit/volume/v3/test_volume_backend.py +158 -0
- openstackclient/tests/unit/volume/v3/test_volume_backup.py +6 -14
- openstackclient/tests/unit/volume/v3/test_volume_group_type.py +65 -0
- openstackclient/tests/unit/volume/v3/test_volume_host.py +115 -0
- openstackclient/tests/unit/volume/v3/test_volume_snapshot.py +61 -1
- openstackclient/tests/unit/volume/v3/test_volume_type.py +2 -4
- openstackclient/volume/client.py +7 -3
- openstackclient/volume/v2/backup_record.py +15 -6
- openstackclient/volume/v2/consistency_group.py +29 -17
- openstackclient/volume/v2/consistency_group_snapshot.py +25 -10
- openstackclient/volume/v2/qos_specs.py +28 -17
- openstackclient/volume/v2/service.py +17 -6
- openstackclient/volume/v2/volume.py +60 -30
- openstackclient/volume/v2/volume_backend.py +19 -6
- openstackclient/volume/v2/volume_backup.py +48 -23
- openstackclient/volume/v2/volume_host.py +6 -4
- openstackclient/volume/v2/volume_snapshot.py +49 -24
- openstackclient/volume/v2/volume_transfer_request.py +31 -13
- openstackclient/volume/v2/volume_type.py +43 -24
- openstackclient/volume/v3/backup_record.py +94 -0
- openstackclient/volume/v3/block_storage_cleanup.py +11 -3
- openstackclient/volume/v3/block_storage_cluster.py +19 -7
- openstackclient/volume/v3/block_storage_log_level.py +15 -6
- openstackclient/volume/v3/block_storage_manage.py +10 -4
- openstackclient/volume/v3/block_storage_resource_filter.py +17 -5
- openstackclient/volume/v3/consistency_group.py +400 -0
- openstackclient/volume/v3/consistency_group_snapshot.py +225 -0
- openstackclient/volume/v3/qos_specs.py +389 -0
- openstackclient/volume/v3/service.py +16 -6
- openstackclient/volume/v3/volume.py +92 -40
- openstackclient/volume/v3/volume_attachment.py +47 -21
- openstackclient/volume/v3/volume_backend.py +130 -0
- openstackclient/volume/v3/volume_backup.py +55 -27
- openstackclient/volume/v3/volume_group.py +23 -13
- openstackclient/volume/v3/volume_group_snapshot.py +34 -17
- openstackclient/volume/v3/volume_group_type.py +27 -14
- openstackclient/volume/v3/volume_host.py +74 -0
- openstackclient/volume/v3/volume_message.py +18 -8
- openstackclient/volume/v3/volume_snapshot.py +70 -32
- openstackclient/volume/v3/volume_transfer_request.py +31 -13
- openstackclient/volume/v3/volume_type.py +42 -24
- {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/METADATA +7 -8
- python_openstackclient-10.1.0.dist-info/RECORD +524 -0
- {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/WHEEL +1 -1
- {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/entry_points.txt +77 -25
- {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/licenses/AUTHORS +9 -0
- python_openstackclient-10.1.0.dist-info/pbr.json +1 -0
- openstackclient/api/image_v1.py +0 -69
- openstackclient/api/image_v2.py +0 -79
- openstackclient/network/v2/floating_ip_pool.py +0 -38
- openstackclient/tests/functional/image/v1/test_image.py +0 -97
- openstackclient/tests/unit/api/test_image_v1.py +0 -96
- openstackclient/tests/unit/api/test_image_v2.py +0 -96
- openstackclient/tests/unit/network/v2/test_floating_ip_compute.py +0 -248
- openstackclient/tests/unit/network/v2/test_floating_ip_pool_compute.py +0 -49
- openstackclient/tests/unit/network/v2/test_floating_ip_pool_network.py +0 -39
- openstackclient/tests/unit/network/v2/test_network_compute.py +0 -404
- openstackclient/tests/unit/network/v2/test_security_group_compute.py +0 -392
- openstackclient/tests/unit/network/v2/test_security_group_rule_compute.py +0 -555
- python_openstackclient-9.0.0.dist-info/RECORD +0 -499
- python_openstackclient-9.0.0.dist-info/pbr.json +0 -1
- /openstackclient/{tests/functional/image/v1 → network/v2/bgpvpn}/__init__.py +0 -0
- {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/licenses/LICENSE +0 -0
- {python_openstackclient-9.0.0.dist-info → python_openstackclient-10.1.0.dist-info}/top_level.txt +0 -0
|
@@ -38,18 +38,15 @@ def _build_compute_az_datalist(compute_az, long_datalist=False):
|
|
|
38
38
|
return (datalist,)
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def _build_network_az_datalist(network_az, long_datalist=False):
|
|
42
42
|
datalist = ()
|
|
43
43
|
if not long_datalist:
|
|
44
|
-
datalist = (
|
|
45
|
-
volume_az.name,
|
|
46
|
-
'available',
|
|
47
|
-
)
|
|
44
|
+
datalist = (network_az.name, network_az.state)
|
|
48
45
|
else:
|
|
49
46
|
datalist = (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
network_az.name,
|
|
48
|
+
network_az.state,
|
|
49
|
+
network_az.resource,
|
|
53
50
|
'',
|
|
54
51
|
'',
|
|
55
52
|
'',
|
|
@@ -57,22 +54,12 @@ def _build_volume_az_datalist(volume_az, long_datalist=False):
|
|
|
57
54
|
return (datalist,)
|
|
58
55
|
|
|
59
56
|
|
|
60
|
-
def
|
|
57
|
+
def _build_volume_az_datalist(volume_az, long_datalist=False):
|
|
61
58
|
datalist = ()
|
|
62
59
|
if not long_datalist:
|
|
63
|
-
datalist = (
|
|
64
|
-
network_az.name,
|
|
65
|
-
network_az.state,
|
|
66
|
-
)
|
|
60
|
+
datalist = (volume_az.name, 'available')
|
|
67
61
|
else:
|
|
68
|
-
datalist = (
|
|
69
|
-
network_az.name,
|
|
70
|
-
network_az.state,
|
|
71
|
-
network_az.resource,
|
|
72
|
-
'',
|
|
73
|
-
'',
|
|
74
|
-
'',
|
|
75
|
-
)
|
|
62
|
+
datalist = (volume_az.name, 'available', '', '', '', '')
|
|
76
63
|
return (datalist,)
|
|
77
64
|
|
|
78
65
|
|
|
@@ -82,10 +69,6 @@ class TestAvailabilityZoneList(
|
|
|
82
69
|
compute_fakes.FakeClientMixin,
|
|
83
70
|
utils.TestCommand,
|
|
84
71
|
):
|
|
85
|
-
compute_azs = compute_fakes.create_availability_zones()
|
|
86
|
-
volume_azs = volume_fakes.create_availability_zones(count=1)
|
|
87
|
-
network_azs = network_fakes.create_availability_zones()
|
|
88
|
-
|
|
89
72
|
short_columnslist = ('Zone Name', 'Zone Status')
|
|
90
73
|
long_columnslist = (
|
|
91
74
|
'Zone Name',
|
|
@@ -99,11 +82,14 @@ class TestAvailabilityZoneList(
|
|
|
99
82
|
def setUp(self):
|
|
100
83
|
super().setUp()
|
|
101
84
|
|
|
85
|
+
self.compute_azs = compute_fakes.create_availability_zones()
|
|
102
86
|
self.compute_client.availability_zones.return_value = self.compute_azs
|
|
87
|
+
self.network_azs = network_fakes.create_availability_zones()
|
|
88
|
+
self.network_client.availability_zones.return_value = self.network_azs
|
|
89
|
+
self.volume_azs = volume_fakes.create_availability_zones(count=1)
|
|
103
90
|
self.volume_sdk_client.availability_zones.return_value = (
|
|
104
91
|
self.volume_azs
|
|
105
92
|
)
|
|
106
|
-
self.network_client.availability_zones.return_value = self.network_azs
|
|
107
93
|
|
|
108
94
|
# Get the command object to test
|
|
109
95
|
self.cmd = availability_zone.ListAvailabilityZone(self.app, None)
|
|
@@ -119,17 +105,17 @@ class TestAvailabilityZoneList(
|
|
|
119
105
|
columns, data = self.cmd.take_action(parsed_args)
|
|
120
106
|
|
|
121
107
|
self.compute_client.availability_zones.assert_called_with(details=True)
|
|
122
|
-
self.volume_sdk_client.availability_zones.assert_called_with()
|
|
123
108
|
self.network_client.availability_zones.assert_called_with()
|
|
109
|
+
self.volume_sdk_client.availability_zones.assert_called_with()
|
|
124
110
|
|
|
125
111
|
self.assertEqual(self.short_columnslist, columns)
|
|
126
112
|
datalist = ()
|
|
127
113
|
for compute_az in self.compute_azs:
|
|
128
114
|
datalist += _build_compute_az_datalist(compute_az)
|
|
129
|
-
for volume_az in self.volume_azs:
|
|
130
|
-
datalist += _build_volume_az_datalist(volume_az)
|
|
131
115
|
for network_az in self.network_azs:
|
|
132
116
|
datalist += _build_network_az_datalist(network_az)
|
|
117
|
+
for volume_az in self.volume_azs:
|
|
118
|
+
datalist += _build_volume_az_datalist(volume_az)
|
|
133
119
|
self.assertEqual(datalist, tuple(data))
|
|
134
120
|
|
|
135
121
|
def test_availability_zone_list_long(self):
|
|
@@ -147,8 +133,8 @@ class TestAvailabilityZoneList(
|
|
|
147
133
|
columns, data = self.cmd.take_action(parsed_args)
|
|
148
134
|
|
|
149
135
|
self.compute_client.availability_zones.assert_called_with(details=True)
|
|
150
|
-
self.volume_sdk_client.availability_zones.assert_called_with()
|
|
151
136
|
self.network_client.availability_zones.assert_called_with()
|
|
137
|
+
self.volume_sdk_client.availability_zones.assert_called_with()
|
|
152
138
|
|
|
153
139
|
self.assertEqual(self.long_columnslist, columns)
|
|
154
140
|
datalist = ()
|
|
@@ -156,14 +142,14 @@ class TestAvailabilityZoneList(
|
|
|
156
142
|
datalist += _build_compute_az_datalist(
|
|
157
143
|
compute_az, long_datalist=True
|
|
158
144
|
)
|
|
159
|
-
for volume_az in self.volume_azs:
|
|
160
|
-
datalist += _build_volume_az_datalist(
|
|
161
|
-
volume_az, long_datalist=True
|
|
162
|
-
)
|
|
163
145
|
for network_az in self.network_azs:
|
|
164
146
|
datalist += _build_network_az_datalist(
|
|
165
147
|
network_az, long_datalist=True
|
|
166
148
|
)
|
|
149
|
+
for volume_az in self.volume_azs:
|
|
150
|
+
datalist += _build_volume_az_datalist(
|
|
151
|
+
volume_az, long_datalist=True
|
|
152
|
+
)
|
|
167
153
|
self.assertEqual(datalist, tuple(data))
|
|
168
154
|
|
|
169
155
|
def test_availability_zone_list_compute(self):
|
|
@@ -181,8 +167,8 @@ class TestAvailabilityZoneList(
|
|
|
181
167
|
columns, data = self.cmd.take_action(parsed_args)
|
|
182
168
|
|
|
183
169
|
self.compute_client.availability_zones.assert_called_with(details=True)
|
|
184
|
-
self.volume_sdk_client.availability_zones.assert_not_called()
|
|
185
170
|
self.network_client.availability_zones.assert_not_called()
|
|
171
|
+
self.volume_sdk_client.availability_zones.assert_not_called()
|
|
186
172
|
|
|
187
173
|
self.assertEqual(self.short_columnslist, columns)
|
|
188
174
|
datalist = ()
|
|
@@ -190,12 +176,12 @@ class TestAvailabilityZoneList(
|
|
|
190
176
|
datalist += _build_compute_az_datalist(compute_az)
|
|
191
177
|
self.assertEqual(datalist, tuple(data))
|
|
192
178
|
|
|
193
|
-
def
|
|
179
|
+
def test_availability_zone_list_network(self):
|
|
194
180
|
arglist = [
|
|
195
|
-
'--
|
|
181
|
+
'--network',
|
|
196
182
|
]
|
|
197
183
|
verifylist = [
|
|
198
|
-
('
|
|
184
|
+
('network', True),
|
|
199
185
|
]
|
|
200
186
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
201
187
|
|
|
@@ -205,21 +191,21 @@ class TestAvailabilityZoneList(
|
|
|
205
191
|
columns, data = self.cmd.take_action(parsed_args)
|
|
206
192
|
|
|
207
193
|
self.compute_client.availability_zones.assert_not_called()
|
|
208
|
-
self.
|
|
209
|
-
self.
|
|
194
|
+
self.network_client.availability_zones.assert_called_with()
|
|
195
|
+
self.volume_sdk_client.availability_zones.assert_not_called()
|
|
210
196
|
|
|
211
197
|
self.assertEqual(self.short_columnslist, columns)
|
|
212
198
|
datalist = ()
|
|
213
|
-
for
|
|
214
|
-
datalist +=
|
|
199
|
+
for network_az in self.network_azs:
|
|
200
|
+
datalist += _build_network_az_datalist(network_az)
|
|
215
201
|
self.assertEqual(datalist, tuple(data))
|
|
216
202
|
|
|
217
|
-
def
|
|
203
|
+
def test_availability_zone_list_volume(self):
|
|
218
204
|
arglist = [
|
|
219
|
-
'--
|
|
205
|
+
'--volume',
|
|
220
206
|
]
|
|
221
207
|
verifylist = [
|
|
222
|
-
('
|
|
208
|
+
('volume', True),
|
|
223
209
|
]
|
|
224
210
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
225
211
|
|
|
@@ -229,11 +215,11 @@ class TestAvailabilityZoneList(
|
|
|
229
215
|
columns, data = self.cmd.take_action(parsed_args)
|
|
230
216
|
|
|
231
217
|
self.compute_client.availability_zones.assert_not_called()
|
|
232
|
-
self.
|
|
233
|
-
self.
|
|
218
|
+
self.network_client.availability_zones.assert_not_called()
|
|
219
|
+
self.volume_sdk_client.availability_zones.assert_called_with()
|
|
234
220
|
|
|
235
221
|
self.assertEqual(self.short_columnslist, columns)
|
|
236
222
|
datalist = ()
|
|
237
|
-
for
|
|
238
|
-
datalist +=
|
|
223
|
+
for volume_az in self.volume_azs:
|
|
224
|
+
datalist += _build_volume_az_datalist(volume_az)
|
|
239
225
|
self.assertEqual(datalist, tuple(data))
|
|
@@ -294,7 +294,7 @@ class TestExtensionShow(TestExtension):
|
|
|
294
294
|
|
|
295
295
|
self.cmd = extension.ShowExtension(self.app, None)
|
|
296
296
|
|
|
297
|
-
self.
|
|
297
|
+
self.network_client.find_extension.return_value = (
|
|
298
298
|
self.extension_details
|
|
299
299
|
)
|
|
300
300
|
|
|
@@ -322,7 +322,7 @@ class TestExtensionShow(TestExtension):
|
|
|
322
322
|
|
|
323
323
|
columns, data = self.cmd.take_action(parsed_args)
|
|
324
324
|
|
|
325
|
-
self.
|
|
325
|
+
self.network_client.find_extension.assert_called_with(
|
|
326
326
|
self.extension_details.alias, ignore_missing=False
|
|
327
327
|
)
|
|
328
328
|
|
|
@@ -16,7 +16,7 @@ from openstackclient.tests.unit.compute.v2 import fakes as compute_fakes
|
|
|
16
16
|
from openstackclient.tests.unit.volume.v3 import fakes as volume_fakes
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
class TestComputeLimits(compute_fakes.
|
|
19
|
+
class TestComputeLimits(compute_fakes.TestCompute):
|
|
20
20
|
absolute_columns = ['Name', 'Value']
|
|
21
21
|
rate_columns = ["Verb", "URI", "Value", "Remain", "Unit", "Next Available"]
|
|
22
22
|
|
|
@@ -22,42 +22,61 @@ from openstackclient.tests.unit import utils
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class FakeModule:
|
|
25
|
-
def __init__(self, name
|
|
25
|
+
def __init__(self, name):
|
|
26
26
|
self.name = name
|
|
27
|
-
self.__version__ = version
|
|
28
|
-
# Workaround for openstacksdk case
|
|
29
|
-
self.version = mock.Mock()
|
|
30
|
-
self.version.__version__ = version
|
|
31
27
|
|
|
32
28
|
|
|
33
29
|
# NOTE(dtroyer): module_1 must match the version list filter (not --all)
|
|
34
30
|
# currently == '*client*'
|
|
35
31
|
module_name_1 = 'fakeclient'
|
|
36
|
-
|
|
32
|
+
package_name_1 = 'python-fakeclient'
|
|
33
|
+
package_version_1 = '0.1.2'
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
# module_2 match openstacksdk
|
|
36
|
+
module_name_2 = 'openstack'
|
|
37
|
+
package_name_2 = 'openstacksdk'
|
|
38
|
+
package_version_2 = '0.9.13'
|
|
40
39
|
|
|
41
|
-
# module_3 match
|
|
42
|
-
module_name_3 = '
|
|
43
|
-
|
|
40
|
+
# module_3 match sub module of fakeclient
|
|
41
|
+
module_name_3 = 'fakeclient.submodule'
|
|
42
|
+
package_name_3 = 'python-fakeclient'
|
|
43
|
+
package_version_3 = '0.2.2'
|
|
44
44
|
|
|
45
|
-
# module_4 match
|
|
46
|
-
module_name_4 = '
|
|
47
|
-
|
|
45
|
+
# module_4 match non-client package
|
|
46
|
+
module_name_4 = 'requests'
|
|
47
|
+
package_name_4 = 'requests'
|
|
48
|
+
package_version_4 = '2.34.2'
|
|
48
49
|
|
|
49
50
|
# module_5 match private module
|
|
50
51
|
module_name_5 = '_private_module.lib'
|
|
51
|
-
module_version_5 = '0.0.1'
|
|
52
52
|
|
|
53
53
|
MODULES = {
|
|
54
54
|
'sys': sys,
|
|
55
|
-
module_name_1: FakeModule(module_name_1
|
|
56
|
-
module_name_2: FakeModule(module_name_2
|
|
57
|
-
module_name_3: FakeModule(module_name_3
|
|
58
|
-
module_name_4: FakeModule(module_name_4
|
|
59
|
-
module_name_5: FakeModule(module_name_5
|
|
55
|
+
module_name_1: FakeModule(module_name_1),
|
|
56
|
+
module_name_2: FakeModule(module_name_2),
|
|
57
|
+
module_name_3: FakeModule(module_name_3),
|
|
58
|
+
module_name_4: FakeModule(module_name_4),
|
|
59
|
+
module_name_5: FakeModule(module_name_5),
|
|
60
60
|
}
|
|
61
|
+
PACKAGES = {
|
|
62
|
+
module_name_1: [package_name_1],
|
|
63
|
+
module_name_2: [package_name_2],
|
|
64
|
+
module_name_3: [package_name_3],
|
|
65
|
+
module_name_4: [package_name_4],
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def fake_metadata_version(package):
|
|
70
|
+
if package == package_name_1:
|
|
71
|
+
return package_version_1
|
|
72
|
+
if package == package_name_2:
|
|
73
|
+
return package_version_2
|
|
74
|
+
if package == package_name_3:
|
|
75
|
+
return package_version_3
|
|
76
|
+
if package == package_name_4:
|
|
77
|
+
return package_version_4
|
|
78
|
+
|
|
79
|
+
raise Exception('unrecognised package')
|
|
61
80
|
|
|
62
81
|
|
|
63
82
|
class TestCommandList(utils.TestCommand):
|
|
@@ -128,11 +147,6 @@ class TestCommandList(utils.TestCommand):
|
|
|
128
147
|
self.assertEqual(datalist, tuple(data))
|
|
129
148
|
|
|
130
149
|
|
|
131
|
-
@mock.patch.dict(
|
|
132
|
-
'openstackclient.common.module.sys.modules',
|
|
133
|
-
values=MODULES,
|
|
134
|
-
clear=True,
|
|
135
|
-
)
|
|
136
150
|
class TestModuleList(utils.TestCommand):
|
|
137
151
|
def setUp(self):
|
|
138
152
|
super().setUp()
|
|
@@ -150,20 +164,31 @@ class TestModuleList(utils.TestCommand):
|
|
|
150
164
|
# In base command class Lister in cliff, abstract method take_action()
|
|
151
165
|
# returns a tuple containing the column names and an iterable
|
|
152
166
|
# containing the data to be listed.
|
|
153
|
-
|
|
167
|
+
with (
|
|
168
|
+
mock.patch(
|
|
169
|
+
'openstackclient.common.module.importlib.metadata.packages_distributions',
|
|
170
|
+
return_value=PACKAGES,
|
|
171
|
+
),
|
|
172
|
+
mock.patch(
|
|
173
|
+
'openstackclient.common.module.importlib.metadata.version',
|
|
174
|
+
side_effect=fake_metadata_version,
|
|
175
|
+
),
|
|
176
|
+
mock.patch.dict(
|
|
177
|
+
'openstackclient.common.module.sys.modules',
|
|
178
|
+
values=MODULES,
|
|
179
|
+
clear=True,
|
|
180
|
+
),
|
|
181
|
+
):
|
|
182
|
+
columns, data = self.cmd.take_action(parsed_args)
|
|
154
183
|
|
|
155
184
|
# Output xxxclient and openstacksdk, but not regular module, like: zlib
|
|
156
185
|
self.assertIn(module_name_1, columns)
|
|
157
|
-
self.assertIn(
|
|
158
|
-
self.
|
|
159
|
-
self.
|
|
160
|
-
self.assertIn(module_name_3, columns)
|
|
161
|
-
self.assertIn(module_version_3, data)
|
|
186
|
+
self.assertIn(package_version_1, data)
|
|
187
|
+
self.assertIn(module_name_2, columns)
|
|
188
|
+
self.assertIn(package_version_2, data)
|
|
162
189
|
# Filter sub and private modules
|
|
163
|
-
self.assertNotIn(
|
|
164
|
-
self.assertNotIn(module_version_4, data)
|
|
190
|
+
self.assertNotIn(module_name_3, columns)
|
|
165
191
|
self.assertNotIn(module_name_5, columns)
|
|
166
|
-
self.assertNotIn(module_version_5, data)
|
|
167
192
|
|
|
168
193
|
def test_module_list_all(self):
|
|
169
194
|
arglist = [
|
|
@@ -177,17 +202,30 @@ class TestModuleList(utils.TestCommand):
|
|
|
177
202
|
# In base command class Lister in cliff, abstract method take_action()
|
|
178
203
|
# returns a tuple containing the column names and an iterable
|
|
179
204
|
# containing the data to be listed.
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
205
|
+
with (
|
|
206
|
+
mock.patch(
|
|
207
|
+
'openstackclient.common.module.importlib.metadata.packages_distributions',
|
|
208
|
+
return_value=PACKAGES,
|
|
209
|
+
),
|
|
210
|
+
mock.patch(
|
|
211
|
+
'openstackclient.common.module.importlib.metadata.version',
|
|
212
|
+
side_effect=fake_metadata_version,
|
|
213
|
+
),
|
|
214
|
+
mock.patch.dict(
|
|
215
|
+
'openstackclient.common.module.sys.modules',
|
|
216
|
+
values=MODULES,
|
|
217
|
+
clear=True,
|
|
218
|
+
),
|
|
219
|
+
):
|
|
220
|
+
columns, data = self.cmd.take_action(parsed_args)
|
|
221
|
+
|
|
222
|
+
# Output xxxclient, openstacksdk and regular modules like requests
|
|
183
223
|
self.assertIn(module_name_1, columns)
|
|
184
|
-
self.assertIn(
|
|
224
|
+
self.assertIn(package_version_1, data)
|
|
185
225
|
self.assertIn(module_name_2, columns)
|
|
186
|
-
self.assertIn(
|
|
187
|
-
self.assertIn(
|
|
188
|
-
self.assertIn(
|
|
226
|
+
self.assertIn(package_version_2, data)
|
|
227
|
+
self.assertIn(module_name_4, columns)
|
|
228
|
+
self.assertIn(package_version_4, data)
|
|
189
229
|
# Filter sub and private modules
|
|
190
|
-
self.assertNotIn(
|
|
191
|
-
self.assertNotIn(module_version_4, data)
|
|
230
|
+
self.assertNotIn(module_name_3, columns)
|
|
192
231
|
self.assertNotIn(module_name_5, columns)
|
|
193
|
-
self.assertNotIn(module_version_5, data)
|
|
@@ -17,7 +17,9 @@ from openstackclient.tests.unit.identity.v3 import fakes as identity_fakes
|
|
|
17
17
|
from openstackclient.tests.unit import utils as test_utils
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
class TestProjectCleanup(
|
|
20
|
+
class TestProjectCleanup(
|
|
21
|
+
identity_fakes.FakeClientMixin, test_utils.TestCommand
|
|
22
|
+
):
|
|
21
23
|
project = identity_fakes.FakeProject.create_one_project()
|
|
22
24
|
|
|
23
25
|
def setUp(self):
|
|
@@ -68,6 +68,7 @@ class TestQuotaList(TestQuota):
|
|
|
68
68
|
'Networks',
|
|
69
69
|
'Ports',
|
|
70
70
|
'RBAC Policies',
|
|
71
|
+
'Router Routes',
|
|
71
72
|
'Routers',
|
|
72
73
|
'Security Groups',
|
|
73
74
|
'Security Group Rules',
|
|
@@ -80,6 +81,7 @@ class TestQuotaList(TestQuota):
|
|
|
80
81
|
'Backups',
|
|
81
82
|
'Backup Gigabytes',
|
|
82
83
|
'Gigabytes',
|
|
84
|
+
'Groups',
|
|
83
85
|
'Per Volume Gigabytes',
|
|
84
86
|
'Snapshots',
|
|
85
87
|
'Volumes',
|
|
@@ -133,6 +135,10 @@ class TestQuotaList(TestQuota):
|
|
|
133
135
|
self.network_quotas[0].networks,
|
|
134
136
|
self.network_quotas[0].ports,
|
|
135
137
|
self.network_quotas[0].rbac_policies,
|
|
138
|
+
# TODO(ralonsoh): restore once [1] is merged and released.
|
|
139
|
+
# [1]https://review.opendev.org/c/openstack/openstacksdk/+/991063
|
|
140
|
+
# self.network_quotas[0].router_routes,
|
|
141
|
+
getattr(self.network_quotas[0], 'router_routes', ''),
|
|
136
142
|
self.network_quotas[0].routers,
|
|
137
143
|
self.network_quotas[0].security_groups,
|
|
138
144
|
self.network_quotas[0].security_group_rules,
|
|
@@ -156,6 +162,7 @@ class TestQuotaList(TestQuota):
|
|
|
156
162
|
self.volume_quotas[0].backups,
|
|
157
163
|
self.volume_quotas[0].backup_gigabytes,
|
|
158
164
|
self.volume_quotas[0].gigabytes,
|
|
165
|
+
self.volume_quotas[0].groups,
|
|
159
166
|
self.volume_quotas[0].per_volume_gigabytes,
|
|
160
167
|
self.volume_quotas[0].snapshots,
|
|
161
168
|
self.volume_quotas[0].volumes,
|
|
@@ -382,8 +389,6 @@ class TestQuotaSet(TestQuota):
|
|
|
382
389
|
self.cmd = quota.SetQuota(self.app, None)
|
|
383
390
|
|
|
384
391
|
def test_quota_set(self):
|
|
385
|
-
floating_ip_num = 100
|
|
386
|
-
fix_ip_num = 100
|
|
387
392
|
injected_file_num = 100
|
|
388
393
|
injected_file_size_num = 10240
|
|
389
394
|
injected_path_size_num = 255
|
|
@@ -392,16 +397,10 @@ class TestQuotaSet(TestQuota):
|
|
|
392
397
|
ram_num = 51200
|
|
393
398
|
instance_num = 10
|
|
394
399
|
property_num = 128
|
|
395
|
-
secgroup_rule_num = 20
|
|
396
|
-
secgroup_num = 10
|
|
397
400
|
servgroup_num = 10
|
|
398
401
|
servgroup_members_num = 10
|
|
399
402
|
|
|
400
403
|
arglist = [
|
|
401
|
-
'--floating-ips',
|
|
402
|
-
str(floating_ip_num),
|
|
403
|
-
'--fixed-ips',
|
|
404
|
-
str(fix_ip_num),
|
|
405
404
|
'--injected-files',
|
|
406
405
|
str(injected_file_num),
|
|
407
406
|
'--injected-file-size',
|
|
@@ -418,10 +417,6 @@ class TestQuotaSet(TestQuota):
|
|
|
418
417
|
str(instance_num),
|
|
419
418
|
'--properties',
|
|
420
419
|
str(property_num),
|
|
421
|
-
'--secgroup-rules',
|
|
422
|
-
str(secgroup_rule_num),
|
|
423
|
-
'--secgroups',
|
|
424
|
-
str(secgroup_num),
|
|
425
420
|
'--server-groups',
|
|
426
421
|
str(servgroup_num),
|
|
427
422
|
'--server-group-members',
|
|
@@ -429,8 +424,6 @@ class TestQuotaSet(TestQuota):
|
|
|
429
424
|
self.projects[0].name,
|
|
430
425
|
]
|
|
431
426
|
verifylist = [
|
|
432
|
-
('floating_ips', floating_ip_num),
|
|
433
|
-
('fixed_ips', fix_ip_num),
|
|
434
427
|
('injected_files', injected_file_num),
|
|
435
428
|
(
|
|
436
429
|
'injected_file_content_bytes',
|
|
@@ -442,8 +435,6 @@ class TestQuotaSet(TestQuota):
|
|
|
442
435
|
('ram', ram_num),
|
|
443
436
|
('instances', instance_num),
|
|
444
437
|
('metadata_items', property_num),
|
|
445
|
-
('security_group_rules', secgroup_rule_num),
|
|
446
|
-
('security_groups', secgroup_num),
|
|
447
438
|
('server_groups', servgroup_num),
|
|
448
439
|
('server_group_members', servgroup_members_num),
|
|
449
440
|
('force', False),
|
|
@@ -455,18 +446,14 @@ class TestQuotaSet(TestQuota):
|
|
|
455
446
|
result = self.cmd.take_action(parsed_args)
|
|
456
447
|
|
|
457
448
|
kwargs = {
|
|
458
|
-
'floating_ips': floating_ip_num,
|
|
459
|
-
'fixed_ips': fix_ip_num,
|
|
460
449
|
'injected_files': injected_file_num,
|
|
461
|
-
'injected_file_content_bytes': injected_file_size_num,
|
|
450
|
+
'injected_file_content_bytes': injected_file_size_num,
|
|
462
451
|
'injected_file_path_bytes': injected_path_size_num,
|
|
463
452
|
'key_pairs': key_pair_num,
|
|
464
453
|
'cores': core_num,
|
|
465
454
|
'ram': ram_num,
|
|
466
455
|
'instances': instance_num,
|
|
467
456
|
'metadata_items': property_num,
|
|
468
|
-
'security_group_rules': secgroup_rule_num,
|
|
469
|
-
'security_groups': secgroup_num,
|
|
470
457
|
'server_groups': servgroup_num,
|
|
471
458
|
'server_group_members': servgroup_members_num,
|
|
472
459
|
}
|
|
@@ -729,7 +716,7 @@ class TestQuotaSet(TestQuota):
|
|
|
729
716
|
|
|
730
717
|
kwargs_compute = {
|
|
731
718
|
'injected_files': injected_file_num,
|
|
732
|
-
'injected_file_content_bytes': injected_file_size_num,
|
|
719
|
+
'injected_file_content_bytes': injected_file_size_num,
|
|
733
720
|
'injected_file_path_bytes': injected_path_size_num,
|
|
734
721
|
'key_pairs': key_pair_num,
|
|
735
722
|
'cores': core_num,
|
|
@@ -827,7 +814,7 @@ class TestQuotaSet(TestQuota):
|
|
|
827
814
|
|
|
828
815
|
kwargs_compute = {
|
|
829
816
|
'injected_files': injected_file_num,
|
|
830
|
-
'injected_file_content_bytes': injected_file_size_num,
|
|
817
|
+
'injected_file_content_bytes': injected_file_size_num,
|
|
831
818
|
'injected_file_path_bytes': injected_path_size_num,
|
|
832
819
|
'key_pairs': key_pair_num,
|
|
833
820
|
'cores': core_num,
|
|
@@ -966,6 +953,7 @@ class TestQuotaShow(TestQuota):
|
|
|
966
953
|
'pools': {'limit': 0, 'reserved': 0, 'used': 0},
|
|
967
954
|
'ports': {'limit': 0, 'reserved': 0, 'used': 0},
|
|
968
955
|
'rbac_policies': {'limit': 0, 'reserved': 0, 'used': 0},
|
|
956
|
+
'router_routes': {'limit': 0, 'reserved': 0, 'used': 0},
|
|
969
957
|
'routers': {'limit': 0, 'reserved': 0, 'used': 0},
|
|
970
958
|
'security_group_rules': {'limit': 0, 'reserved': 0, 'used': 0},
|
|
971
959
|
'security_groups': {'limit': 0, 'reserved': 0, 'used': 0},
|
|
@@ -1155,7 +1143,7 @@ class TestQuotaShow(TestQuota):
|
|
|
1155
1143
|
|
|
1156
1144
|
self.assertEqual(
|
|
1157
1145
|
[
|
|
1158
|
-
('
|
|
1146
|
+
('floating_ips', 30, 7, 20),
|
|
1159
1147
|
('health_monitors', 0, 0, 0),
|
|
1160
1148
|
('l7_policies', 0, 0, 0),
|
|
1161
1149
|
('listeners', 0, 0, 0),
|
|
@@ -1164,9 +1152,10 @@ class TestQuotaShow(TestQuota):
|
|
|
1164
1152
|
('pools', 0, 0, 0),
|
|
1165
1153
|
('ports', 0, 0, 0),
|
|
1166
1154
|
('rbac_policies', 0, 0, 0),
|
|
1155
|
+
('router_routes', 0, 0, 0),
|
|
1167
1156
|
('routers', 0, 0, 0),
|
|
1168
|
-
('
|
|
1169
|
-
('
|
|
1157
|
+
('security_group_rules', 9, 5, 7),
|
|
1158
|
+
('security_groups', 0, 0, 0),
|
|
1170
1159
|
('subnet_pools', 0, 0, 0),
|
|
1171
1160
|
('subnets', 0, 0, 0),
|
|
1172
1161
|
],
|