Commit graph

4 commits

Author SHA1 Message Date
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
Chris Hawk
08ada5354d fix: upgrade ansible version, address test and lint errors 2023-11-17 16:39:42 -08:00
Alex Stephen
6e397c7e4c Ansible test refactor (preparing for custom tests)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-10 21:45:03 +00:00
Alex Stephen
d7f9a2782f moving tests 2019-09-05 15:10:46 -07:00
Renamed from tests/integration/gcp_bigquery_table/tasks/main.yml (Browse further)