From 5f914a4b1d3fb43f753abf39e8155f849eb47127 Mon Sep 17 00:00:00 2001 From: Daniel Mil Date: Thu, 27 Jul 2023 11:02:49 -0700 Subject: [PATCH] test: Add terraform v2 api integration test cases --- ...st_start_api_with_terraform_application.py | 15 +++- .../HelloWorldFunction.zip | Bin 0 -> 1079 bytes .../terraform-v2-api-quick-create/main.tf | 49 +++++++++++++ .../HelloWorldFunction.zip | Bin 0 -> 1079 bytes .../terraform/terraform-v2-api-simple/main.tf | 67 ++++++++++++++++++ 5 files changed, 129 insertions(+), 2 deletions(-) create mode 100644 tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/HelloWorldFunction.zip create mode 100644 tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/main.tf create mode 100644 tests/integration/testdata/start_api/terraform/terraform-v2-api-simple/HelloWorldFunction.zip create mode 100644 tests/integration/testdata/start_api/terraform/terraform-v2-api-simple/main.tf diff --git a/tests/integration/local/start_api/test_start_api_with_terraform_application.py b/tests/integration/local/start_api/test_start_api_with_terraform_application.py index e8ab21d01d..be98e8e76f 100644 --- a/tests/integration/local/start_api/test_start_api_with_terraform_application.py +++ b/tests/integration/local/start_api/test_start_api_with_terraform_application.py @@ -95,9 +95,20 @@ def tearDownClass(cls) -> None: "Skip Terraform test cases unless running in CI", ) @pytest.mark.flaky(reruns=3) +@parameterized_class( + [ + { + "terraform_application": "terraform-v1-api-simple", + }, + { + "terraform_application": "terraform-v2-api-simple", + }, + { + "terraform_application": "terraform-v2-api-quick-create", + }, + ] +) class TestStartApiTerraformApplication(TerraformStartApiIntegrationBase): - terraform_application = "terraform-v1-api-simple" - def setUp(self): self.url = "http://127.0.0.1:{}".format(self.port) diff --git a/tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/HelloWorldFunction.zip b/tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/HelloWorldFunction.zip new file mode 100644 index 0000000000000000000000000000000000000000..4daa6de02dd8d472c93e7be277639d6220ea20b3 GIT binary patch liter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