moto/tests/terraformtests/etc
2023-04-08 10:33:09 +00:00
..
0001-Patch-Hardcode-endpoints-to-local-server.patch Terraform - Update to latest commit (#5982) 2023-02-25 19:24:03 -01:00
0002-EC2-reduce-wait-times.patch TF - enable more tests (#5463) 2022-09-11 19:22:02 +00:00
0003-Patch-IAM-wait-times.patch Update TF to latest (#5266) 2022-06-26 17:23:26 +00:00
0005-Route53-Reduce-wait-times.patch TF - improve wait times EC2/Route53 (#5274) 2022-06-28 14:39:50 +00:00
0006-CF-Reduce-wait-times.patch CloudFront improvements (#5275) 2022-06-29 20:12:56 +00:00
0007-Comprehend-Reduce-wait-times.patch TechDebt - Unpin TF (#5590) 2022-10-23 11:23:23 +00:00
0008-Patch-RDS-improvements.patch RDS: Various improvements (#6186) 2023-04-08 10:33:09 +00:00
README.md RDS: Various improvements (#6186) 2023-04-08 10:33:09 +00:00

What is the purpose of this folder?

This folder contains git-patches for the Terraform repository. When running Terraform-tests against Moto, these patches will be applied automatically.

See http://docs.getmoto.org/en/latest/docs/contributing/development_tips/tests.html#terraform-tests on how to run the tests.

What kind of patches are there?

  • Patches that set the endpoint to localhost, to ensure the tests are run against Moto
  • Patches that reduce the wait time for resources. AWS may take a few minutes before an EC2 instance is spun up, Moto does this immediately - so it's not necessary for Terraform to wait until resources are ready
  • etc

How do I create a new patch?

  • Checkout the repository, and open a terminal in the root-directory
  • Go into the Terraform-directory:
    cd tests/terraformtests/terraform-provider-aws
    
  • Ensure the right Terraform-branch is selected, and is clean:
    git checkout main
    git checkout .
    
  • Create a new branch:
    git checkout -b patch-my-changes
    
  • Make the required changes.
  • Commit your changes
  • Create a patch:
     git format-patch main
    
  • Move the created patch-file into this folder
  • Update tests/terraformtests/bin/run_go_test with the new patch-file