gitlab-fog-google 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codecov.yml +2 -0
- data/.editorconfig +11 -0
- data/.fog.example +25 -0
- data/.gitignore +20 -0
- data/.gitlab-ci.yml +13 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +255 -0
- data/.ruby-gemset +1 -0
- data/.travis.yml +33 -0
- data/CHANGELOG.md +464 -0
- data/CONTRIBUTING.md +175 -0
- data/CONTRIBUTORS.md +95 -0
- data/Gemfile +13 -0
- data/LICENSE.md +20 -0
- data/MIGRATING.md +1 -0
- data/README.md +177 -0
- data/Rakefile +19 -0
- data/SECURITY.md +16 -0
- data/ci/.gitignore +1 -0
- data/ci/README.md +65 -0
- data/ci/build-head-pipeline.yml +173 -0
- data/ci/credentials.yml.template +28 -0
- data/ci/docker-image/Dockerfile +18 -0
- data/ci/integration-pipeline.yml +226 -0
- data/ci/pipeline-dev.yml +58 -0
- data/ci/tasks/run-int.sh +53 -0
- data/ci/tasks/run-int.yml +18 -0
- data/ci/tasks/utils.sh +10 -0
- data/examples/backend_services.rb +23 -0
- data/examples/bootstrap.rb +27 -0
- data/examples/create_instance.rb +73 -0
- data/examples/create_instance_with_attached_disk.rb +53 -0
- data/examples/dns/project.rb +7 -0
- data/examples/dns/zones.rb +43 -0
- data/examples/get_list_images.rb +42 -0
- data/examples/get_list_snapshots.rb +28 -0
- data/examples/image_create.rb +17 -0
- data/examples/l7_load_balance.rb +79 -0
- data/examples/load-balance.rb +116 -0
- data/examples/metadata.rb +40 -0
- data/examples/monitoring/metric_descriptors.rb +24 -0
- data/examples/monitoring/monitored_resource_descriptors.rb +24 -0
- data/examples/monitoring/timeseries_collection.rb +32 -0
- data/examples/network.rb +55 -0
- data/examples/precreated_client.rb +24 -0
- data/examples/pubsub/subscriptions.rb +54 -0
- data/examples/pubsub/topics.rb +33 -0
- data/examples/sql/flags.rb +11 -0
- data/examples/sql/instances.rb +38 -0
- data/examples/sql/operations.rb +24 -0
- data/examples/sql/ssl_certs.rb +32 -0
- data/examples/sql/tiers.rb +11 -0
- data/examples/storage.rb +49 -0
- data/examples/storage_json.rb +37 -0
- data/gitlab-fog-google.gemspec +44 -0
- data/lib/fog/bin/google.rb +97 -0
- data/lib/fog/compute/google.rb +304 -0
- data/lib/fog/compute/google/mock.rb +845 -0
- data/lib/fog/compute/google/models/address.rb +133 -0
- data/lib/fog/compute/google/models/addresses.rb +63 -0
- data/lib/fog/compute/google/models/backend_service.rb +86 -0
- data/lib/fog/compute/google/models/backend_services.rb +24 -0
- data/lib/fog/compute/google/models/disk.rb +155 -0
- data/lib/fog/compute/google/models/disk_type.rb +27 -0
- data/lib/fog/compute/google/models/disk_types.rb +42 -0
- data/lib/fog/compute/google/models/disks.rb +88 -0
- data/lib/fog/compute/google/models/firewall.rb +94 -0
- data/lib/fog/compute/google/models/firewalls.rb +24 -0
- data/lib/fog/compute/google/models/forwarding_rule.rb +79 -0
- data/lib/fog/compute/google/models/forwarding_rules.rb +44 -0
- data/lib/fog/compute/google/models/global_address.rb +58 -0
- data/lib/fog/compute/google/models/global_addresses.rb +46 -0
- data/lib/fog/compute/google/models/global_forwarding_rule.rb +78 -0
- data/lib/fog/compute/google/models/global_forwarding_rules.rb +24 -0
- data/lib/fog/compute/google/models/http_health_check.rb +104 -0
- data/lib/fog/compute/google/models/http_health_checks.rb +24 -0
- data/lib/fog/compute/google/models/image.rb +81 -0
- data/lib/fog/compute/google/models/images.rb +109 -0
- data/lib/fog/compute/google/models/instance_group.rb +90 -0
- data/lib/fog/compute/google/models/instance_group_manager.rb +51 -0
- data/lib/fog/compute/google/models/instance_group_managers.rb +45 -0
- data/lib/fog/compute/google/models/instance_groups.rb +63 -0
- data/lib/fog/compute/google/models/instance_template.rb +47 -0
- data/lib/fog/compute/google/models/instance_templates.rb +24 -0
- data/lib/fog/compute/google/models/machine_type.rb +23 -0
- data/lib/fog/compute/google/models/machine_types.rb +46 -0
- data/lib/fog/compute/google/models/network.rb +60 -0
- data/lib/fog/compute/google/models/networks.rb +24 -0
- data/lib/fog/compute/google/models/operation.rb +73 -0
- data/lib/fog/compute/google/models/operations.rb +45 -0
- data/lib/fog/compute/google/models/project.rb +28 -0
- data/lib/fog/compute/google/models/projects.rb +19 -0
- data/lib/fog/compute/google/models/region.rb +30 -0
- data/lib/fog/compute/google/models/regions.rb +24 -0
- data/lib/fog/compute/google/models/route.rb +49 -0
- data/lib/fog/compute/google/models/routes.rb +24 -0
- data/lib/fog/compute/google/models/server.rb +604 -0
- data/lib/fog/compute/google/models/servers.rb +120 -0
- data/lib/fog/compute/google/models/snapshot.rb +62 -0
- data/lib/fog/compute/google/models/snapshots.rb +32 -0
- data/lib/fog/compute/google/models/ssl_certificate.rb +42 -0
- data/lib/fog/compute/google/models/ssl_certificates.rb +24 -0
- data/lib/fog/compute/google/models/subnetwork.rb +83 -0
- data/lib/fog/compute/google/models/subnetworks.rb +43 -0
- data/lib/fog/compute/google/models/target_http_proxies.rb +24 -0
- data/lib/fog/compute/google/models/target_http_proxy.rb +73 -0
- data/lib/fog/compute/google/models/target_https_proxies.rb +24 -0
- data/lib/fog/compute/google/models/target_https_proxy.rb +105 -0
- data/lib/fog/compute/google/models/target_instance.rb +67 -0
- data/lib/fog/compute/google/models/target_instances.rb +46 -0
- data/lib/fog/compute/google/models/target_pool.rb +171 -0
- data/lib/fog/compute/google/models/target_pools.rb +43 -0
- data/lib/fog/compute/google/models/url_map.rb +121 -0
- data/lib/fog/compute/google/models/url_maps.rb +24 -0
- data/lib/fog/compute/google/models/zone.rb +25 -0
- data/lib/fog/compute/google/models/zones.rb +24 -0
- data/lib/fog/compute/google/real.rb +24 -0
- data/lib/fog/compute/google/requests/abandon_instances.rb +28 -0
- data/lib/fog/compute/google/requests/add_backend_service_backends.rb +19 -0
- data/lib/fog/compute/google/requests/add_instance_group_instances.rb +37 -0
- data/lib/fog/compute/google/requests/add_server_access_config.rb +32 -0
- data/lib/fog/compute/google/requests/add_target_pool_health_checks.rb +32 -0
- data/lib/fog/compute/google/requests/add_target_pool_instances.rb +30 -0
- data/lib/fog/compute/google/requests/attach_disk.rb +22 -0
- data/lib/fog/compute/google/requests/create_disk_snapshot.rb +24 -0
- data/lib/fog/compute/google/requests/delete_address.rb +24 -0
- data/lib/fog/compute/google/requests/delete_backend_service.rb +19 -0
- data/lib/fog/compute/google/requests/delete_disk.rb +25 -0
- data/lib/fog/compute/google/requests/delete_firewall.rb +19 -0
- data/lib/fog/compute/google/requests/delete_forwarding_rule.rb +20 -0
- data/lib/fog/compute/google/requests/delete_global_address.rb +19 -0
- data/lib/fog/compute/google/requests/delete_global_forwarding_rule.rb +19 -0
- data/lib/fog/compute/google/requests/delete_global_operation.rb +20 -0
- data/lib/fog/compute/google/requests/delete_http_health_check.rb +19 -0
- data/lib/fog/compute/google/requests/delete_image.rb +19 -0
- data/lib/fog/compute/google/requests/delete_instance_group.rb +19 -0
- data/lib/fog/compute/google/requests/delete_instance_group_manager.rb +19 -0
- data/lib/fog/compute/google/requests/delete_instance_template.rb +19 -0
- data/lib/fog/compute/google/requests/delete_network.rb +19 -0
- data/lib/fog/compute/google/requests/delete_region_operation.rb +22 -0
- data/lib/fog/compute/google/requests/delete_route.rb +23 -0
- data/lib/fog/compute/google/requests/delete_server.rb +19 -0
- data/lib/fog/compute/google/requests/delete_server_access_config.rb +22 -0
- data/lib/fog/compute/google/requests/delete_snapshot.rb +19 -0
- data/lib/fog/compute/google/requests/delete_ssl_certificate.rb +19 -0
- data/lib/fog/compute/google/requests/delete_subnetwork.rb +31 -0
- data/lib/fog/compute/google/requests/delete_target_http_proxy.rb +19 -0
- data/lib/fog/compute/google/requests/delete_target_https_proxy.rb +19 -0
- data/lib/fog/compute/google/requests/delete_target_instance.rb +20 -0
- data/lib/fog/compute/google/requests/delete_target_pool.rb +20 -0
- data/lib/fog/compute/google/requests/delete_url_map.rb +19 -0
- data/lib/fog/compute/google/requests/delete_zone_operation.rb +22 -0
- data/lib/fog/compute/google/requests/deprecate_image.rb +22 -0
- data/lib/fog/compute/google/requests/detach_disk.rb +20 -0
- data/lib/fog/compute/google/requests/expand_subnetwork_ip_cidr_range.rb +38 -0
- data/lib/fog/compute/google/requests/get_address.rb +24 -0
- data/lib/fog/compute/google/requests/get_backend_service.rb +19 -0
- data/lib/fog/compute/google/requests/get_backend_service_health.rb +24 -0
- data/lib/fog/compute/google/requests/get_disk.rb +24 -0
- data/lib/fog/compute/google/requests/get_disk_type.rb +19 -0
- data/lib/fog/compute/google/requests/get_firewall.rb +19 -0
- data/lib/fog/compute/google/requests/get_forwarding_rule.rb +22 -0
- data/lib/fog/compute/google/requests/get_global_address.rb +19 -0
- data/lib/fog/compute/google/requests/get_global_forwarding_rule.rb +19 -0
- data/lib/fog/compute/google/requests/get_global_operation.rb +23 -0
- data/lib/fog/compute/google/requests/get_http_health_check.rb +19 -0
- data/lib/fog/compute/google/requests/get_image.rb +20 -0
- data/lib/fog/compute/google/requests/get_image_from_family.rb +26 -0
- data/lib/fog/compute/google/requests/get_instance_group.rb +19 -0
- data/lib/fog/compute/google/requests/get_instance_group_manager.rb +19 -0
- data/lib/fog/compute/google/requests/get_instance_template.rb +19 -0
- data/lib/fog/compute/google/requests/get_machine_type.rb +20 -0
- data/lib/fog/compute/google/requests/get_network.rb +19 -0
- data/lib/fog/compute/google/requests/get_project.rb +19 -0
- data/lib/fog/compute/google/requests/get_region.rb +19 -0
- data/lib/fog/compute/google/requests/get_region_operation.rb +20 -0
- data/lib/fog/compute/google/requests/get_route.rb +22 -0
- data/lib/fog/compute/google/requests/get_server.rb +19 -0
- data/lib/fog/compute/google/requests/get_server_serial_port_output.rb +38 -0
- data/lib/fog/compute/google/requests/get_snapshot.rb +20 -0
- data/lib/fog/compute/google/requests/get_ssl_certificate.rb +19 -0
- data/lib/fog/compute/google/requests/get_subnetwork.rb +29 -0
- data/lib/fog/compute/google/requests/get_target_http_proxy.rb +19 -0
- data/lib/fog/compute/google/requests/get_target_https_proxy.rb +19 -0
- data/lib/fog/compute/google/requests/get_target_instance.rb +20 -0
- data/lib/fog/compute/google/requests/get_target_pool.rb +20 -0
- data/lib/fog/compute/google/requests/get_target_pool_health.rb +24 -0
- data/lib/fog/compute/google/requests/get_url_map.rb +19 -0
- data/lib/fog/compute/google/requests/get_zone.rb +19 -0
- data/lib/fog/compute/google/requests/get_zone_operation.rb +25 -0
- data/lib/fog/compute/google/requests/insert_address.rb +30 -0
- data/lib/fog/compute/google/requests/insert_backend_service.rb +23 -0
- data/lib/fog/compute/google/requests/insert_disk.rb +48 -0
- data/lib/fog/compute/google/requests/insert_firewall.rb +65 -0
- data/lib/fog/compute/google/requests/insert_forwarding_rule.rb +29 -0
- data/lib/fog/compute/google/requests/insert_global_address.rb +25 -0
- data/lib/fog/compute/google/requests/insert_global_forwarding_rule.rb +26 -0
- data/lib/fog/compute/google/requests/insert_http_health_check.rb +24 -0
- data/lib/fog/compute/google/requests/insert_image.rb +23 -0
- data/lib/fog/compute/google/requests/insert_instance_group.rb +37 -0
- data/lib/fog/compute/google/requests/insert_instance_group_manager.rb +31 -0
- data/lib/fog/compute/google/requests/insert_instance_template.rb +38 -0
- data/lib/fog/compute/google/requests/insert_network.rb +34 -0
- data/lib/fog/compute/google/requests/insert_route.rb +35 -0
- data/lib/fog/compute/google/requests/insert_server.rb +122 -0
- data/lib/fog/compute/google/requests/insert_ssl_certificate.rb +27 -0
- data/lib/fog/compute/google/requests/insert_subnetwork.rb +61 -0
- data/lib/fog/compute/google/requests/insert_target_http_proxy.rb +26 -0
- data/lib/fog/compute/google/requests/insert_target_https_proxy.rb +29 -0
- data/lib/fog/compute/google/requests/insert_target_instance.rb +25 -0
- data/lib/fog/compute/google/requests/insert_target_pool.rb +22 -0
- data/lib/fog/compute/google/requests/insert_url_map.rb +37 -0
- data/lib/fog/compute/google/requests/invalidate_url_map_cache.rb +24 -0
- data/lib/fog/compute/google/requests/list_addresses.rb +28 -0
- data/lib/fog/compute/google/requests/list_aggregated_addresses.rb +23 -0
- data/lib/fog/compute/google/requests/list_aggregated_disk_types.rb +24 -0
- data/lib/fog/compute/google/requests/list_aggregated_disks.rb +32 -0
- data/lib/fog/compute/google/requests/list_aggregated_forwarding_rules.rb +24 -0
- data/lib/fog/compute/google/requests/list_aggregated_instance_group_managers.rb +26 -0
- data/lib/fog/compute/google/requests/list_aggregated_instance_groups.rb +19 -0
- data/lib/fog/compute/google/requests/list_aggregated_machine_types.rb +24 -0
- data/lib/fog/compute/google/requests/list_aggregated_servers.rb +24 -0
- data/lib/fog/compute/google/requests/list_aggregated_subnetworks.rb +36 -0
- data/lib/fog/compute/google/requests/list_aggregated_target_instances.rb +26 -0
- data/lib/fog/compute/google/requests/list_aggregated_target_pools.rb +26 -0
- data/lib/fog/compute/google/requests/list_backend_services.rb +22 -0
- data/lib/fog/compute/google/requests/list_disk_types.rb +24 -0
- data/lib/fog/compute/google/requests/list_disks.rb +28 -0
- data/lib/fog/compute/google/requests/list_firewalls.rb +24 -0
- data/lib/fog/compute/google/requests/list_forwarding_rules.rb +25 -0
- data/lib/fog/compute/google/requests/list_global_addresses.rb +26 -0
- data/lib/fog/compute/google/requests/list_global_forwarding_rules.rb +24 -0
- data/lib/fog/compute/google/requests/list_global_operations.rb +27 -0
- data/lib/fog/compute/google/requests/list_http_health_checks.rb +24 -0
- data/lib/fog/compute/google/requests/list_images.rb +25 -0
- data/lib/fog/compute/google/requests/list_instance_group_instances.rb +21 -0
- data/lib/fog/compute/google/requests/list_instance_group_managers.rb +22 -0
- data/lib/fog/compute/google/requests/list_instance_groups.rb +19 -0
- data/lib/fog/compute/google/requests/list_instance_templates.rb +26 -0
- data/lib/fog/compute/google/requests/list_machine_types.rb +25 -0
- data/lib/fog/compute/google/requests/list_networks.rb +24 -0
- data/lib/fog/compute/google/requests/list_region_operations.rb +29 -0
- data/lib/fog/compute/google/requests/list_regions.rb +23 -0
- data/lib/fog/compute/google/requests/list_routes.rb +28 -0
- data/lib/fog/compute/google/requests/list_servers.rb +24 -0
- data/lib/fog/compute/google/requests/list_snapshots.rb +22 -0
- data/lib/fog/compute/google/requests/list_ssl_certificates.rb +26 -0
- data/lib/fog/compute/google/requests/list_subnetworks.rb +39 -0
- data/lib/fog/compute/google/requests/list_target_http_proxies.rb +25 -0
- data/lib/fog/compute/google/requests/list_target_https_proxies.rb +24 -0
- data/lib/fog/compute/google/requests/list_target_instances.rb +27 -0
- data/lib/fog/compute/google/requests/list_target_pools.rb +26 -0
- data/lib/fog/compute/google/requests/list_url_maps.rb +25 -0
- data/lib/fog/compute/google/requests/list_zone_operations.rb +28 -0
- data/lib/fog/compute/google/requests/list_zones.rb +26 -0
- data/lib/fog/compute/google/requests/patch_firewall.rb +27 -0
- data/lib/fog/compute/google/requests/patch_url_map.rb +21 -0
- data/lib/fog/compute/google/requests/recreate_instances.rb +28 -0
- data/lib/fog/compute/google/requests/remove_instance_group_instances.rb +37 -0
- data/lib/fog/compute/google/requests/remove_target_pool_health_checks.rb +30 -0
- data/lib/fog/compute/google/requests/remove_target_pool_instance.rb +30 -0
- data/lib/fog/compute/google/requests/remove_target_pool_instances.rb +30 -0
- data/lib/fog/compute/google/requests/reset_server.rb +19 -0
- data/lib/fog/compute/google/requests/reset_windows_password.rb +154 -0
- data/lib/fog/compute/google/requests/set_common_instance_metadata.rb +23 -0
- data/lib/fog/compute/google/requests/set_forwarding_rule_target.rb +23 -0
- data/lib/fog/compute/google/requests/set_global_forwarding_rule_target.rb +22 -0
- data/lib/fog/compute/google/requests/set_instance_template.rb +28 -0
- data/lib/fog/compute/google/requests/set_server_disk_auto_delete.rb +26 -0
- data/lib/fog/compute/google/requests/set_server_machine_type.rb +23 -0
- data/lib/fog/compute/google/requests/set_server_metadata.rb +39 -0
- data/lib/fog/compute/google/requests/set_server_scheduling.rb +24 -0
- data/lib/fog/compute/google/requests/set_server_tags.rb +25 -0
- data/lib/fog/compute/google/requests/set_snapshot_labels.rb +25 -0
- data/lib/fog/compute/google/requests/set_subnetwork_private_ip_google_access.rb +42 -0
- data/lib/fog/compute/google/requests/set_target_http_proxy_url_map.rb +24 -0
- data/lib/fog/compute/google/requests/set_target_https_proxy_ssl_certificates.rb +24 -0
- data/lib/fog/compute/google/requests/set_target_https_proxy_url_map.rb +24 -0
- data/lib/fog/compute/google/requests/set_target_pool_backup.rb +31 -0
- data/lib/fog/compute/google/requests/start_server.rb +19 -0
- data/lib/fog/compute/google/requests/stop_server.rb +19 -0
- data/lib/fog/compute/google/requests/update_firewall.rb +49 -0
- data/lib/fog/compute/google/requests/update_http_health_check.rb +25 -0
- data/lib/fog/compute/google/requests/update_url_map.rb +28 -0
- data/lib/fog/compute/google/requests/validate_url_map.rb +24 -0
- data/lib/fog/dns/google.rb +67 -0
- data/lib/fog/dns/google/mock.rb +33 -0
- data/lib/fog/dns/google/models/change.rb +38 -0
- data/lib/fog/dns/google/models/changes.rb +50 -0
- data/lib/fog/dns/google/models/project.rb +73 -0
- data/lib/fog/dns/google/models/projects.rb +23 -0
- data/lib/fog/dns/google/models/record.rb +108 -0
- data/lib/fog/dns/google/models/records.rb +53 -0
- data/lib/fog/dns/google/models/zone.rb +72 -0
- data/lib/fog/dns/google/models/zones.rb +32 -0
- data/lib/fog/dns/google/real.rb +19 -0
- data/lib/fog/dns/google/requests/create_change.rb +29 -0
- data/lib/fog/dns/google/requests/create_managed_zone.rb +29 -0
- data/lib/fog/dns/google/requests/delete_managed_zone.rb +23 -0
- data/lib/fog/dns/google/requests/get_change.rb +23 -0
- data/lib/fog/dns/google/requests/get_managed_zone.rb +23 -0
- data/lib/fog/dns/google/requests/get_project.rb +24 -0
- data/lib/fog/dns/google/requests/list_changes.rb +30 -0
- data/lib/fog/dns/google/requests/list_managed_zones.rb +26 -0
- data/lib/fog/dns/google/requests/list_resource_record_sets.rb +30 -0
- data/lib/fog/google.rb +53 -0
- data/lib/fog/google/mock.rb +14 -0
- data/lib/fog/google/models/monitoring/metric_descriptor.rb +23 -0
- data/lib/fog/google/models/monitoring/metric_descriptors.rb +43 -0
- data/lib/fog/google/models/monitoring/monitored_resource_descriptor.rb +20 -0
- data/lib/fog/google/models/monitoring/monitored_resource_descriptors.rb +37 -0
- data/lib/fog/google/models/monitoring/timeseries.rb +19 -0
- data/lib/fog/google/models/monitoring/timeseries_collection.rb +48 -0
- data/lib/fog/google/models/pubsub/received_message.rb +40 -0
- data/lib/fog/google/models/pubsub/subscription.rb +86 -0
- data/lib/fog/google/models/pubsub/subscriptions.rb +33 -0
- data/lib/fog/google/models/pubsub/topic.rb +71 -0
- data/lib/fog/google/models/pubsub/topics.rb +32 -0
- data/lib/fog/google/models/sql/backup_run.rb +37 -0
- data/lib/fog/google/models/sql/backup_runs.rb +38 -0
- data/lib/fog/google/models/sql/flag.rb +23 -0
- data/lib/fog/google/models/sql/flags.rb +21 -0
- data/lib/fog/google/models/sql/instance.rb +339 -0
- data/lib/fog/google/models/sql/instances.rb +39 -0
- data/lib/fog/google/models/sql/operation.rb +67 -0
- data/lib/fog/google/models/sql/operations.rb +47 -0
- data/lib/fog/google/models/sql/ssl_cert.rb +77 -0
- data/lib/fog/google/models/sql/ssl_certs.rb +49 -0
- data/lib/fog/google/models/sql/tier.rb +20 -0
- data/lib/fog/google/models/sql/tiers.rb +21 -0
- data/lib/fog/google/models/sql/user.rb +52 -0
- data/lib/fog/google/models/sql/users.rb +21 -0
- data/lib/fog/google/monitoring.rb +60 -0
- data/lib/fog/google/monitoring/mock.rb +35 -0
- data/lib/fog/google/monitoring/real.rb +20 -0
- data/lib/fog/google/pubsub.rb +69 -0
- data/lib/fog/google/pubsub/mock.rb +34 -0
- data/lib/fog/google/pubsub/real.rb +21 -0
- data/lib/fog/google/requests/monitoring/create_metric_descriptor.rb +51 -0
- data/lib/fog/google/requests/monitoring/create_timeseries.rb +29 -0
- data/lib/fog/google/requests/monitoring/delete_metric_descriptor.rb +19 -0
- data/lib/fog/google/requests/monitoring/get_metric_descriptor.rb +19 -0
- data/lib/fog/google/requests/monitoring/get_monitored_resource_descriptor.rb +19 -0
- data/lib/fog/google/requests/monitoring/list_metric_descriptors.rb +26 -0
- data/lib/fog/google/requests/monitoring/list_monitored_resource_descriptors.rb +29 -0
- data/lib/fog/google/requests/monitoring/list_timeseries.rb +55 -0
- data/lib/fog/google/requests/pubsub/acknowledge_subscription.rb +29 -0
- data/lib/fog/google/requests/pubsub/create_subscription.rb +37 -0
- data/lib/fog/google/requests/pubsub/create_topic.rb +23 -0
- data/lib/fog/google/requests/pubsub/delete_subscription.rb +21 -0
- data/lib/fog/google/requests/pubsub/delete_topic.rb +21 -0
- data/lib/fog/google/requests/pubsub/get_subscription.rb +21 -0
- data/lib/fog/google/requests/pubsub/get_topic.rb +21 -0
- data/lib/fog/google/requests/pubsub/list_subscriptions.rb +29 -0
- data/lib/fog/google/requests/pubsub/list_topics.rb +29 -0
- data/lib/fog/google/requests/pubsub/publish_topic.rb +28 -0
- data/lib/fog/google/requests/pubsub/pull_subscription.rb +40 -0
- data/lib/fog/google/requests/sql/clone_instance.rb +42 -0
- data/lib/fog/google/requests/sql/delete_backup_run.rb +23 -0
- data/lib/fog/google/requests/sql/delete_instance.rb +24 -0
- data/lib/fog/google/requests/sql/delete_ssl_cert.rb +24 -0
- data/lib/fog/google/requests/sql/delete_user.rb +24 -0
- data/lib/fog/google/requests/sql/export_instance.rb +55 -0
- data/lib/fog/google/requests/sql/get_backup_run.rb +23 -0
- data/lib/fog/google/requests/sql/get_instance.rb +24 -0
- data/lib/fog/google/requests/sql/get_operation.rb +24 -0
- data/lib/fog/google/requests/sql/get_ssl_cert.rb +24 -0
- data/lib/fog/google/requests/sql/import_instance.rb +44 -0
- data/lib/fog/google/requests/sql/insert_backup_run.rb +28 -0
- data/lib/fog/google/requests/sql/insert_instance.rb +28 -0
- data/lib/fog/google/requests/sql/insert_ssl_cert.rb +30 -0
- data/lib/fog/google/requests/sql/insert_user.rb +25 -0
- data/lib/fog/google/requests/sql/list_backup_runs.rb +27 -0
- data/lib/fog/google/requests/sql/list_flags.rb +24 -0
- data/lib/fog/google/requests/sql/list_instances.rb +27 -0
- data/lib/fog/google/requests/sql/list_operations.rb +28 -0
- data/lib/fog/google/requests/sql/list_ssl_certs.rb +24 -0
- data/lib/fog/google/requests/sql/list_tiers.rb +24 -0
- data/lib/fog/google/requests/sql/list_users.rb +24 -0
- data/lib/fog/google/requests/sql/reset_instance_ssl_config.rb +26 -0
- data/lib/fog/google/requests/sql/restart_instance.rb +24 -0
- data/lib/fog/google/requests/sql/restore_instance_backup.rb +31 -0
- data/lib/fog/google/requests/sql/update_instance.rb +31 -0
- data/lib/fog/google/requests/sql/update_user.rb +27 -0
- data/lib/fog/google/shared.rb +253 -0
- data/lib/fog/google/sql.rb +104 -0
- data/lib/fog/google/sql/mock.rb +40 -0
- data/lib/fog/google/sql/real.rb +21 -0
- data/lib/fog/google/version.rb +5 -0
- data/lib/fog/parsers/storage/google.rb +15 -0
- data/lib/fog/parsers/storage/google/access_control_list.rb +44 -0
- data/lib/fog/parsers/storage/google/copy_object.rb +18 -0
- data/lib/fog/parsers/storage/google/get_bucket.rb +58 -0
- data/lib/fog/parsers/storage/google/get_bucket_logging.rb +36 -0
- data/lib/fog/parsers/storage/google/get_bucket_object_versions.rb +88 -0
- data/lib/fog/parsers/storage/google/get_bucket_versioning.rb +20 -0
- data/lib/fog/parsers/storage/google/get_request_payment.rb +16 -0
- data/lib/fog/parsers/storage/google/get_service.rb +28 -0
- data/lib/fog/storage/google.rb +20 -0
- data/lib/fog/storage/google_json.rb +74 -0
- data/lib/fog/storage/google_json/mock.rb +27 -0
- data/lib/fog/storage/google_json/models/directories.rb +41 -0
- data/lib/fog/storage/google_json/models/directory.rb +61 -0
- data/lib/fog/storage/google_json/models/file.rb +126 -0
- data/lib/fog/storage/google_json/models/files.rb +64 -0
- data/lib/fog/storage/google_json/real.rb +171 -0
- data/lib/fog/storage/google_json/requests/copy_object.rb +34 -0
- data/lib/fog/storage/google_json/requests/delete_bucket.rb +23 -0
- data/lib/fog/storage/google_json/requests/delete_object.rb +24 -0
- data/lib/fog/storage/google_json/requests/delete_object_url.rb +39 -0
- data/lib/fog/storage/google_json/requests/get_bucket.rb +43 -0
- data/lib/fog/storage/google_json/requests/get_bucket_acl.rb +32 -0
- data/lib/fog/storage/google_json/requests/get_object.rb +85 -0
- data/lib/fog/storage/google_json/requests/get_object_acl.rb +35 -0
- data/lib/fog/storage/google_json/requests/get_object_http_url.rb +32 -0
- data/lib/fog/storage/google_json/requests/get_object_https_url.rb +33 -0
- data/lib/fog/storage/google_json/requests/get_object_metadata.rb +32 -0
- data/lib/fog/storage/google_json/requests/get_object_url.rb +21 -0
- data/lib/fog/storage/google_json/requests/list_bucket_acl.rb +26 -0
- data/lib/fog/storage/google_json/requests/list_buckets.rb +30 -0
- data/lib/fog/storage/google_json/requests/list_object_acl.rb +29 -0
- data/lib/fog/storage/google_json/requests/list_objects.rb +48 -0
- data/lib/fog/storage/google_json/requests/put_bucket.rb +42 -0
- data/lib/fog/storage/google_json/requests/put_bucket_acl.rb +29 -0
- data/lib/fog/storage/google_json/requests/put_object.rb +102 -0
- data/lib/fog/storage/google_json/requests/put_object_acl.rb +35 -0
- data/lib/fog/storage/google_json/requests/put_object_url.rb +42 -0
- data/lib/fog/storage/google_json/utils.rb +40 -0
- data/lib/fog/storage/google_xml.rb +38 -0
- data/lib/fog/storage/google_xml/mock.rb +102 -0
- data/lib/fog/storage/google_xml/models/directories.rb +34 -0
- data/lib/fog/storage/google_xml/models/directory.rb +65 -0
- data/lib/fog/storage/google_xml/models/file.rb +130 -0
- data/lib/fog/storage/google_xml/models/files.rb +95 -0
- data/lib/fog/storage/google_xml/real.rb +108 -0
- data/lib/fog/storage/google_xml/requests/copy_object.rb +62 -0
- data/lib/fog/storage/google_xml/requests/delete_bucket.rb +39 -0
- data/lib/fog/storage/google_xml/requests/delete_object.rb +44 -0
- data/lib/fog/storage/google_xml/requests/delete_object_url.rb +42 -0
- data/lib/fog/storage/google_xml/requests/get_bucket.rb +95 -0
- data/lib/fog/storage/google_xml/requests/get_bucket_acl.rb +53 -0
- data/lib/fog/storage/google_xml/requests/get_object.rb +96 -0
- data/lib/fog/storage/google_xml/requests/get_object_acl.rb +62 -0
- data/lib/fog/storage/google_xml/requests/get_object_http_url.rb +37 -0
- data/lib/fog/storage/google_xml/requests/get_object_https_url.rb +37 -0
- data/lib/fog/storage/google_xml/requests/get_object_url.rb +31 -0
- data/lib/fog/storage/google_xml/requests/get_service.rb +44 -0
- data/lib/fog/storage/google_xml/requests/head_object.rb +55 -0
- data/lib/fog/storage/google_xml/requests/put_bucket.rb +71 -0
- data/lib/fog/storage/google_xml/requests/put_bucket_acl.rb +58 -0
- data/lib/fog/storage/google_xml/requests/put_object.rb +85 -0
- data/lib/fog/storage/google_xml/requests/put_object_acl.rb +58 -0
- data/lib/fog/storage/google_xml/requests/put_object_url.rb +42 -0
- data/lib/fog/storage/google_xml/utils.rb +83 -0
- data/tasks/bundler.rake +3 -0
- data/tasks/changelog.rake +39 -0
- data/tasks/console.rake +17 -0
- data/tasks/lint.rake +9 -0
- data/tasks/test.rake +115 -0
- data/test/helpers/client_helper.rb +63 -0
- data/test/helpers/integration_test_helper.rb +108 -0
- data/test/helpers/test_collection.rb +60 -0
- data/test/helpers/test_helper.rb +24 -0
- data/test/integration/compute/core_compute/test_client_options.rb +12 -0
- data/test/integration/compute/core_compute/test_coverage.rb +6 -0
- data/test/integration/compute/core_compute/test_disk_types.rb +43 -0
- data/test/integration/compute/core_compute/test_disks.rb +53 -0
- data/test/integration/compute/core_compute/test_images.rb +32 -0
- data/test/integration/compute/core_compute/test_machine_types.rb +55 -0
- data/test/integration/compute/core_compute/test_operations.rb +45 -0
- data/test/integration/compute/core_compute/test_projects.rb +19 -0
- data/test/integration/compute/core_compute/test_regions.rb +33 -0
- data/test/integration/compute/core_compute/test_servers.rb +149 -0
- data/test/integration/compute/core_compute/test_snapshots.rb +21 -0
- data/test/integration/compute/core_compute/test_zones.rb +35 -0
- data/test/integration/compute/core_networking/test_addresses.rb +107 -0
- data/test/integration/compute/core_networking/test_coverage.rb +6 -0
- data/test/integration/compute/core_networking/test_firewalls.rb +11 -0
- data/test/integration/compute/core_networking/test_networks.rb +41 -0
- data/test/integration/compute/core_networking/test_routes.rb +26 -0
- data/test/integration/compute/core_networking/test_subnetworks.rb +11 -0
- data/test/integration/compute/instance_groups/test_coverage.rb +6 -0
- data/test/integration/compute/instance_groups/test_instance_group_managers.rb +11 -0
- data/test/integration/compute/instance_groups/test_instance_groups.rb +11 -0
- data/test/integration/compute/instance_groups/test_instance_templates.rb +11 -0
- data/test/integration/compute/loadbalancing/test_backend_services.rb +11 -0
- data/test/integration/compute/loadbalancing/test_coverage.rb +6 -0
- data/test/integration/compute/loadbalancing/test_forwarding_rules.rb +11 -0
- data/test/integration/compute/loadbalancing/test_global_addresses.rb +11 -0
- data/test/integration/compute/loadbalancing/test_global_forwarding_rules.rb +11 -0
- data/test/integration/compute/loadbalancing/test_http_health_checks.rb +11 -0
- data/test/integration/compute/loadbalancing/test_ssl_certificates.rb +11 -0
- data/test/integration/compute/loadbalancing/test_target_http_proxies.rb +11 -0
- data/test/integration/compute/loadbalancing/test_target_https_proxies.rb +11 -0
- data/test/integration/compute/loadbalancing/test_target_instances.rb +11 -0
- data/test/integration/compute/loadbalancing/test_target_pools.rb +55 -0
- data/test/integration/compute/loadbalancing/test_url_maps.rb +11 -0
- data/test/integration/factories/addresses_factory.rb +20 -0
- data/test/integration/factories/backend_services_factory.rb +19 -0
- data/test/integration/factories/collection_factory.rb +52 -0
- data/test/integration/factories/disks_factory.rb +22 -0
- data/test/integration/factories/firewalls_factory.rb +13 -0
- data/test/integration/factories/forwarding_rules_factory.rb +25 -0
- data/test/integration/factories/global_addresses_factory.rb +15 -0
- data/test/integration/factories/global_forwarding_rules_factory.rb +20 -0
- data/test/integration/factories/http_health_checks_factory.rb +11 -0
- data/test/integration/factories/images_factory.rb +16 -0
- data/test/integration/factories/instance_group_manager_factory.rb +30 -0
- data/test/integration/factories/instance_groups_factory.rb +20 -0
- data/test/integration/factories/instance_template_factory.rb +24 -0
- data/test/integration/factories/networks_factory.rb +16 -0
- data/test/integration/factories/servers_factory.rb +30 -0
- data/test/integration/factories/sql_certs_factory.rb +20 -0
- data/test/integration/factories/sql_instances_factory.rb +19 -0
- data/test/integration/factories/sql_users_factory.rb +23 -0
- data/test/integration/factories/ssl_certificates_factory.rb +13 -0
- data/test/integration/factories/subnetworks_factory.rb +26 -0
- data/test/integration/factories/target_http_proxies_factory.rb +19 -0
- data/test/integration/factories/target_https_proxies_factory.rb +26 -0
- data/test/integration/factories/target_instances_factory.rb +24 -0
- data/test/integration/factories/target_pools_factory.rb +28 -0
- data/test/integration/factories/url_maps_factory.rb +19 -0
- data/test/integration/monitoring/test_coverage.rb +6 -0
- data/test/integration/monitoring/test_metric_descriptors.rb +131 -0
- data/test/integration/monitoring/test_monitored_resource_descriptors.rb +37 -0
- data/test/integration/monitoring/test_timeseries.rb +238 -0
- data/test/integration/pubsub/pubsub_shared.rb +75 -0
- data/test/integration/pubsub/test_coverage.rb +6 -0
- data/test/integration/pubsub/test_pubsub_models.rb +135 -0
- data/test/integration/pubsub/test_pubsub_requests.rb +105 -0
- data/test/integration/sql/test_certs.rb +50 -0
- data/test/integration/sql/test_common_flags.rb +31 -0
- data/test/integration/sql/test_common_tiers.rb +26 -0
- data/test/integration/sql/test_coverage.rb +6 -0
- data/test/integration/sql/test_instances.rb +101 -0
- data/test/integration/sql/test_users.rb +37 -0
- data/test/integration/storage/storage_shared.rb +96 -0
- data/test/integration/storage/test_buckets.rb +112 -0
- data/test/integration/storage/test_coverage.rb +6 -0
- data/test/integration/storage/test_directories.rb +67 -0
- data/test/integration/storage/test_files.rb +168 -0
- data/test/integration/storage/test_objects.rb +203 -0
- data/test/integration/test_authentication.rb +38 -0
- data/test/unit/compute/test_common_collections.rb +42 -0
- data/test/unit/compute/test_common_models.rb +35 -0
- data/test/unit/compute/test_server.rb +29 -0
- data/test/unit/dns/test_common_collections.rb +43 -0
- data/test/unit/monitoring/test_comon_collections.rb +44 -0
- data/test/unit/pubsub/test_common_collections.rb +35 -0
- data/test/unit/sql/test_common_collections.rb +46 -0
- data/test/unit/storage/test_common_json_collections.rb +38 -0
- data/test/unit/storage/test_common_xml_collections.rb +50 -0
- data/test/unit/storage/test_json_requests.rb +44 -0
- data/test/unit/storage/test_xml_requests.rb +60 -0
- metadata +897 -0
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "bundler/setup"
|
3
|
+
|
4
|
+
# Immediately sync all stdout so that tools like buildbot can
|
5
|
+
# immediately load in the output.
|
6
|
+
$stdout.sync = true
|
7
|
+
$stderr.sync = true
|
8
|
+
|
9
|
+
# Load all the rake tasks from the "tasks" folder. This folder
|
10
|
+
# allows us to nicely separate rake tasks into individual files
|
11
|
+
# based on their role, which makes development and debugging easier
|
12
|
+
# than one monolithic file.
|
13
|
+
task_dir = File.expand_path("../tasks", __FILE__)
|
14
|
+
Dir["#{task_dir}/**/*.rake"].each do |task_file|
|
15
|
+
load task_file
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Default Task"
|
19
|
+
task :default => "test:travis"
|
data/SECURITY.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
Our README.md is the end all be all for authoritative information, but the following is our security policy.
|
4
|
+
|
5
|
+
## Supported Versions
|
6
|
+
|
7
|
+
Versions with :white_check_mark: are supported. All other versions need to be upgraded.
|
8
|
+
|
9
|
+
| Version | Supported |
|
10
|
+
| ------- | ------------------ |
|
11
|
+
| 1.9.x | :white_check_mark: |
|
12
|
+
| 0.1.x | :white_check_mark: until July 1st, 2019 |
|
13
|
+
|
14
|
+
## Reporting a Vulnerability
|
15
|
+
|
16
|
+
Please file an issue here to report a vulnerability. For immediate escalations, please email nat@natwelch.com and temikus@google.com with the subject `[Fog-Google Security Issue] Description`.
|
data/ci/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
credentials.yml
|
data/ci/README.md
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
# fog-google CI
|
2
|
+
|
3
|
+
This pipeline performs integration tests against every PR with the
|
4
|
+
`integrate` label. This allows whitelisted PRs to be tested
|
5
|
+
automatically before being merged. Status is updated on the
|
6
|
+
PR when the test completes.
|
7
|
+
|
8
|
+
## Setup
|
9
|
+
|
10
|
+
In order to run the fog-google Concourse Pipeline you must have an existing
|
11
|
+
[Concourse](http://concourse.ci) environment.
|
12
|
+
|
13
|
+
To deploy the pipeline:
|
14
|
+
|
15
|
+
* Download the `fly` binary from the Concourse web interface and place it in your `$PATH`.
|
16
|
+
|
17
|
+
* Login to your Concourse:
|
18
|
+
|
19
|
+
```
|
20
|
+
fly -t fog-ci login -c <YOUR CONCOURSE URL>
|
21
|
+
```
|
22
|
+
|
23
|
+
* Update the [credentials.yml](https://github.com/fog/fog-google/blob/master/ci/credentials.yml.tpl)
|
24
|
+
file. See [Credentials Requirements](#credentials-requirements) for specific instructions.
|
25
|
+
|
26
|
+
* Set the fog-google pipelines:
|
27
|
+
|
28
|
+
```
|
29
|
+
fly -t fog set-pipeline -p build-head -c build-head-pipeline.yml -l credentials.yml
|
30
|
+
fly -t fog-ci set-pipeline -p pr-integration -c integration-pipeline.yml -l credentials.yml
|
31
|
+
```
|
32
|
+
|
33
|
+
* Unpause the fog-google pipeline:
|
34
|
+
|
35
|
+
```
|
36
|
+
fly -t fog-ci unpause-pipeline -p pr-integration
|
37
|
+
```
|
38
|
+
|
39
|
+
## Credentials Requirements
|
40
|
+
|
41
|
+
Several external pieces of authentication are needed for credentials.yml
|
42
|
+
|
43
|
+
1. A JSON Service Account File for a service account with at least Editor access to the project.
|
44
|
+
* To get a Service Account File, see [here](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount)
|
45
|
+
and create using the Project/Editor role.
|
46
|
+
|
47
|
+
1. A [Github Access Token](https://github.com/blog/1509-personal-api-tokens) with at least
|
48
|
+
`repo:status` access and a private key with push access to the `fog/fog-google` repositoy.
|
49
|
+
|
50
|
+
1. A [Codecov.io](https://codecov.io/) token for tracking test coverage.
|
51
|
+
|
52
|
+
These items are equivalent to your login credentials for their resources.
|
53
|
+
|
54
|
+
## Login Gotchas
|
55
|
+
|
56
|
+
* Our concourse pipeline is using GitHub auth, providing access to manipulate the pipeline to the members of the [fog-google team](https://github.com/orgs/fog/teams/fog-google), managed through the OAuth application managed by [fog-google bot](https://github.com/fog-google-bot).
|
57
|
+
|
58
|
+
* If logging into a specific team, ie `fog-google`, use `--team-name fog-google` to specify that.
|
59
|
+
|
60
|
+
## Dockerfile
|
61
|
+
|
62
|
+
The [docker-image](https://github.com/fog/fog-google/blob/master/ci/docker-image) directory contains
|
63
|
+
the Dockerfile necessary for recreating the Docker image used in tasks. This is referenced
|
64
|
+
in a per-task basis as `image_resource`, ie in
|
65
|
+
image_resource [run-int.yml](https://github.com/fog/fog-google/blob/master/ci/tasks/run-int.yml)
|
@@ -0,0 +1,173 @@
|
|
1
|
+
jobs:
|
2
|
+
- name: manual-trigger
|
3
|
+
plan:
|
4
|
+
- get: master
|
5
|
+
trigger: false
|
6
|
+
|
7
|
+
- name: integration-compute-core_compute
|
8
|
+
serial: true
|
9
|
+
plan:
|
10
|
+
- get: fog-google-src
|
11
|
+
resource: master
|
12
|
+
version: every
|
13
|
+
trigger: true
|
14
|
+
passed:
|
15
|
+
- manual-trigger
|
16
|
+
|
17
|
+
- task: run-integration-tests
|
18
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
19
|
+
params:
|
20
|
+
rake_task: test:compute-core_compute
|
21
|
+
codecov_token: {{codecov_token}}
|
22
|
+
google_project: {{google_project}}
|
23
|
+
google_json_key_data: {{google_json_key_data}}
|
24
|
+
|
25
|
+
- name: integration-compute-core_networking
|
26
|
+
serial: true
|
27
|
+
plan:
|
28
|
+
- get: fog-google-src
|
29
|
+
resource: master
|
30
|
+
version: every
|
31
|
+
trigger: true
|
32
|
+
passed:
|
33
|
+
- manual-trigger
|
34
|
+
|
35
|
+
- task: run-integration-tests
|
36
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
37
|
+
params:
|
38
|
+
rake_task: test:compute-core_networking
|
39
|
+
codecov_token: {{codecov_token}}
|
40
|
+
google_project: {{google_project}}
|
41
|
+
google_json_key_data: {{google_json_key_data}}
|
42
|
+
|
43
|
+
- name: integration-compute-instance_groups
|
44
|
+
serial: true
|
45
|
+
plan:
|
46
|
+
- get: fog-google-src
|
47
|
+
resource: master
|
48
|
+
version: every
|
49
|
+
trigger: true
|
50
|
+
passed:
|
51
|
+
- manual-trigger
|
52
|
+
|
53
|
+
- task: run-integration-tests
|
54
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
55
|
+
params:
|
56
|
+
rake_task: test:compute-instance_groups
|
57
|
+
codecov_token: {{codecov_token}}
|
58
|
+
google_project: {{google_project}}
|
59
|
+
google_json_key_data: {{google_json_key_data}}
|
60
|
+
|
61
|
+
- name: integration-compute-loadbalancing
|
62
|
+
serial: true
|
63
|
+
plan:
|
64
|
+
- get: fog-google-src
|
65
|
+
resource: master
|
66
|
+
version: every
|
67
|
+
trigger: true
|
68
|
+
passed:
|
69
|
+
- manual-trigger
|
70
|
+
|
71
|
+
- task: run-integration-tests
|
72
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
73
|
+
params:
|
74
|
+
rake_task: test:compute-loadbalancing
|
75
|
+
codecov_token: {{codecov_token}}
|
76
|
+
google_project: {{google_project}}
|
77
|
+
google_json_key_data: {{google_json_key_data}}
|
78
|
+
|
79
|
+
- name: integration-tests-monitoring
|
80
|
+
serial: true
|
81
|
+
plan:
|
82
|
+
- get: fog-google-src
|
83
|
+
resource: master
|
84
|
+
version: every
|
85
|
+
trigger: true
|
86
|
+
passed:
|
87
|
+
- manual-trigger
|
88
|
+
|
89
|
+
- task: run-integration-tests
|
90
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
91
|
+
params:
|
92
|
+
rake_task: test:monitoring
|
93
|
+
codecov_token: {{codecov_token}}
|
94
|
+
google_project: {{google_project}}
|
95
|
+
google_json_key_data: {{google_json_key_data}}
|
96
|
+
|
97
|
+
- name: integration-tests-pubsub
|
98
|
+
serial: true
|
99
|
+
plan:
|
100
|
+
- get: fog-google-src
|
101
|
+
resource: master
|
102
|
+
version: every
|
103
|
+
trigger: true
|
104
|
+
passed:
|
105
|
+
- manual-trigger
|
106
|
+
|
107
|
+
- task: run-integration-tests
|
108
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
109
|
+
params:
|
110
|
+
rake_task: test:pubsub
|
111
|
+
codecov_token: {{codecov_token}}
|
112
|
+
google_project: {{google_project}}
|
113
|
+
google_json_key_data: {{google_json_key_data}}
|
114
|
+
|
115
|
+
- name: integration-sqlv1
|
116
|
+
serial: true
|
117
|
+
plan:
|
118
|
+
- get: fog-google-src
|
119
|
+
resource: master
|
120
|
+
version: every
|
121
|
+
trigger: true
|
122
|
+
passed:
|
123
|
+
- manual-trigger
|
124
|
+
|
125
|
+
- task: run-integration-tests
|
126
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
127
|
+
params:
|
128
|
+
rake_task: test:sql-sqlv1
|
129
|
+
codecov_token: {{codecov_token}}
|
130
|
+
google_project: {{google_project}}
|
131
|
+
google_json_key_data: {{google_json_key_data}}
|
132
|
+
|
133
|
+
- name: integration-sqlv2
|
134
|
+
serial: true
|
135
|
+
plan:
|
136
|
+
- get: fog-google-src
|
137
|
+
resource: master
|
138
|
+
version: every
|
139
|
+
trigger: true
|
140
|
+
passed:
|
141
|
+
- manual-trigger
|
142
|
+
|
143
|
+
- task: run-integration-tests
|
144
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
145
|
+
params:
|
146
|
+
rake_task: test:sql-sqlv2
|
147
|
+
codecov_token: {{codecov_token}}
|
148
|
+
google_project: {{google_project}}
|
149
|
+
google_json_key_data: {{google_json_key_data}}
|
150
|
+
|
151
|
+
- name: integration-tests-storage
|
152
|
+
serial: true
|
153
|
+
plan:
|
154
|
+
- get: fog-google-src
|
155
|
+
resource: master
|
156
|
+
version: every
|
157
|
+
trigger: true
|
158
|
+
passed:
|
159
|
+
- manual-trigger
|
160
|
+
- task: run-integration-tests
|
161
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
162
|
+
params:
|
163
|
+
rake_task: test:storage
|
164
|
+
codecov_token: {{codecov_token}}
|
165
|
+
google_project: {{google_project}}
|
166
|
+
google_json_key_data: {{google_json_key_data}}
|
167
|
+
|
168
|
+
resources:
|
169
|
+
- name: master
|
170
|
+
type: git
|
171
|
+
source:
|
172
|
+
uri: https://github.com/fog/fog-google.git
|
173
|
+
branch: master
|
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
# Codecov.io token to upload coverage reports
|
3
|
+
codecov_token:
|
4
|
+
# Google Cloud Platform project to run under
|
5
|
+
google_project:
|
6
|
+
# Google Compute Engine Service Account JSON
|
7
|
+
google_json_key_data: |
|
8
|
+
{
|
9
|
+
"type": "service_account",
|
10
|
+
"project_id": "myproject",
|
11
|
+
"private_key_id": "number",
|
12
|
+
"private_key": "-----BEGIN PRIVATE KEY-----\nIAMAVERYLONGKEYAMA==\n-----END PRIVATE KEY-----\n",
|
13
|
+
"client_email": "account@myproject.iam.gserviceaccount.com",
|
14
|
+
"client_id": "7435873987592347",
|
15
|
+
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
16
|
+
"token_uri": "https://accounts.google.com/o/oauth2/token",
|
17
|
+
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
18
|
+
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/account%40myproject.iam.gserviceaccount.com"
|
19
|
+
}
|
20
|
+
|
21
|
+
# An access token with repo:status access from an account that has push access to the repo
|
22
|
+
github_access_token:
|
23
|
+
# A SSH private key associated with the access token's account or
|
24
|
+
# a repo push deploy key
|
25
|
+
github_private_key: |
|
26
|
+
-----BEGIN RSA PRIVATE KEY-----
|
27
|
+
IAMAVERYLONGKEYAMA=
|
28
|
+
-----END RSA PRIVATE KEY-----
|
@@ -0,0 +1,18 @@
|
|
1
|
+
FROM ubuntu:18.04
|
2
|
+
|
3
|
+
# Common dependencies for the CI env and gems with C extensions
|
4
|
+
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -qq update && apt-get -y -qq install \
|
5
|
+
build-essential \
|
6
|
+
curl \
|
7
|
+
git \
|
8
|
+
zlib1g-dev \
|
9
|
+
libssl-dev \
|
10
|
+
libreadline-dev \
|
11
|
+
libyaml-dev \
|
12
|
+
libxml2-dev \
|
13
|
+
libxslt-dev
|
14
|
+
|
15
|
+
# Ubuntu 18.04 will fetch us Ruby 2.5.x
|
16
|
+
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ruby ruby-dev && apt-get clean
|
17
|
+
|
18
|
+
RUN gem install bundler
|
@@ -0,0 +1,226 @@
|
|
1
|
+
jobs:
|
2
|
+
- name: integration-compute-core_compute
|
3
|
+
serial: true
|
4
|
+
plan:
|
5
|
+
- get: fog-google-src
|
6
|
+
resource: pull-request
|
7
|
+
version: every
|
8
|
+
trigger: true
|
9
|
+
- put: pull-request
|
10
|
+
params: {path: fog-google-src, status: pending}
|
11
|
+
|
12
|
+
- task: run-integration-tests
|
13
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
14
|
+
params:
|
15
|
+
rake_task: test:compute-core_compute
|
16
|
+
codecov_token: {{codecov_token}}
|
17
|
+
google_project: {{google_project}}
|
18
|
+
google_json_key_data: {{google_json_key_data}}
|
19
|
+
on_failure:
|
20
|
+
put: pull-request
|
21
|
+
params:
|
22
|
+
path: fog-google-src
|
23
|
+
status: failure
|
24
|
+
|
25
|
+
- name: integration-compute-core_networking
|
26
|
+
serial: true
|
27
|
+
plan:
|
28
|
+
- get: fog-google-src
|
29
|
+
resource: pull-request
|
30
|
+
version: every
|
31
|
+
trigger: true
|
32
|
+
- put: pull-request
|
33
|
+
params: {path: fog-google-src, status: pending}
|
34
|
+
|
35
|
+
- task: run-integration-tests
|
36
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
37
|
+
params:
|
38
|
+
rake_task: test:compute-core_networking
|
39
|
+
codecov_token: {{codecov_token}}
|
40
|
+
google_project: {{google_project}}
|
41
|
+
google_json_key_data: {{google_json_key_data}}
|
42
|
+
on_failure:
|
43
|
+
put: pull-request
|
44
|
+
params:
|
45
|
+
path: fog-google-src
|
46
|
+
status: failure
|
47
|
+
|
48
|
+
- name: integration-compute-instance_groups
|
49
|
+
serial: true
|
50
|
+
plan:
|
51
|
+
- get: fog-google-src
|
52
|
+
resource: pull-request
|
53
|
+
version: every
|
54
|
+
trigger: true
|
55
|
+
- put: pull-request
|
56
|
+
params: {path: fog-google-src, status: pending}
|
57
|
+
|
58
|
+
- task: run-integration-tests
|
59
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
60
|
+
params:
|
61
|
+
rake_task: test:compute-instance_groups
|
62
|
+
codecov_token: {{codecov_token}}
|
63
|
+
google_project: {{google_project}}
|
64
|
+
google_json_key_data: {{google_json_key_data}}
|
65
|
+
on_failure:
|
66
|
+
put: pull-request
|
67
|
+
params:
|
68
|
+
path: fog-google-src
|
69
|
+
status: failure
|
70
|
+
|
71
|
+
- name: integration-compute-loadbalancing
|
72
|
+
serial: true
|
73
|
+
plan:
|
74
|
+
- get: fog-google-src
|
75
|
+
resource: pull-request
|
76
|
+
version: every
|
77
|
+
trigger: true
|
78
|
+
- put: pull-request
|
79
|
+
params: {path: fog-google-src, status: pending}
|
80
|
+
|
81
|
+
- task: run-integration-tests
|
82
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
83
|
+
params:
|
84
|
+
rake_task: test:compute-loadbalancing
|
85
|
+
codecov_token: {{codecov_token}}
|
86
|
+
google_project: {{google_project}}
|
87
|
+
google_json_key_data: {{google_json_key_data}}
|
88
|
+
on_failure:
|
89
|
+
put: pull-request
|
90
|
+
params:
|
91
|
+
path: fog-google-src
|
92
|
+
status: failure
|
93
|
+
|
94
|
+
- name: integration-tests-monitoring
|
95
|
+
serial: true
|
96
|
+
plan:
|
97
|
+
- get: fog-google-src
|
98
|
+
resource: pull-request
|
99
|
+
version: every
|
100
|
+
trigger: true
|
101
|
+
- put: pull-request
|
102
|
+
params: {path: fog-google-src, status: pending}
|
103
|
+
|
104
|
+
- task: run-integration-tests
|
105
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
106
|
+
params:
|
107
|
+
rake_task: test:monitoring
|
108
|
+
codecov_token: {{codecov_token}}
|
109
|
+
google_project: {{google_project}}
|
110
|
+
google_json_key_data: {{google_json_key_data}}
|
111
|
+
on_failure:
|
112
|
+
put: pull-request
|
113
|
+
params:
|
114
|
+
path: fog-google-src
|
115
|
+
status: failure
|
116
|
+
|
117
|
+
- name: integration-tests-pubsub
|
118
|
+
serial: true
|
119
|
+
plan:
|
120
|
+
- get: fog-google-src
|
121
|
+
resource: pull-request
|
122
|
+
version: every
|
123
|
+
trigger: true
|
124
|
+
- put: pull-request
|
125
|
+
params: {path: fog-google-src, status: pending}
|
126
|
+
|
127
|
+
- task: run-integration-tests
|
128
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
129
|
+
params:
|
130
|
+
rake_task: test:pubsub
|
131
|
+
codecov_token: {{codecov_token}}
|
132
|
+
google_project: {{google_project}}
|
133
|
+
google_json_key_data: {{google_json_key_data}}
|
134
|
+
on_failure:
|
135
|
+
put: pull-request
|
136
|
+
params:
|
137
|
+
path: fog-google-src
|
138
|
+
status: failure
|
139
|
+
|
140
|
+
- name: integration-sqlv2
|
141
|
+
serial: true
|
142
|
+
plan:
|
143
|
+
- get: fog-google-src
|
144
|
+
resource: pull-request
|
145
|
+
version: every
|
146
|
+
trigger: true
|
147
|
+
- put: pull-request
|
148
|
+
params: {path: fog-google-src, status: pending}
|
149
|
+
|
150
|
+
- task: run-integration-tests
|
151
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
152
|
+
params:
|
153
|
+
rake_task: test:sql-sqlv2
|
154
|
+
codecov_token: {{codecov_token}}
|
155
|
+
google_project: {{google_project}}
|
156
|
+
google_json_key_data: {{google_json_key_data}}
|
157
|
+
on_failure:
|
158
|
+
put: pull-request
|
159
|
+
params:
|
160
|
+
path: fog-google-src
|
161
|
+
status: failure
|
162
|
+
|
163
|
+
- name: integration-tests-storage
|
164
|
+
serial: true
|
165
|
+
plan:
|
166
|
+
- get: fog-google-src
|
167
|
+
resource: pull-request
|
168
|
+
version: every
|
169
|
+
trigger: true
|
170
|
+
- put: pull-request
|
171
|
+
params: {path: fog-google-src, status: pending}
|
172
|
+
|
173
|
+
- task: run-integration-tests
|
174
|
+
file: fog-google-src/ci/tasks/run-int.yml
|
175
|
+
params:
|
176
|
+
rake_task: test:storage
|
177
|
+
codecov_token: {{codecov_token}}
|
178
|
+
google_project: {{google_project}}
|
179
|
+
google_json_key_data: {{google_json_key_data}}
|
180
|
+
on_failure:
|
181
|
+
put: pull-request
|
182
|
+
params:
|
183
|
+
path: fog-google-src
|
184
|
+
status: failure
|
185
|
+
|
186
|
+
- name: github-pr-aggregator
|
187
|
+
plan:
|
188
|
+
- get: fog-google-src
|
189
|
+
resource: pull-request
|
190
|
+
passed: [integration-tests-storage,
|
191
|
+
integration-tests-pubsub,
|
192
|
+
integration-tests-monitoring,
|
193
|
+
integration-sqlv2,
|
194
|
+
integration-compute-core_compute,
|
195
|
+
integration-compute-core_networking,
|
196
|
+
integration-compute-instance_groups,
|
197
|
+
integration-compute-loadbalancing]
|
198
|
+
trigger: true
|
199
|
+
on_success:
|
200
|
+
put: pull-request
|
201
|
+
params:
|
202
|
+
path: fog-google-src
|
203
|
+
status: success
|
204
|
+
on_failure:
|
205
|
+
put: pull-request
|
206
|
+
params:
|
207
|
+
path: fog-google-src
|
208
|
+
status: failure
|
209
|
+
|
210
|
+
resources:
|
211
|
+
- name: pull-request
|
212
|
+
type: pull-request
|
213
|
+
source:
|
214
|
+
access_token: {{github_access_token}}
|
215
|
+
private_key: {{github_private_key}}
|
216
|
+
label: integrate
|
217
|
+
repo: fog/fog-google
|
218
|
+
|
219
|
+
resource_types:
|
220
|
+
# This is a third party resource.
|
221
|
+
# The referenced docker-image is maintained externally
|
222
|
+
# https://github.com/jtarchie/pullrequest-resource
|
223
|
+
- name: pull-request
|
224
|
+
type: docker-image
|
225
|
+
source:
|
226
|
+
repository: jtarchie/pr
|