google.cloud/tests/integration/targets/gcp_bigquery_table/tasks/main.yml
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

8 lines
223 B
YAML

---
- name: Generated tests
ansible.builtin.include_tasks: autogen.yml
- name: Run nested test cases
ansible.builtin.include_tasks: nested.yml
vars:
dataset_name: "{{ resource_name | replace('-', '_') }}_nested"