fog-maestrodev 1.15.0.20130829165835 → 1.15.0.20130927082724
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +1 -0
- data/fog.gemspec +5 -2
- data/lib/fog.rb +1 -0
- data/lib/fog/atmos/models/storage/file.rb +2 -1
- data/lib/fog/aws.rb +4 -1
- data/lib/fog/aws/data_pipeline.rb +3 -0
- data/lib/fog/aws/elasticache.rb +2 -0
- data/lib/fog/aws/models/auto_scaling/group.rb +12 -12
- data/lib/fog/aws/models/compute/subnet.rb +3 -1
- data/lib/fog/aws/models/elasticache/cluster.rb +3 -1
- data/lib/fog/aws/parsers/redshift/cluster.rb +29 -0
- data/lib/fog/aws/parsers/redshift/cluster_parser.rb +144 -0
- data/lib/fog/aws/parsers/redshift/cluster_security_group_parser.rb +50 -0
- data/lib/fog/aws/parsers/redshift/cluster_snapshot.rb +32 -0
- data/lib/fog/aws/parsers/redshift/cluster_snapshot_parser.rb +66 -0
- data/lib/fog/aws/parsers/redshift/cluster_subnet_group_parser.rb +51 -0
- data/lib/fog/aws/parsers/redshift/create_cluster_parameter_group.rb +30 -0
- data/lib/fog/aws/parsers/redshift/create_cluster_security_group.rb +31 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb +41 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_parameters.rb +48 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_security_groups.rb +38 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb +38 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_subnet_groups.rb +58 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_versions.rb +53 -0
- data/lib/fog/aws/parsers/redshift/describe_clusters.rb +30 -0
- data/lib/fog/aws/parsers/redshift/describe_default_cluster_parameters.rb +49 -0
- data/lib/fog/aws/parsers/redshift/describe_events.rb +44 -0
- data/lib/fog/aws/parsers/redshift/describe_orderable_cluster_options.rb +54 -0
- data/lib/fog/aws/parsers/redshift/describe_reserved_node_offerings.rb +64 -0
- data/lib/fog/aws/parsers/redshift/describe_reserved_nodes.rb +71 -0
- data/lib/fog/aws/parsers/redshift/describe_resize.rb +60 -0
- data/lib/fog/aws/parsers/redshift/purchase_reserved_node_offering.rb +58 -0
- data/lib/fog/aws/parsers/redshift/revoke_cluster_security_group_ingress.rb +31 -0
- data/lib/fog/aws/parsers/redshift/update_cluster_parameter_group_parser.rb +29 -0
- data/lib/fog/aws/parsers/sts/get_session_token.rb +1 -3
- data/lib/fog/aws/redshift.rb +126 -0
- data/lib/fog/aws/requests/compute/run_instances.rb +2 -0
- data/lib/fog/aws/requests/data_pipeline/delete_pipeline.rb +2 -3
- data/lib/fog/aws/requests/data_pipeline/describe_objects.rb +41 -0
- data/lib/fog/aws/requests/data_pipeline/get_pipeline_definition.rb +37 -0
- data/lib/fog/aws/requests/data_pipeline/query_objects.rb +41 -0
- data/lib/fog/aws/requests/elasticache/authorize_cache_security_group_ingress.rb +27 -2
- data/lib/fog/aws/requests/elasticache/create_cache_security_group.rb +23 -2
- data/lib/fog/aws/requests/elasticache/delete_cache_security_group.rb +10 -1
- data/lib/fog/aws/requests/elasticache/describe_cache_security_groups.rb +36 -2
- data/lib/fog/aws/requests/redshift/authorize_cluster_security_group_ingress.rb +56 -0
- data/lib/fog/aws/requests/redshift/authorize_snapshot_access.rb +43 -0
- data/lib/fog/aws/requests/redshift/copy_cluster_snapshot.rb +48 -0
- data/lib/fog/aws/requests/redshift/create_cluster.rb +151 -0
- data/lib/fog/aws/requests/redshift/create_cluster_parameter_group.rb +54 -0
- data/lib/fog/aws/requests/redshift/create_cluster_security_group.rb +42 -0
- data/lib/fog/aws/requests/redshift/create_cluster_snapshot.rb +44 -0
- data/lib/fog/aws/requests/redshift/create_cluster_subnet_group.rb +50 -0
- data/lib/fog/aws/requests/redshift/delete_cluster.rb +51 -0
- data/lib/fog/aws/requests/redshift/delete_cluster_parameter_group.rb +34 -0
- data/lib/fog/aws/requests/redshift/delete_cluster_security_group.rb +33 -0
- data/lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb +44 -0
- data/lib/fog/aws/requests/redshift/delete_cluster_subnet_group.rb +38 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_parameter_groups.rb +48 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_parameters.rb +55 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_security_groups.rb +50 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_snapshots.rb +73 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_subnet_groups.rb +47 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_versions.rb +54 -0
- data/lib/fog/aws/requests/redshift/describe_clusters.rb +49 -0
- data/lib/fog/aws/requests/redshift/describe_default_cluster_parameters.rb +49 -0
- data/lib/fog/aws/requests/redshift/describe_events.rb +80 -0
- data/lib/fog/aws/requests/redshift/describe_orderable_cluster_options.rb +55 -0
- data/lib/fog/aws/requests/redshift/describe_reserved_node_offerings.rb +48 -0
- data/lib/fog/aws/requests/redshift/describe_reserved_nodes.rb +48 -0
- data/lib/fog/aws/requests/redshift/describe_resize.rb +39 -0
- data/lib/fog/aws/requests/redshift/modify_cluster.rb +111 -0
- data/lib/fog/aws/requests/redshift/modify_cluster_parameter_group.rb +44 -0
- data/lib/fog/aws/requests/redshift/modify_cluster_subnet_group.rb +50 -0
- data/lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb +41 -0
- data/lib/fog/aws/requests/redshift/reboot_cluster.rb +37 -0
- data/lib/fog/aws/requests/redshift/reset_cluster_parameter_group.rb +57 -0
- data/lib/fog/aws/requests/redshift/restore_from_cluster_snapshot.rb +77 -0
- data/lib/fog/aws/requests/redshift/revoke_cluster_security_group_ingress.rb +56 -0
- data/lib/fog/aws/requests/redshift/revoke_snapshot_access.rb +44 -0
- data/lib/fog/aws/requests/sts/get_federation_token.rb +42 -0
- data/lib/fog/bin.rb +1 -0
- data/lib/fog/bin/aws.rb +4 -0
- data/lib/fog/bin/openstack.rb +5 -0
- data/lib/fog/bin/rackspace.rb +4 -0
- data/lib/fog/bin/vcloud_director.rb +30 -0
- data/lib/fog/brightbox/requests/compute/update_server.rb +1 -0
- data/lib/fog/cloudsigma/compute.rb +5 -0
- data/lib/fog/cloudsigma/models/fwpolicies.rb +21 -0
- data/lib/fog/cloudsigma/models/fwpolicy.rb +21 -0
- data/lib/fog/cloudsigma/models/rule.rb +21 -0
- data/lib/fog/cloudsigma/requests/list_fwpolicies.rb +18 -0
- data/lib/fog/compute.rb +7 -4
- data/lib/fog/core.rb +1 -0
- data/lib/fog/core/errors.rb +3 -0
- data/lib/fog/dynect/dns.rb +3 -1
- data/lib/fog/dynect/models/dns/records.rb +32 -20
- data/lib/fog/dynect/requests/dns/get_all_records.rb +56 -0
- data/lib/fog/dynect/requests/dns/get_node_list.rb +1 -1
- data/lib/fog/dynect/requests/dns/put_record.rb +76 -0
- data/lib/fog/google/models/compute/flavors.rb +2 -2
- data/lib/fog/google/requests/compute/get_machine_type.rb +7 -2
- data/lib/fog/joyent/compute.rb +1 -1
- data/lib/fog/linode/models/compute/server.rb +1 -1
- data/lib/fog/local/models/storage/directories.rb +1 -1
- data/lib/fog/openstack.rb +1 -0
- data/lib/fog/openstack/models/compute/images.rb +10 -2
- data/lib/fog/openstack/models/compute/server.rb +2 -0
- data/lib/fog/openstack/models/orchestration/stack.rb +52 -0
- data/lib/fog/openstack/models/orchestration/stacks.rb +21 -0
- data/lib/fog/openstack/orchestration.rb +227 -0
- data/lib/fog/openstack/requests/compute/create_server.rb +36 -25
- data/lib/fog/openstack/requests/compute/list_images_detail.rb +4 -3
- data/lib/fog/openstack/requests/orchestration/create_stack.rb +55 -0
- data/lib/fog/openstack/requests/orchestration/delete_stack.rb +36 -0
- data/lib/fog/openstack/requests/orchestration/list_stacks.rb +48 -0
- data/lib/fog/openstack/requests/orchestration/update_stack.rb +41 -0
- data/lib/fog/openstack/requests/storage/get_object.rb +7 -7
- data/lib/fog/openstack/storage.rb +2 -2
- data/lib/fog/orchestration.rb +25 -0
- data/lib/fog/rackspace.rb +1 -0
- data/lib/fog/rackspace/auto_scale.rb +132 -0
- data/lib/fog/rackspace/block_storage.rb +2 -2
- data/lib/fog/rackspace/cdn.rb +23 -23
- data/lib/fog/rackspace/compute.rb +2 -2
- data/lib/fog/rackspace/compute_v2.rb +2 -2
- data/lib/fog/rackspace/databases.rb +2 -2
- data/lib/fog/rackspace/dns.rb +14 -16
- data/lib/fog/rackspace/examples/compute_v2/create_network.rb +81 -0
- data/lib/fog/rackspace/examples/compute_v2/delete_network.rb +78 -0
- data/lib/fog/rackspace/load_balancers.rb +2 -2
- data/lib/fog/rackspace/mock_data.rb +69 -4
- data/lib/fog/rackspace/models/auto_scale/group.rb +207 -0
- data/lib/fog/rackspace/models/auto_scale/group_config.rb +60 -0
- data/lib/fog/rackspace/models/auto_scale/groups.rb +46 -0
- data/lib/fog/rackspace/models/auto_scale/launch_config.rb +44 -0
- data/lib/fog/rackspace/models/auto_scale/policies.rb +65 -0
- data/lib/fog/rackspace/models/auto_scale/policy.rb +206 -0
- data/lib/fog/rackspace/models/auto_scale/webhook.rb +105 -0
- data/lib/fog/rackspace/models/auto_scale/webhooks.rb +64 -0
- data/lib/fog/rackspace/models/block_storage/volume.rb +2 -1
- data/lib/fog/rackspace/models/monitoring/notification.rb +42 -0
- data/lib/fog/rackspace/models/monitoring/notifications.rb +30 -0
- data/lib/fog/rackspace/monitoring.rb +21 -14
- data/lib/fog/rackspace/requests/auto_scale/create_group.rb +61 -0
- data/lib/fog/rackspace/requests/auto_scale/create_policy.rb +45 -0
- data/lib/fog/rackspace/requests/auto_scale/create_webhook.rb +57 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_group.rb +23 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_policy.rb +31 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_webhook.rb +34 -0
- data/lib/fog/rackspace/requests/auto_scale/execute_anonymous_webhook.rb +22 -0
- data/lib/fog/rackspace/requests/auto_scale/execute_policy.rb +22 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group.rb +29 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group_config.rb +30 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group_state.rb +62 -0
- data/lib/fog/rackspace/requests/auto_scale/get_launch_config.rb +30 -0
- data/lib/fog/rackspace/requests/auto_scale/get_policy.rb +35 -0
- data/lib/fog/rackspace/requests/auto_scale/get_webhook.rb +39 -0
- data/lib/fog/rackspace/requests/auto_scale/list_groups.rb +35 -0
- data/lib/fog/rackspace/requests/auto_scale/list_policies.rb +23 -0
- data/lib/fog/rackspace/requests/auto_scale/list_webhooks.rb +33 -0
- data/lib/fog/rackspace/requests/auto_scale/pause_group_state.rb +23 -0
- data/lib/fog/rackspace/requests/auto_scale/resume_group_state.rb +23 -0
- data/lib/fog/rackspace/requests/auto_scale/update_group_config.rb +39 -0
- data/lib/fog/rackspace/requests/auto_scale/update_launch_config.rb +36 -0
- data/lib/fog/rackspace/requests/auto_scale/update_policy.rb +33 -0
- data/lib/fog/rackspace/requests/auto_scale/update_webhook.rb +44 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_server.rb +2 -2
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +5 -6
- data/lib/fog/rackspace/requests/load_balancers/delete_load_balancer.rb +10 -0
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +30 -0
- data/lib/fog/rackspace/requests/monitoring/create_agent_token.rb +31 -0
- data/lib/fog/rackspace/requests/monitoring/create_alarm.rb +32 -0
- data/lib/fog/rackspace/requests/monitoring/create_check.rb +31 -0
- data/lib/fog/rackspace/requests/monitoring/create_entity.rb +32 -0
- data/lib/fog/rackspace/requests/monitoring/create_notification.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/delete_agent_token.rb +32 -0
- data/lib/fog/rackspace/requests/monitoring/delete_alarm.rb +27 -0
- data/lib/fog/rackspace/requests/monitoring/delete_check.rb +26 -0
- data/lib/fog/rackspace/requests/monitoring/delete_entity.rb +27 -0
- data/lib/fog/rackspace/requests/monitoring/delete_notification.rb +16 -0
- data/lib/fog/rackspace/requests/monitoring/get_agent_token.rb +33 -0
- data/lib/fog/rackspace/requests/monitoring/get_alarm.rb +38 -0
- data/lib/fog/rackspace/requests/monitoring/get_check.rb +41 -0
- data/lib/fog/rackspace/requests/monitoring/get_entity.rb +30 -21
- data/lib/fog/rackspace/requests/monitoring/get_notification.rb +50 -0
- data/lib/fog/rackspace/requests/monitoring/list_agent_tokens.rb +39 -0
- data/lib/fog/rackspace/requests/monitoring/list_alarms.rb +50 -0
- data/lib/fog/rackspace/requests/monitoring/list_check_types.rb +72 -0
- data/lib/fog/rackspace/requests/monitoring/list_checks.rb +54 -0
- data/lib/fog/rackspace/requests/monitoring/list_data_points.rb +37 -0
- data/lib/fog/rackspace/requests/monitoring/list_entities.rb +53 -0
- data/lib/fog/rackspace/requests/monitoring/list_metrics.rb +65 -0
- data/lib/fog/rackspace/requests/monitoring/list_notification_plans.rb +55 -0
- data/lib/fog/rackspace/requests/monitoring/list_notifications.rb +67 -0
- data/lib/fog/rackspace/requests/monitoring/list_overview.rb +97 -1
- data/lib/fog/rackspace/requests/monitoring/update_alarm.rb +33 -2
- data/lib/fog/rackspace/requests/monitoring/update_check.rb +32 -2
- data/lib/fog/rackspace/requests/monitoring/update_entity.rb +33 -2
- data/lib/fog/rackspace/requests/monitoring/update_notification.rb +17 -0
- data/lib/fog/rackspace/requests/storage/get_object.rb +7 -9
- data/lib/fog/rackspace/service.rb +16 -8
- data/lib/fog/rackspace/storage.rb +2 -2
- data/lib/fog/vcloud_director.rb +11 -0
- data/lib/fog/vcloud_director/README.md +967 -0
- data/lib/fog/vcloud_director/compute.rb +398 -0
- data/lib/fog/vcloud_director/generators/compute/customization.rb +100 -0
- data/lib/fog/vcloud_director/generators/compute/disks.rb +175 -0
- data/lib/fog/vcloud_director/generators/compute/metadata.rb +105 -0
- data/lib/fog/vcloud_director/generators/compute/vm_network.rb +122 -0
- data/lib/fog/vcloud_director/models/compute/catalog.rb +25 -0
- data/lib/fog/vcloud_director/models/compute/catalog_item.rb +25 -0
- data/lib/fog/vcloud_director/models/compute/catalog_items.rb +32 -0
- data/lib/fog/vcloud_director/models/compute/catalogs.rb +32 -0
- data/lib/fog/vcloud_director/models/compute/disk.rb +51 -0
- data/lib/fog/vcloud_director/models/compute/disks.rb +40 -0
- data/lib/fog/vcloud_director/models/compute/network.rb +26 -0
- data/lib/fog/vcloud_director/models/compute/networks.rb +31 -0
- data/lib/fog/vcloud_director/models/compute/organization.rb +41 -0
- data/lib/fog/vcloud_director/models/compute/organizations.rb +30 -0
- data/lib/fog/vcloud_director/models/compute/tag.rb +36 -0
- data/lib/fog/vcloud_director/models/compute/tags.rb +51 -0
- data/lib/fog/vcloud_director/models/compute/task.rb +58 -0
- data/lib/fog/vcloud_director/models/compute/tasks.rb +31 -0
- data/lib/fog/vcloud_director/models/compute/vapp.rb +56 -0
- data/lib/fog/vcloud_director/models/compute/vapps.rb +34 -0
- data/lib/fog/vcloud_director/models/compute/vdc.rb +33 -0
- data/lib/fog/vcloud_director/models/compute/vdcs.rb +32 -0
- data/lib/fog/vcloud_director/models/compute/vm.rb +99 -0
- data/lib/fog/vcloud_director/models/compute/vm_customization.rb +40 -0
- data/lib/fog/vcloud_director/models/compute/vm_customizations.rb +16 -0
- data/lib/fog/vcloud_director/models/compute/vm_network.rb +30 -0
- data/lib/fog/vcloud_director/models/compute/vm_networks.rb +21 -0
- data/lib/fog/vcloud_director/models/compute/vms.rb +41 -0
- data/lib/fog/vcloud_director/parsers/compute/disks.rb +57 -0
- data/lib/fog/vcloud_director/parsers/compute/metadata.rb +66 -0
- data/lib/fog/vcloud_director/parsers/compute/network.rb +108 -0
- data/lib/fog/vcloud_director/parsers/compute/vm.rb +82 -0
- data/lib/fog/vcloud_director/parsers/compute/vm_customization.rb +56 -0
- data/lib/fog/vcloud_director/parsers/compute/vm_network.rb +111 -0
- data/lib/fog/vcloud_director/parsers/compute/vms.rb +96 -0
- data/lib/fog/vcloud_director/parsers/compute/vms_by_metadata.rb +41 -0
- data/lib/fog/vcloud_director/requests/compute/delete_metadata.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/delete_vapp.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalog.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalog_item.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_current_session.rb +75 -0
- data/lib/fog/vcloud_director/requests/compute/get_href.rb +19 -0
- data/lib/fog/vcloud_director/requests/compute/get_metadata.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_network.rb +21 -0
- data/lib/fog/vcloud_director/requests/compute/get_organization.rb +72 -0
- data/lib/fog/vcloud_director/requests/compute/get_organizations.rb +37 -0
- data/lib/fog/vcloud_director/requests/compute/get_request.rb +17 -0
- data/lib/fog/vcloud_director/requests/compute/get_supported_versions.rb +1160 -0
- data/lib/fog/vcloud_director/requests/compute/get_task.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_tasks_list.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdc.rb +154 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_cpu.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_customization.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_disks.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_memory.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_network.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vms.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vms_by_metadata.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/helper.rb +93 -0
- data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +124 -0
- data/lib/fog/vcloud_director/requests/compute/post_task_cancel.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/post_vapp_undeploy.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/post_vm_metadata.rb +29 -0
- data/lib/fog/vcloud_director/requests/compute/post_vm_poweroff.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/post_vm_poweron.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/put_metadata_value.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_cpu.rb +34 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_customization.rb +24 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_disks.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_memory.rb +34 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_network.rb +24 -0
- data/tests/aws/models/auto_scaling/groups_test.rb +5 -0
- data/tests/aws/models/compute/subnet_tests.rb +1 -1
- data/tests/aws/models/compute/subnets_tests.rb +1 -1
- data/tests/aws/requests/data_pipeline/helper.rb +38 -8
- data/tests/aws/requests/data_pipeline/pipeline_tests.rb +25 -1
- data/tests/aws/requests/elasticache/security_group_tests.rb +3 -2
- data/tests/aws/requests/redshift/cluster_parameter_group_tests.rb +77 -0
- data/tests/aws/requests/redshift/cluster_security_group_tests.rb +44 -0
- data/tests/aws/requests/redshift/cluster_snapshot_tests.rb +75 -0
- data/tests/aws/requests/redshift/cluster_tests.rb +82 -0
- data/tests/aws/requests/sts/get_federation_token_tests.rb +0 -1
- data/tests/aws/signed_params_tests.rb +12 -0
- data/tests/brightbox/compute/helper.rb +1 -0
- data/tests/brightbox/compute/schema.rb +696 -0
- data/tests/brightbox/requests/compute/account_tests.rb +7 -7
- data/tests/brightbox/requests/compute/api_client_tests.rb +6 -6
- data/tests/brightbox/requests/compute/application_test.rb +6 -6
- data/tests/brightbox/requests/compute/cloud_ip_tests.rb +7 -7
- data/tests/brightbox/requests/compute/firewall_policy_tests.rb +5 -5
- data/tests/brightbox/requests/compute/firewall_rule_tests.rb +4 -4
- data/tests/brightbox/requests/compute/helper.rb +0 -688
- data/tests/brightbox/requests/compute/image_tests.rb +2 -2
- data/tests/brightbox/requests/compute/interface_tests.rb +1 -1
- data/tests/brightbox/requests/compute/load_balancer_tests.rb +9 -9
- data/tests/brightbox/requests/compute/server_group_tests.rb +8 -8
- data/tests/brightbox/requests/compute/server_tests.rb +13 -10
- data/tests/brightbox/requests/compute/server_type_tests.rb +2 -2
- data/tests/brightbox/requests/compute/user_tests.rb +3 -3
- data/tests/brightbox/requests/compute/zone_tests.rb +2 -2
- data/tests/compute/helper.rb +3 -2
- data/tests/dynect/requests/dns/dns_tests.rb +29 -0
- data/tests/helpers/mock_helper.rb +3 -0
- data/tests/openstack/requests/compute/server_tests.rb +30 -0
- data/tests/openstack/requests/orchestration/stack_tests.rb +30 -0
- data/tests/rackspace/auto_scale_tests.rb +84 -0
- data/tests/rackspace/models/auto_scale/group.rb +19 -0
- data/tests/rackspace/models/auto_scale/groups.rb +13 -0
- data/tests/rackspace/models/auto_scale/policies.rb +23 -0
- data/tests/rackspace/models/auto_scale/policy.rb +29 -0
- data/tests/rackspace/models/auto_scale/webhook.rb +35 -0
- data/tests/rackspace/models/auto_scale/webhooks.rb +28 -0
- data/tests/rackspace/models/monitoring/notification_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/notifications_tests.rb +10 -0
- data/tests/rackspace/requests/auto_scale/config_tests.rb +51 -0
- data/tests/rackspace/requests/auto_scale/group_tests.rb +38 -0
- data/tests/rackspace/requests/auto_scale/helper.rb +181 -0
- data/tests/rackspace/requests/auto_scale/policy_tests.rb +61 -0
- data/tests/rackspace/requests/auto_scale/webhook_tests.rb +49 -0
- data/tests/rackspace/requests/compute_v2/address_tests.rb +1 -1
- data/tests/rackspace/requests/monitoring/agent_tests.rb +0 -1
- data/tests/rackspace/requests/monitoring/alarm_tests.rb +3 -3
- data/tests/rackspace/requests/monitoring/check_tests.rb +0 -1
- data/tests/rackspace/requests/monitoring/entity_tests.rb +3 -12
- data/tests/rackspace/requests/monitoring/list_tests.rb +18 -6
- data/tests/rackspace/requests/monitoring/notification_tests.rb +46 -0
- data/tests/vcloud_director/models/compute/catalog_items_tests.rb +42 -0
- data/tests/vcloud_director/models/compute/catalogs_tests.rb +42 -0
- data/tests/vcloud_director/models/compute/helper.rb +67 -0
- data/tests/vcloud_director/models/compute/organizations_tests.rb +22 -0
- data/tests/vcloud_director/models/compute/vapp_life_cycle_tests.rb +98 -0
- data/tests/vcloud_director/models/compute/vapp_tests.rb +42 -0
- data/tests/vcloud_director/models/compute/vdcs_tests.rb +45 -0
- data/tests/vcloud_director/models/compute/vms_tests.rb +89 -0
- data/tests/vcloud_director/models/tools/reduced_vcr_requests.rb +27 -0
- data/tests/vcloud_director/requests/compute/organization_tests.rb +48 -0
- data/tests/vcloud_director/requests/compute/session_tests.rb +29 -0
- data/tests/vcloud_director/requests/compute/vdc_tests.rb +90 -0
- data/tests/vcloud_director/requests/compute/versions_tests.rb +28 -0
- metadata +342 -43
@@ -19,13 +19,13 @@ Shindo.tests('Fog::Compute[:brightbox] | image requests', ['brightbox']) do
|
|
19
19
|
pending if Fog.mocking?
|
20
20
|
result = Fog::Compute[:brightbox].list_images
|
21
21
|
@image_id = result.first["id"]
|
22
|
-
|
22
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::IMAGES, {:allow_extra_keys => true}) { result }
|
23
23
|
end
|
24
24
|
|
25
25
|
tests("#get_image('#{@image_id}')") do
|
26
26
|
pending if Fog.mocking?
|
27
27
|
result = Fog::Compute[:brightbox].get_image(@image_id)
|
28
|
-
|
28
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::IMAGE, {:allow_extra_keys => true}) { result }
|
29
29
|
end
|
30
30
|
|
31
31
|
## Until Image creation can be automated, we shouldn't be updating Images randomly
|
@@ -19,7 +19,7 @@ Shindo.tests('Fog::Compute[:brightbox] | interface requests', ['brightbox']) do
|
|
19
19
|
tests("#get_interface('#{@interface_id}')") do
|
20
20
|
pending if Fog.mocking?
|
21
21
|
result = @test_service.get_interface(@interface_id)
|
22
|
-
|
22
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::INTERFACE, {:allow_extra_keys => true}) { result }
|
23
23
|
end
|
24
24
|
|
25
25
|
unless Fog.mocking?
|
@@ -26,7 +26,7 @@ Shindo.tests('Fog::Compute[:brightbox] | load balancer requests', ['brightbox'])
|
|
26
26
|
pending if Fog.mocking?
|
27
27
|
result = Fog::Compute[:brightbox].create_load_balancer(create_options)
|
28
28
|
@load_balancer_id = result["id"]
|
29
|
-
|
29
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, {:allow_extra_keys => true}) { result }
|
30
30
|
end
|
31
31
|
|
32
32
|
unless Fog.mocking?
|
@@ -36,34 +36,34 @@ Shindo.tests('Fog::Compute[:brightbox] | load balancer requests', ['brightbox'])
|
|
36
36
|
tests("#list_load_balancers()") do
|
37
37
|
pending if Fog.mocking?
|
38
38
|
result = Fog::Compute[:brightbox].list_load_balancers
|
39
|
-
|
39
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::LOAD_BALANCERS, {:allow_extra_keys => true}) { result }
|
40
40
|
end
|
41
41
|
|
42
42
|
tests("#get_load_balancer('#{@load_balancer_id}')") do
|
43
43
|
pending if Fog.mocking?
|
44
44
|
result = Fog::Compute[:brightbox].get_load_balancer(@load_balancer_id)
|
45
|
-
|
45
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, {:allow_extra_keys => true}) { result }
|
46
46
|
end
|
47
47
|
|
48
48
|
update_options = {:name => "New name"}
|
49
49
|
tests("#update_load_balancer('#{@load_balancer_id}', #{update_options.inspect})") do
|
50
50
|
pending if Fog.mocking?
|
51
51
|
result = Fog::Compute[:brightbox].update_load_balancer(@load_balancer_id, update_options)
|
52
|
-
|
52
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, {:allow_extra_keys => true}) { result }
|
53
53
|
end
|
54
54
|
|
55
55
|
add_listeners_options = {:listeners=>[{:out=>28080, :in=>8080, :protocol=>"http"}]}
|
56
56
|
tests("#add_listeners_load_balancer('#{@load_balancer_id}', #{add_listeners_options.inspect})") do
|
57
57
|
pending if Fog.mocking?
|
58
58
|
result = Fog::Compute[:brightbox].add_listeners_load_balancer(@load_balancer_id, add_listeners_options)
|
59
|
-
|
59
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, {:allow_extra_keys => true}) { result }
|
60
60
|
end
|
61
61
|
|
62
62
|
remove_listeners_options = {:listeners=>[{:out=>28080, :in=>8080, :protocol=>"http"}]}
|
63
63
|
tests("#remove_listeners_load_balancer('#{@load_balancer_id}', #{remove_listeners_options.inspect})") do
|
64
64
|
pending if Fog.mocking?
|
65
65
|
result = Fog::Compute[:brightbox].remove_listeners_load_balancer(@load_balancer_id, remove_listeners_options)
|
66
|
-
|
66
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, {:allow_extra_keys => true}) { result }
|
67
67
|
end
|
68
68
|
|
69
69
|
unless Fog.mocking?
|
@@ -76,7 +76,7 @@ Shindo.tests('Fog::Compute[:brightbox] | load balancer requests', ['brightbox'])
|
|
76
76
|
tests("#add_nodes_load_balancer('#{@load_balancer_id}', #{add_nodes_options.inspect})") do
|
77
77
|
pending if Fog.mocking?
|
78
78
|
result = Fog::Compute[:brightbox].add_nodes_load_balancer(@load_balancer_id, add_nodes_options)
|
79
|
-
|
79
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, {:allow_extra_keys => true}) { result }
|
80
80
|
end
|
81
81
|
|
82
82
|
# ...before we can attempt to remove either
|
@@ -84,13 +84,13 @@ Shindo.tests('Fog::Compute[:brightbox] | load balancer requests', ['brightbox'])
|
|
84
84
|
tests("#remove_nodes_load_balancer('#{@load_balancer_id}', #{remove_nodes_options.inspect})") do
|
85
85
|
pending if Fog.mocking?
|
86
86
|
result = Fog::Compute[:brightbox].remove_nodes_load_balancer(@load_balancer_id, remove_nodes_options)
|
87
|
-
|
87
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, {:allow_extra_keys => true}) { result }
|
88
88
|
end
|
89
89
|
|
90
90
|
tests("#destroy_load_balancer('#{@load_balancer_id}')") do
|
91
91
|
pending if Fog.mocking?
|
92
92
|
result = Fog::Compute[:brightbox].destroy_load_balancer(@load_balancer_id)
|
93
|
-
|
93
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, {:allow_extra_keys => true}) { result }
|
94
94
|
end
|
95
95
|
|
96
96
|
unless Fog.mocking?
|
@@ -18,55 +18,55 @@ Shindo.tests('Fog::Compute[:brightbox] | server group requests', ['brightbox'])
|
|
18
18
|
pending if Fog.mocking?
|
19
19
|
result = Fog::Compute[:brightbox].create_server_group(create_options)
|
20
20
|
@server_group_id = result["id"]
|
21
|
-
|
21
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_GROUP, {:allow_extra_keys => true}) { result }
|
22
22
|
end
|
23
23
|
|
24
24
|
tests("#list_server_groups") do
|
25
25
|
pending if Fog.mocking?
|
26
26
|
result = Fog::Compute[:brightbox].list_server_groups
|
27
|
-
|
27
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::SERVER_GROUPS, {:allow_extra_keys => true}) { result }
|
28
28
|
@default_group_id = result.select {|grp| grp["default"] == true }.first["id"]
|
29
29
|
end
|
30
30
|
|
31
31
|
tests("#get_server_group('#{@server_group_id}')") do
|
32
32
|
pending if Fog.mocking?
|
33
33
|
result = Fog::Compute[:brightbox].get_server_group(@server_group_id)
|
34
|
-
|
34
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_GROUP, {:allow_extra_keys => true}) { result }
|
35
35
|
end
|
36
36
|
|
37
37
|
update_options = {:name => "Fog@#{Time.now.iso8601}"}
|
38
38
|
tests("#update_server_group('#{@server_group_id}', #{update_options.inspect})") do
|
39
39
|
pending if Fog.mocking?
|
40
40
|
result = Fog::Compute[:brightbox].update_server_group(@server_group_id, update_options)
|
41
|
-
|
41
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_GROUP, {:allow_extra_keys => true}) { result }
|
42
42
|
end
|
43
43
|
|
44
44
|
remove_options = {:servers => [{:server => server_id}]}
|
45
45
|
tests("#remove_servers_server_group('#{@server_group_id}', #{remove_options.inspect})") do
|
46
46
|
pending if Fog.mocking?
|
47
47
|
result = Fog::Compute[:brightbox].remove_servers_server_group(@server_group_id, remove_options)
|
48
|
-
|
48
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_GROUP, {:allow_extra_keys => true}) { result }
|
49
49
|
end
|
50
50
|
|
51
51
|
add_options = {:servers => [{:server => server_id}]}
|
52
52
|
tests("#add_servers_server_group('#{@server_group_id}', #{remove_options.inspect})") do
|
53
53
|
pending if Fog.mocking?
|
54
54
|
result = Fog::Compute[:brightbox].add_servers_server_group(@server_group_id, add_options)
|
55
|
-
|
55
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_GROUP, {:allow_extra_keys => true}) { result }
|
56
56
|
end
|
57
57
|
|
58
58
|
move_options = {:destination => @default_group_id, :servers => [{:server => server_id}]}
|
59
59
|
tests("#move_servers_server_group('#{@server_group_id}', #{move_options.inspect})") do
|
60
60
|
pending if Fog.mocking?
|
61
61
|
result = Fog::Compute[:brightbox].move_servers_server_group(@server_group_id, move_options)
|
62
|
-
|
62
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_GROUP, {:allow_extra_keys => true}) { result }
|
63
63
|
test("group is emptied") { result["servers"].empty? }
|
64
64
|
end
|
65
65
|
|
66
66
|
tests("#destroy_server_group('#{@server_group_id}')") do
|
67
67
|
pending if Fog.mocking?
|
68
68
|
result = Fog::Compute[:brightbox].destroy_server_group(@server_group_id)
|
69
|
-
|
69
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_GROUP, {:allow_extra_keys => true}) { result }
|
70
70
|
end
|
71
71
|
|
72
72
|
unless Fog.mocking?
|
@@ -11,7 +11,7 @@ Shindo.tests('Fog::Compute[:brightbox] | server requests', ['brightbox']) do
|
|
11
11
|
pending if Fog.mocking?
|
12
12
|
result = Fog::Compute[:brightbox].create_server(:image => image_id)
|
13
13
|
server_id = result["id"]
|
14
|
-
|
14
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
15
15
|
end
|
16
16
|
|
17
17
|
unless Fog.mocking?
|
@@ -21,49 +21,52 @@ Shindo.tests('Fog::Compute[:brightbox] | server requests', ['brightbox']) do
|
|
21
21
|
tests("#list_servers") do
|
22
22
|
pending if Fog.mocking?
|
23
23
|
result = Fog::Compute[:brightbox].list_servers
|
24
|
-
|
24
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::SERVERS, {:allow_extra_keys => true}) { result }
|
25
25
|
end
|
26
26
|
|
27
27
|
tests("#get_server('#{server_id}')") do
|
28
28
|
pending if Fog.mocking?
|
29
29
|
result = Fog::Compute[:brightbox].get_server(server_id)
|
30
|
-
|
30
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
31
31
|
end
|
32
32
|
|
33
33
|
tests("#update_server('#{server_id}')") do
|
34
34
|
pending if Fog.mocking?
|
35
35
|
result = Fog::Compute[:brightbox].update_server(server_id, :name => "Fog@#{Time.now.iso8601}")
|
36
|
-
|
36
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
37
37
|
end
|
38
38
|
|
39
39
|
tests("#activate_console_server('#{server_id}')") do
|
40
40
|
pending if Fog.mocking?
|
41
41
|
result = Fog::Compute[:brightbox].activate_console_server(server_id)
|
42
|
-
|
42
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
43
|
+
test("has set 'console_url'") { ! result["console_url"].empty? }
|
44
|
+
test("has set 'console_token'") { ! result["console_token"].empty? }
|
45
|
+
test("has set 'console_token_expires'") { ! result["console_token_expires"].empty? }
|
43
46
|
end
|
44
47
|
|
45
48
|
tests("#stop_server('#{server_id}')") do
|
46
49
|
pending if Fog.mocking?
|
47
50
|
result = Fog::Compute[:brightbox].stop_server(server_id)
|
48
|
-
|
51
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
49
52
|
end
|
50
53
|
|
51
54
|
tests("#start_server('#{server_id}')") do
|
52
55
|
pending if Fog.mocking?
|
53
56
|
result = Fog::Compute[:brightbox].start_server(server_id)
|
54
|
-
|
57
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
55
58
|
end
|
56
59
|
|
57
60
|
tests("#shutdown_server('#{server_id}')") do
|
58
61
|
pending if Fog.mocking?
|
59
62
|
result = Fog::Compute[:brightbox].shutdown_server(server_id)
|
60
|
-
|
63
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
61
64
|
end
|
62
65
|
|
63
66
|
tests("#snapshot_server('#{server_id}')") do
|
64
67
|
pending if Fog.mocking?
|
65
68
|
result = Fog::Compute[:brightbox].snapshot_server(server_id)
|
66
|
-
|
69
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
67
70
|
# Server should be exclusively for our test so assume we can delete the snapshot
|
68
71
|
snapshot_id = result["snapshots"].first["id"]
|
69
72
|
@snapshot = Fog::Compute[:brightbox].images.get(snapshot_id)
|
@@ -74,7 +77,7 @@ Shindo.tests('Fog::Compute[:brightbox] | server requests', ['brightbox']) do
|
|
74
77
|
tests("#destroy_server('#{server_id}')") do
|
75
78
|
pending if Fog.mocking?
|
76
79
|
result = Fog::Compute[:brightbox].destroy_server(server_id)
|
77
|
-
|
80
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, {:allow_extra_keys => true}) { result }
|
78
81
|
end
|
79
82
|
|
80
83
|
end
|
@@ -6,13 +6,13 @@ Shindo.tests('Fog::Compute[:brightbox] | server type requests', ['brightbox']) d
|
|
6
6
|
pending if Fog.mocking?
|
7
7
|
result = Fog::Compute[:brightbox].list_server_types
|
8
8
|
@server_type_id = result.first["id"]
|
9
|
-
|
9
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::SERVER_TYPES, {:allow_extra_keys => true}) { result }
|
10
10
|
end
|
11
11
|
|
12
12
|
tests("#get_server_type('#{@server_type_id}')") do
|
13
13
|
pending if Fog.mocking?
|
14
14
|
result = Fog::Compute[:brightbox].get_server_type(@server_type_id)
|
15
|
-
|
15
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_TYPE, {:allow_extra_keys => true}) { result }
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
@@ -6,20 +6,20 @@ Shindo.tests('Fog::Compute[:brightbox] | user requests', ['brightbox']) do
|
|
6
6
|
pending if Fog.mocking?
|
7
7
|
result = Fog::Compute[:brightbox].list_users
|
8
8
|
@user_id = result.first["id"]
|
9
|
-
|
9
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::USERS, {:allow_extra_keys => true}) { result }
|
10
10
|
end
|
11
11
|
|
12
12
|
tests("#get_user('#{@user_id}')") do
|
13
13
|
pending if Fog.mocking?
|
14
14
|
result = Fog::Compute[:brightbox].get_user(@user_id)
|
15
|
-
|
15
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::USER, {:allow_extra_keys => true}) { result }
|
16
16
|
end
|
17
17
|
|
18
18
|
update_options = { :name => "Example User" }
|
19
19
|
tests("#update_user('#{@user_id}', #{update_options.inspect})") do
|
20
20
|
pending if Fog.mocking?
|
21
21
|
result = Fog::Compute[:brightbox].update_user(@user_id, update_options)
|
22
|
-
|
22
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::USER, {:allow_extra_keys => true}) { result }
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
@@ -6,13 +6,13 @@ Shindo.tests('Fog::Compute[:brightbox] | zone requests', ['brightbox']) do
|
|
6
6
|
pending if Fog.mocking?
|
7
7
|
result = Fog::Compute[:brightbox].list_zones
|
8
8
|
@zone_id = result.first["id"]
|
9
|
-
|
9
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::ZONES, {:allow_extra_keys => true}) { result }
|
10
10
|
end
|
11
11
|
|
12
12
|
tests("#get_zone('#{@zone_id}')") do
|
13
13
|
pending if Fog.mocking?
|
14
14
|
result = Fog::Compute[:brightbox].get_zone(@zone_id)
|
15
|
-
|
15
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::ZONE, {:allow_extra_keys => true}) { result }
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
data/tests/compute/helper.rb
CHANGED
@@ -120,9 +120,10 @@ def compute_providers
|
|
120
120
|
}
|
121
121
|
},
|
122
122
|
:rackspace => {
|
123
|
-
:provider_attributes => { :version => :
|
123
|
+
:provider_attributes => { :version => :v2 },
|
124
124
|
:server_attributes => {
|
125
|
-
:image_id =>
|
125
|
+
:image_id => "23b564c9-c3e6-49f9-bc68-86c7a9ab5018", # Ubuntu 12.04 LTS (Precise Pangolin)
|
126
|
+
:flavor_id => 2,
|
126
127
|
:name => "fog_#{Time.now.to_i}"
|
127
128
|
},
|
128
129
|
:mocked => true
|
@@ -79,6 +79,27 @@ Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do
|
|
79
79
|
@dns.post_record('A', @domain, @fqdn, {'address' => '1.2.3.4'}).body
|
80
80
|
end
|
81
81
|
|
82
|
+
put_record_format = shared_format.merge({
|
83
|
+
'data' => {
|
84
|
+
'fqdn' => String,
|
85
|
+
'ARecords' => [
|
86
|
+
{
|
87
|
+
'rdata' => {
|
88
|
+
'address' => String
|
89
|
+
}
|
90
|
+
}
|
91
|
+
],
|
92
|
+
'record_id' => Integer,
|
93
|
+
'record_type' => String,
|
94
|
+
'ttl' => Integer,
|
95
|
+
'zone' => String
|
96
|
+
}
|
97
|
+
})
|
98
|
+
|
99
|
+
tests("put_record('A', '#{@domain}', '#{@fqdn}', 'address' => '1.2.3.4')").formats(post_record_format) do
|
100
|
+
@dns.put_record('A', @domain, @fqdn, {'address' => '1.2.3.4'}).body
|
101
|
+
end
|
102
|
+
|
82
103
|
publish_zone_format = shared_format.merge({
|
83
104
|
'data' => {
|
84
105
|
'serial' => Integer,
|
@@ -116,6 +137,14 @@ Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do
|
|
116
137
|
@dns.get_node_list(@domain).body
|
117
138
|
end
|
118
139
|
|
140
|
+
get_all_records_format = shared_format.merge({
|
141
|
+
'data' => [String]
|
142
|
+
})
|
143
|
+
|
144
|
+
tests("get_all_records('#{@domain}')").formats(get_all_records_format) do
|
145
|
+
@dns.get_all_records(@domain).body
|
146
|
+
end
|
147
|
+
|
119
148
|
get_records_format = shared_format.merge({
|
120
149
|
'data' => [String]
|
121
150
|
})
|
@@ -82,6 +82,9 @@ if Fog.mock?
|
|
82
82
|
:vcloud_host => 'vcloud_host',
|
83
83
|
:vcloud_password => 'vcloud_password',
|
84
84
|
:vcloud_username => 'vcloud_username',
|
85
|
+
:vcloud_director_host => 'vcloud_director_host',
|
86
|
+
:vcloud_director_password => 'vcloud_director_password',
|
87
|
+
:vcloud_director_username => 'vcd_user@vcd_org_name',
|
85
88
|
:voxel_api_key => 'voxel_api_key',
|
86
89
|
:voxel_api_secret => 'voxel_api_secret',
|
87
90
|
:zerigo_email => 'zerigo_email',
|
@@ -16,6 +16,7 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
16
16
|
'created' => String,
|
17
17
|
'updated' => String,
|
18
18
|
'user_id' => String,
|
19
|
+
'config_drive' => String,
|
19
20
|
}
|
20
21
|
|
21
22
|
@create_format = {
|
@@ -24,6 +25,10 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
24
25
|
'links' => Array,
|
25
26
|
'security_groups' => Fog::Nullable::Array,
|
26
27
|
}
|
28
|
+
|
29
|
+
@reservation_format = {
|
30
|
+
'reservation_id' => String,
|
31
|
+
}
|
27
32
|
|
28
33
|
@image_format = {
|
29
34
|
'created' => Fog::Nullable::String,
|
@@ -58,6 +63,31 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
58
63
|
Fog::Compute[:openstack].get_server_details(@server_id).body['server']
|
59
64
|
end
|
60
65
|
|
66
|
+
#MULTI_CREATE
|
67
|
+
tests('#create_server("test", #{@image_id} , 19, {"min_count" => 2, "return_reservation_id" => "True"})').formats(@reservation_format, false) do
|
68
|
+
data = Fog::Compute[:openstack].create_server("test", @image_id, @flavor_id, {"min_count" => 2, "return_reservation_id" => "True"}).body
|
69
|
+
@reservation_id = data['reservation_id']
|
70
|
+
data
|
71
|
+
end
|
72
|
+
|
73
|
+
tests('#validate_multi_create') do
|
74
|
+
passed = false
|
75
|
+
@multi_create_servers = []
|
76
|
+
if Fog.mocking?
|
77
|
+
@multi_create_servers = [Fog::Mock.random_numbers(6).to_s, Fog::Mock.random_numbers(6).to_s]
|
78
|
+
else
|
79
|
+
@multi_create_servers = Fog::Compute[:openstack].list_servers_detail({'reservation_id' => @reservation_id}).body['servers'].map{|server| server['id']}
|
80
|
+
end
|
81
|
+
if (@multi_create_servers.size == 2)
|
82
|
+
passed = true
|
83
|
+
end
|
84
|
+
end
|
85
|
+
unless Fog.mocking?
|
86
|
+
@multi_create_servers.each {|server|
|
87
|
+
Fog::Compute[:openstack].servers.get(server).destroy
|
88
|
+
}
|
89
|
+
end
|
90
|
+
|
61
91
|
#LIST
|
62
92
|
#NOTE: we can remove strict=false if we remove uuid from GET /servers
|
63
93
|
tests('#list_servers').formats({'servers' => [OpenStack::Compute::Formats::SUMMARY]}, false) do
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Shindo.tests('Fog::Orchestration[:openstack] | stack requests', ['openstack']) do
|
2
|
+
@stack_format = {
|
3
|
+
'links' => Array,
|
4
|
+
'id' => String,
|
5
|
+
'stack_name' => String,
|
6
|
+
'description' => Fog::Nullable::String,
|
7
|
+
'stack_status' => String,
|
8
|
+
'stack_status_reason' => String,
|
9
|
+
'creation_time' => Time,
|
10
|
+
'updated_time' => Time
|
11
|
+
}
|
12
|
+
|
13
|
+
tests('success') do
|
14
|
+
tests('#create_stack("teststack")').formats({}) do
|
15
|
+
Fog::Orchestration[:openstack].create_stack("teststack").body
|
16
|
+
end
|
17
|
+
|
18
|
+
tests('#list_stacks').formats({'stacks' => [@stack_format]}) do
|
19
|
+
Fog::Orchestration[:openstack].list_stacks.body
|
20
|
+
end
|
21
|
+
|
22
|
+
tests('#update_stack("teststack")').formats({}) do
|
23
|
+
Fog::Orchestration[:openstack].update_stack("teststack").body
|
24
|
+
end
|
25
|
+
|
26
|
+
tests('#delete_stack("teststack", "id")').formats({}) do
|
27
|
+
Fog::Orchestration[:openstack].delete_stack("teststack", "id").body
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|