* Allow terraform fixtures for examples
* Allow defining multiple fixtures, and named fixtures under tests/fixtures/
* Enable e2e for wiktorn
* Fix prepare_files call for e2e
* Move fixture to separate file, fix test
* Revert shallow-copying symlinks, performane penalty - 20%
* Update tfdoc.py to list used fixtures
---------
Co-authored-by: Wiktor Niesiobędzki <wiktorn@google.com>
This PR changes variable region's default value in example tests to real region value.
Some of the modules parse the region name to decide whether to create regional or zonal resources.
* added tag serial to mark tests to be run serially
* always run tests using loadgroup distribution to make use of serial tag
* added end-to-end tests for organization, not adding to custom constraints as the name has to be unique
* fixed granting custom roles created in the same module call
* Add end-to-end tests for project module
* Add inventory to data tests
* Add files to end-to-end test cases
* Review fixes - use named groups
---------
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Add end-to-end tests (apply, plan, destroy) for examples.
When run, `tests/examples_e2e`:
1. Create an environment for tests to run (folder, project vpc network)
2. For each marked example (with `e2e` tftest directive), run apply, plan, destroy
3. Verify:
* no failure in apply
* empty plan after apply
* no failure during destroy
4. When all tests are done, destroy test environment
More details in `tests/examples_e2e/README.md`
* net-ilb-l7 use both neg types in backends
* run example tests on cloud-config-container modules
* streamline nginx-tls cos module
* add tests for cos modules
* tfdoc
* onprem needs fixing, links
* disable test
* test
* test terraform cache
* try pytest-xdist
* revert cache changes
* extend to other jobs
* change dist, bump processes to 4
* revert
* mark tests
* run init to prime providers cache
* prime providers cache
* prime providers cache for all jobs
* add local provider to versions
* remove leftover code
* Initial commit for adding a sample data playground
* Update README
* Add license boilerplate to variables.tf
* Apply linting rules
* rename var to ptoject_id, create prefix var, remove extra zone var
* Adds the option for using an existing project by default
* Bundles all VPC related variables in a single vpc_config variable of type object
* Add encryption_key usage example + policy_boolean
* Add tests, apply linting and todos for upcoming PRs
* Update variables in readme
* Fix formatting via fmt
* Rename test dir to fix module conflict issue
* Add high level diagram and sort vars/outputs by alphabetical
* Modify diagram and update main README under data examples with link / summary
* Line break
* Use png in diagram
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>