Commit graph

16 commits

Author SHA1 Message Date
Chris Hawk
c819fc798d Test with Python 3.11 and 3.12, the two versions compatible with Ansible 2.17 and 2.18 2025-01-10 15:06:25 -08:00
Chris Hawk
7cee2e87b0 Make 2.17 the min Ansible version 2025-01-10 15:01:28 -08:00
Chris Hawk
2aebc4f1b3 Bump min Ansible version to 2.16 2024-07-25 10:47:31 -07:00
Chris Hawk
50ed9f42b5 chore: rebase to master 2023-11-20 10:44:17 -08:00
Chris Hawk
08ada5354d fix: upgrade ansible version, address test and lint errors 2023-11-17 16:39:42 -08:00
Chris Hawk
13af84c3db chore: bump ansible versions 2023-11-14 12:43:01 -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
f87e7f47b4 tests: fix integration tests 2
the previous fix had invalid syntax (hard to test against the
master branch until after push).

This syntax is documented as correct:
https://github.com/actions/runner/issues/950
2022-12-04 12:15:27 -08:00
Yusuke Tsutsumi
4c90fac19f tests: fix integration tests not running on push
The integration test filter syntax was restrictive and disabled
running them on push.
2022-12-04 12:08:54 -08:00
Yusuke Tsutsumi
eab8b1fb7b disable spanner_database_info tests, python to 3.9
The client's List continues to be flakey. disabling until
the endpoint is stable.

Switching tests to use ansible 2.14, as 2.13 has issues with
spawning a docker container.

Upgrading the base python version as a consequence.

Removing the need for docker from unit tests, since that was failing
and also non-critical to run unit tests.
2022-12-04 12:00:59 -08:00
Yusuke Tsutsumi
1ec54b286d prepping for 1.1.0-beta release
- Updating and documenting changelog creation process.
  antsibull-changelog was chosen because it is the standard tooling
  recommended by Ansible developers.
- Documenting the release process and several others so others can perform it in the
  future.
- Updating the integration tests to test against 2.13, which the 1.1.0
  final release will be certified for.
- Created changelog and update galaxy.yaml for 1.1.0-beta, which will be
  the next release.
2022-12-04 12:00:59 -08:00
Yusuke Tsutsumi
f692dd4c76 fix role tests
Ansible role tests were failing due to ansible-lint reporting
multiple errors.

Fixing those errors resolves the failing tests.

Switching gcsfuse to use gcloud's bootstrap to follow the current
docker install instructions.

Removing centos as it's a discontinued distribution.

Adding a check to ensure integration tests are skipped unless they
are run by a branch (a public fork does not pass required
integration test credentials).
2022-11-29 23:12:26 -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
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
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
Yusuke Tsutsumi
76677279f0
Adding integration tests on PRs (#502)
To help catch issues from PRs that would regress behavior,
adding a GitHub action similar to unit tests to run integration
tests.

GitHub actions do not pass secrets to actions which are triggered
by PRs sent from forks. As a result, it is not possible to have CI
run on the forks from external contributors. Currently implementing a
process that requires manual review until a more direct solution is
found.

Adding some basic instructions for future maintainers and contributors.
2022-10-01 18:23:22 +00:00