Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Convert tests to blueprint test framework (#710)
* bootstrap go test * fix lint * add env var for missing input values * add sleep after test setup for enabling api propagation * increase sleep time to 3 minutes * fix test assertion * replicate env vars form converge to verify stage. * fix type. * skip default verify * replicate env vars form converge to destroy stage. * bump CFT version and update test * update go.mod file * add org test * add org test asserts * fix test * disable backend bucket * fix domains to allow env var name * fix domains to allow value * add domains to allow to setup output * add go envs tests * fix typo * add tests for network, projects and app-infra * disable auto.tfvars files and set access_context_manager_policy_id * wait for four minutes for api propagation * add target_name_server_addresses to setup output * update list of terraform files to disable * add access_context_manager_policy_id to env vars of step 4 projects * add export to export of previous terraform script outputs * read perimeter name from env var * fix helper script * source script to export variables * export env var for the create stage of step 4 projects * remove DefaultVerify from step 4 projects * fix typo * add plugin version configuration for step 5 * set instance details to sensitive in step 5 * read service account from env var in step 5 * add shared network step to integration tests * export access context manager policy id for network shared step * fix lint issues * remove kitchem and inspec code * fix default region configuration in the tests * read step 3-networks output in the test execution of step 4-projects * use gcloud to get the value of the access context manager policy ID * remove access_context_manager_policy_id from projects/shared * delete export_vars.sh script * add instructions and use cft cli * test new order of params * add test-dir to the call to cft test in cloud buil bootstrap * restore usage of go test to run the integration steps * test HubAndSpoke * restore values for test organization * remove commented code * fix lint build configuration * use cft cli to run tests in the build * remove replicated code from org test * remove unnecessary struct from network test * fix code review items * restore ci project name * restore call to helper function * restore all calls to helper function in int build * add missing call to helper function at app infra destroy stage * add app infra tests * migrate gcp tests for the step 4-projects * migrate gcloud tests for the step 4-projects * use gcloud.Runf if possible * simplify usage of gcloud methods * update go.mod * migrate 3-networks tests * fix variable names * migrate 3 shared tests * migrate tests * fix subset assert * fix folder output value to remove 'folders/' * remove unnused test attribute for perimeter env var * fix access to last element of slice * update list of boolean org policies * fix reading directory customer ID value * add roles/resourcemanager.organizationViewe to the ci service account * skip restrictedDomain verify * fix log sink tests, log bucket test, and hub and spoke tests * fix typo in env test * fix retrieval of monitoring_workspace_users group * fix assert.Contains base list * add restrictedDomain verification * fix cidrRange for shared test * fix monitoring_workspace_users output for testing * fix cloud router region in 3-networks/shared * fix lint issue * fix firewall tests * get the len of the allowed ports array in the network test * fix step 4 iam tests * fix project iam test for base_shared_vpc_project * fix param for search of vpc host project id * fix param for search of restricted vpc host project id * increase provider request timeout to prevente dns policy error 409:The resource 'entity.policy' named 'default-policy' already exists * increase provider request timeout to 120s prevent dns policy error 409:The resource 'entity.policy' named 'default-policy' already exists * use helper function to create list of strings * remove initialization of string field with empty string * remove monitoring_workspace_users from 2-environments output * use Runf when passing a single parameter * remove task_helper_functions script from integration build * set TF_VAR_group_email as a global env var in integration build yaml * use proper service account in step 5-app-infra
- Loading branch information