Chris Hawk
80fe76c632
Merge pull request #712 from p3ck/gcp_parameter_manager-2.19
...
Fix jinja templating error in assert
2025-09-11 12:21:37 -07:00
Chris Hawk
7a6688d602
Merge pull request #711 from thekad/bug/attach-disk-to-instance
...
Attach disk to instance
2025-09-11 12:15:43 -07:00
Chris Hawk
ffc2b0765f
Merge pull request #710 from p3ck/gcp_iam_service_account-2.19
...
Fix jinja templating error in assert
2025-09-11 12:15:00 -07:00
Bill Peck
ec0a9a3a7c
Fix jinja templating error in assert
...
Fixes templating for ansible-2.19.
2025-09-10 16:16:14 -04:00
Jorge Gallegos
a65d6ebfa5
Rework gcp_compute_instance integration tests
...
Also adding the test cases for new attachDisk feature
2025-09-10 11:28:16 -07:00
Bill Peck
cac2eb3aaf
Fix jinja templating error in assert
...
Fixes templating for ansible-2.19.
2025-09-08 07:27:39 -04:00
Jorge Gallegos
2fc899cd32
Unrelated change but it's better if we use an image family
2025-09-04 19:29:36 -07:00
Jorge Gallegos
5745bdaac2
Integration test for new IAP connection plugin
...
1. creates instances with a custom ssh keypair
2. change the connection plugin method and perform basic checks
3. cleanup
2025-09-04 19:28:23 -07:00
Chris Hawk
2ed1936ad8
Merge pull request #693 from thekad/feature/bucket_policy
...
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Waiting to run
Add iamConfiguration support to gcp_storage_bucket
2025-07-29 15:25:49 -07:00
Chris Hawk
79504d54d6
Merge pull request #694 from thekad/feature/nested_bigquery_schema
...
Feature/nested bigquery schema
2025-07-29 15:17:43 -07:00
Chris Hawk
0bf24440d1
Merge pull request #684 from durgesh-ninave-crest/add-support-for-parameter-manager-module-lookup
...
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
feat(parametermanager): added support for parameter manager module and lookup
2025-07-16 12:29:03 -07:00
Jorge Gallegos
63d7025012
Let fields be sent raw in table schema definition
...
As per https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#TableFieldSchema
the `fields` attribute can recursively define more fields if the `type`
attribute is RECORD. There is no way to define recursive argument spec
in ansible modules, but if sent as `raw`:
> The raw type, performs no type validation or type casting, and maintains the type of the passed value.
(from https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#argument-spec )
Which works for what we're trying to accomplish here.
Also added integration test for this change
2025-06-27 12:15:39 -06:00
Jorge Gallegos
f9f0b33542
Add iamConfiguration support to gcp_storage_bucket
...
You can now set the iam configuration for a given bucket, you can set:
1. publicAccessPrevention and
2. uniformBucketLevelAccess
no support for bucketPolicyOnly because according to the storage docs:
Note: iamConfiguration also includes the bucketPolicyOnly field, which
uses a legacy name but has the same functionality as the
uniformBucketLevelAccess field. We recommend only using
uniformBucketLevelAccess, as specifying both fields may result in
unreliable behavior.
Also added integration tests for this feature
Signed-off-by: Jorge Gallegos <jgallego@redhat.com>
2025-06-26 12:04:25 -06:00
Chris Hawk
8863545bef
Merge pull request #692 from ansible-collections/release-1.6.0
...
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Release 1.6.0
2025-06-23 13:53:36 -07:00
Chris Hawk
5cd81072c4
Refactor inventory_gce tests to make the linter happy
2025-06-20 15:28:16 -07:00
Chris Hawk
9bdfba5e5c
Fix lint errors
2025-06-20 14:44:45 -07:00
Chris Hawk
83c593d943
Merge pull request #685 from durgesh-ninave-crest/add-support-for-regional-secret-manager
...
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
feat(secretmanager): added support for regional secret manager
2025-06-20 13:47:49 -07:00
Chris Hawk
43d8fd6960
Merge pull request #689 from thekad/feature/inventory_hostname
...
Adding hostname support to dynamic inventory
2025-06-20 13:16:35 -07:00
Jorge Gallegos
d8ca8a27bc
Shellcheck fix
...
Signed-off-by: Jorge Gallegos <jgallego@redhat.com>
2025-06-10 14:03:52 -07:00
Jorge Gallegos
adf05c4ecf
Adding integration test for dynamic inventory plugin
...
Signed-off-by: Jorge Gallegos <jgallego@redhat.com>
2025-06-10 13:57:27 -07:00
Jorge Gallegos
d980418ea7
Complete test cases with default option
...
Signed-off-by: Jorge Gallegos <jgallego@redhat.com>
2025-06-06 13:42:58 -07:00
Jorge Gallegos
24bba779d8
Update integration tests to account for nicType changes
...
Signed-off-by: Jorge Gallegos <jgallego@redhat.com>
2025-06-05 18:54:43 -07:00
durgesh-ninave-crest
0871f8f0c4
fix typo in integration tests
2025-05-19 18:23:46 +05:30
durgesh-ninave-crest
9101671c0e
feat(secretmanager): added support for regional secret manager
2025-05-13 18:36:36 +05:30
durgesh-ninave-crest
342a0b2f95
feat(parametermanager): added support for parameter manager module and lookup
2025-05-13 17:58:24 +05:30
Chris Hawk
4ee4cc60b5
Enable required YAML lint rules and fix results
2025-01-14 15:15:59 -08:00
Chris Hawk
198adf8cfd
Merge branch 'master' into feature/#657
2024-11-11 16:25:50 -08:00
Sieradzki, Lukasz
2b35fbf404
https://github.com/ansible-collections/google.cloud/issues/657
2024-11-08 23:02:23 +01:00
Sieradzki, Lukasz
8b9a2c70dd
https://github.com/ansible-collections/google.cloud/issues/657
2024-11-08 18:46:49 +01:00
Chris Hawk
cc1784084c
Add a test that updates a pubsub subscription
2024-11-07 11:40:49 -08:00
Chris Hawk
d9d57cbeeb
Remove jinja vars from conditional statements in integration test asserts
2024-07-24 16:15:24 -07:00
Chris Hawk
2ca4eccc78
chore: return service_usage test to unsupported due to quota enforcement
2023-11-21 09:39:11 -08:00
Chris Hawk
08ada5354d
fix: upgrade ansible version, address test and lint errors
2023-11-17 16:39:42 -08:00
Chris Hawk
b64af489ea
chore: fix gcp_sql_database integration test
2023-11-13 14:31:26 -08:00
Chris Hawk
bda318efba
Revert "chore: fix gcp_sql_database integration test"
...
This reverts commit 3f44909f92
.
2023-11-13 14:30:29 -08:00
Chris Hawk
3f44909f92
chore: fix gcp_sql_database integration test
2023-11-13 14:29:05 -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
Yusuke Tsutsumi
db81dcd5d5
test: disable flakey spanner test
...
The test continually fails due to an existing database being
created, hich implies the GET isn't returning the proper response.
2023-02-20 10:38:27 -08:00
Yusuke Tsutsumi
0ad88dc39d
test: disable gcp_bigtable_instance test
...
The test is still flakey currently. A few attempts have
been made to fix it, but it seems that the bigtable API
does not consistently return the resource after is has
been created.
While exploring ways to make it more robust, disabling the
test to keep the CI tests from being unreliable to the point
of useless.
2023-02-18 14:08:04 -08:00
Yusuke Tsutsumi
75d4ded736
tests: updating the route test
...
validating the update of a route works as per concerns raised in #542
2023-02-10 16:48:29 -08: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
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
18900797c5
tests: documenting unsupported cases
...
Some test cases are unsupported due to environmental or
blocking code restrictions (e.g. unimplemented dependent resources).
As these will likely not be fixed before the first release certified
for Ansible 2.11 and beyond, documenting them instead.
2022-11-29 23:12:26 -08:00
Yusuke Tsutsumi
4cd61e66c1
tests: remove flakey spanner_database_info test
...
The spanner List API is returning intermittent 404s, which
is resulting in the spanner_database test failing every other
time.
Disabling the API until the test is more stable.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
117224d352
fix gcp_iam_role
...
gcp_iam_role did not handle the undelete behavior
that is specific to gcp_iam_role.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
6171713572
fix gcp_bigtable_instance
...
gcp_bigtable_instance scope was using an incorrect scope,
which was causing oauth requests to not complete successfully.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
44eb7c2d29
fix gcp_spanner_database delete
...
gcp_spanner_database erroneously used LRO handling on delete,
rather than a standard synchronous function. One side effect
was not catching 404s as a not found error code.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
50076e7f36
fix: crypto_key initial_version_creation default
...
skip_initial_version_creation previously defaulted to None,
which results in an invalid value in the create call to
gcp_kms_crypto_key.
Defaulting to False fixes the issue.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
0e9f2a74b1
fix: gcp_cloudtasks_queue
...
gcp_cloudtasks_queue was sending a "location" field in the
payload, when the resource did not have such a field.
Removing it fixes the tests.
2022-11-27 08:34:30 -08:00