Commit graph

56 commits

Author SHA1 Message Date
Chris Hawk
529d21630a Run integration tests against 2.16 2025-01-29 15:32:12 -08:00
Chris Hawk
8f053e08ab Switch test GitHub workflow to the standardized collection workflow 2025-01-15 10:52:15 -08:00
Chris Hawk
4ee4cc60b5 Enable required YAML lint rules and fix results 2025-01-14 15:15:59 -08:00
Chris Hawk
3de16da36a Remove google_cloud_ops_agents submodule 2025-01-14 14:24:58 -08:00
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
38146cdc9b Back off Python versions as Ansible 2.17 is not supported with Python 3.13 2025-01-10 15:03:59 -08:00
Chris Hawk
7cee2e87b0 Make 2.17 the min Ansible version 2025-01-10 15:01:28 -08:00
Chris Hawk
7a95362e03 Remove debugging lines 2024-07-26 16:44:29 -07:00
Chris Hawk
7ae46673ed Use the path that ansible-lint is reporting for exclusion 2024-07-26 16:33:09 -07:00
Chris Hawk
dfe85d24a0 ansible-lint truly hates not running in the workspace root directory 2024-07-26 16:18:55 -07:00
Chris Hawk
12d500f044 Use the submodule path, not the name of the repo 2024-07-26 16:08:18 -07:00
Chris Hawk
811901f82c Add some debugging statements 2024-07-26 16:02:15 -07:00
Chris Hawk
c9b7cf5a21 Try passing a full path to the ansible-lint config file 2024-07-26 15:42:19 -07:00
Chris Hawk
fc42b8fbc2 Revert ansible/ansible-lint GitHub action usage 2024-07-25 11:13:41 -07:00
Chris Hawk
2e32ac3c4c actions/setup-python appears to need a string when there are two digits to the right of the decimal 2024-07-25 11:03:53 -07:00
Chris Hawk
2aebc4f1b3 Bump min Ansible version to 2.16 2024-07-25 10:47:31 -07:00
Chris Hawk
b06fbef58e
Merge pull request #594 from jefferbrecht/master
Update roles/google_cloud_ops_agents submodule to 1.0.7.
2024-05-16 15:25:31 -07:00
Chris Hawk
0b9a1f2e49 chore: cd to the repo root when running role tests 2023-11-20 10:45:06 -08:00
Chris Hawk
009a6e7d31 chore: use the correct molecule driver package 2023-11-20 10:45:06 -08:00
Chris Hawk
7bf4129fb3 chore: update ubuntu to latest; 18.04 is no more 2023-11-20 10:45:06 -08: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
c15b47250d chore: fix minimum version format, upgrade ansible-lint 2023-11-14 13:03:58 -08:00
Chris Hawk
13af84c3db chore: bump ansible versions 2023-11-14 12:43:01 -08:00
Jeff Erbrecht
d0028188df Checkout submodules during lint workflow 2023-09-12 09:22:16 -04:00
Yusuke Tsutsumi
791e11d45d chore: pin ansible-lint to 6.13.1
ansible-lint was updated and the GitHub
action did not pin the dependency, resulting
in the repository to fail sanity tests.

Updating the repository to adhere to new fatal
linter rules, but also pinning the linter to
prevent failures that may be unrelated to the
particular commit.

Updating usages for python3.8 to 3.9 as ansible-lint
is dropping support for 3.8.
2023-02-18 11:44:25 -08:00
Yusuke Tsutsumi
509e0207ff tests: add sanity tests for python 2.7
Automation Hub still runs sanity tests on python 2.7

updating release to 1.1.1 to publish a new version.
2022-12-16 09:40:24 -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
4907356bba fixing ansible-lint errors, fix gcsfuse
Ansible-lint is required for Ansible collection
certification for Automation Hub.

gcsfuse had no metadata associated with it, failing
the Ansible Hub upload.
2022-12-10 10:49:01 -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
3fb4763e37 fix automation hub workflow
The automation hub workflow was passing an incorrect API key.
2022-12-05 09:08:39 -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
Eric Anderson
53955f2fa0 fix the tests, and update documentation 2022-11-12 10:25:10 -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
Yusuke Tsutsumi
f6d42b4bc1
Adding a GitHub action to run ansible-test (#497)
As a first step to rehabilitate the google.cloud repository,
adding actions to help ensure that the collection is still
passing tests as changes are merged.

Details:

- ansible-devel was not added to the matrix since it may
  destablize the tests, primarily used to validate the collection.
- running sanity tests reported over 100+ issues, backlogged to #498
  before turning those on.
2022-09-23 18:42:29 +00:00
Alex Stephen
112fd5fd65 bug fixes 2022-01-11 20:03:03 -08:00
Alex Stephen
e82e639e41
Update automationhub.yml 2020-07-28 11:13:04 -07:00
Alex Stephen
6f8e9843e5 automation hub upload 2020-07-28 11:04:42 -07:00
Alex Stephen
8d231272a1
Merge pull request #217 from ericsysmin/gcloud_role 2020-05-13 16:04:51 -04:00
ericsysmin
fa14b8c218 gcloud role w/tests 2020-05-01 19:18:21 -07:00
ericsysmin
56853bca14 update the name of the test 2020-05-01 14:14:57 -07:00
Eric Anderson
66a1f3cae1 Ubuntu 20.04 is not supported by gcsfuse at the time 2020-04-30 10:15:35 -07:00
Eric Anderson
3432cf3878 added gcsfuse role tests for GitHub Actions 2020-04-30 10:09:54 -07:00