Commit graph

17 commits

Author SHA1 Message Date
Chris Hawk
c76063342e Include container cluster in the cleanup script 2024-07-26 13:21:21 -07:00
Chris Hawk
0074be1248 chore: address cleanup script linter warnings 2023-11-13 11:54:09 -08:00
Chris Hawk
bf74697b3f feat: add support for using application default credentials when running integration tests 2023-11-09 16:34:51 -08:00
Chris Hawk
dce75efa9e fix: don't send empty arguments to gcloud in the cleanup script 2023-08-31 15:00:38 -07:00
Yusuke Tsutsumi
2db181d084 fix gcp_iam_role not updating
gcp_iam_role was not updating previously. The API uses a PATCH and
not a PUT.

Also fixing an accidental leftover diff from a bad merge.

fixes #236.
2022-12-15 23:04:47 -08:00
Yusuke Tsutsumi
d063d44b73 fixing gcp_resourcemanager_project delete
gcp_resourcemanager_project was not properly deleting projects.

fixing gcp_resourcemanager_project as well.

fixes #530.
2022-12-12 22:25:24 -08:00
Yusuke Tsutsumi
a9545c77a4 fix linting and updating maintenance guide
Updating the maintainers guide with updated intructions from
Ansible engineers.

Fixing linting issues, and adding the linter as a GitHub workflow
to ensure there are no regressions.
2022-12-07 15:36:21 -08:00
Yusuke Tsutsumi
4dc556f940 including bigtableadmin in bootstrap APIs
bigtableadmin was not enabled in the bootstrapping script.

Also running the bootstrap script on every CI run, to ensure
the test environment is properly set up.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
ebf095d22d tests: fix gcp_compute_vpn_tunnel
- vpn_gateway required minimal changes (stop using legacy load
  balancers)
- compute_vpn_tunnel requires a valid vpn configuration
  (several dependent forwarding rules and configuration to set up a
  proper tunnel).
2022-11-19 18:40:44 -08:00
Yusuke Tsutsumi
5fc619fbb7 tests: fixing region_target_http_proxy
The backend_service resource was not regional, which is in invalid
configuration for a regional proxy to depend on.

Fixing up cleanup-script to better handle region/ global resources.
2022-11-19 18:40:44 -08:00
Yusuke Tsutsumi
4816e97719 fixing compute_url_map, add cleanup script
Compute_url_map was broken by #509: It also merged in #393, which
has an erroneous understanding that compute_url_map always returns
a diff (integration tests show it does not).

Adding a cleanup script to help with environment hygiene.

Added cleanup to CI to help make tests less flakey.
2022-11-12 12:12:02 -08:00
Yusuke Tsutsumi
d8c1d2f8b8 tests: fix gcp_tpu_node test
- gcp_tpu_node was using an old TensorFlow version, as well as using
  a popular TPU variant (3-8) in a zone that had a capacity limit.
  Both have been updated to working values.
2022-10-10 18:43:18 +00:00
Yusuke Tsutsumi
cfbc4d8be5 tests: cleaning up resourcemanager, enabling spanner
- gcp_spanner_instance works, enabling for CI.
- gcp_resourcemanager_project is running into quota issues for
  listing the API to verify state. Adding a to-do as well as
  removing some people-specific names.
2022-10-09 06:08:41 +00:00
Yusuke Tsutsumi
1a753eff05 tests: fix key_ring and redis
- gcp_key_ring was already passing, needed to be enabled.
- gcp_redis_instance was using legacy networks, switch to net networks.
2022-10-09 05:45:37 +00:00
Yusuke Tsutsumi
9e7748bc23 tests: fixing bootstrap code and invalid instance
- bootstrap code was not correctly instantiating the cloud function.
- compute_instance has a typo from a previous commit.
- re-disabling forwarding rule as it still has the backend_service
  fingerprint requirement
2022-10-08 18:57:05 +00:00
Yusuke Tsutsumi
0387ad3c17 Fixing additional tests
Fixing some of the existing failing tests in the CI process.

Specifically:

- gcp_appengine_firewall_rule: modified validation to support the
  default firewall rule
- gcp_cloudfunctions_cloud_function: bootstrapping the required GS
  bucket and files for creating a valid cloud function.
  - Slight update to the functionality, which now requires a runtime
    specified for new functions.
-
2022-10-08 17:36:39 +00:00
Yusuke Tsutsumi
c5723b214f
Enabling working integration tests (#504)
Enabling tests that work without any further modification as an
incremental step to enabling all integration tests.

Enabling 22 / 64 tests.

The following tests do not work today:

- gcp_appengine_firewall_rule
- gcp_bigtable_instance
- gcp_cloudfunctions_cloud_function
- gcp_cloudtasks_queue
- gcp_compute_backend_service
- gcp_compute_external_vpn_gateway
- gcp_compute_forwarding_rule
- gcp_compute_instance
- gcp_compute_instance_group
- gcp_compute_instance_group_manager
- gcp_compute_instance_group_template
- gcp_compute_node_group
- gcp_compute_region_autoscaler
- gcp_compute_region_instance_group_manager
- gcp_compute_region_target_http_proxy
- gcp_compute_region_target_https_proxy
- gcp_compute_region_url_map
- gcp_compute_route
- gcp_compute_router
- gcp_compute_ssl_certificate
- gcp_compute_target_http_proxy
- gcp_compute_target_https_proxy
- gcp_compute_target_instance
- gcp_compute_target_pool
- gcp_compute_target_ssl_proxy
- gcp_compute_target_tcp_proxy
- gcp_compute_target_vpn_proxy
- gcp_container_cluster
- gcp_container_node_pool
- gcp_iam_role
- gcp_iam_service_account
- gcp_iam_service_account_key
- gcp_kms_key_ring
- gcp_mlengine_version
- gcp_redis_instance
- gcp_resourcemanager_project
- gcp_serviceusage_service
- gcp_spanner_database
- gcp_spanner_instance
- gcp_sql_ssl_cert
- gcp_storage_bucket
- gcp_tpu_node
2022-10-04 21:04:32 +00:00