diff --git a/manifest-v2.json b/manifest-v2.json index 0936421f..ebac861b 100644 --- a/manifest-v2.json +++ b/manifest-v2.json @@ -1267,6 +1267,24 @@ "useCaseName": "Multi-step workflow" } ], + "ruby3.3": [ + { + "directory": "ruby/hello", + "displayName": "Hello World Example", + "dependencyManager": "bundler", + "appTemplate": "hello-world", + "packageType": "Zip", + "useCaseName": "Hello World Example" + }, + { + "directory": "ruby/step-func", + "displayName": "Step Functions Sample App (Stock Trader)", + "dependencyManager": "bundler", + "appTemplate": "step-functions-sample-app", + "packageType": "Zip", + "useCaseName": "Multi-step workflow" + } + ], "rust (provided.al2)": [ { "directory": "al2/rust/hello", @@ -1499,6 +1517,16 @@ "useCaseName": "Hello World Example" } ], + "amazon/ruby3.3-base": [ + { + "directory": "ruby/hello-img", + "displayName": "Hello World Lambda Image Example", + "dependencyManager": "bundler", + "appTemplate": "hello-world-lambda-image", + "packageType": "Image", + "useCaseName": "Hello World Example" + } + ], "amazon/go-provided.al2-base": [ { "directory": "al2/go/hello-img", diff --git a/tests/integration/build_invoke/test_ruby_3_2.py b/tests/integration/build_invoke/ruby/test_ruby_3_2.py similarity index 100% rename from tests/integration/build_invoke/test_ruby_3_2.py rename to tests/integration/build_invoke/ruby/test_ruby_3_2.py diff --git a/tests/integration/build_invoke/ruby/test_ruby_3_3.py b/tests/integration/build_invoke/ruby/test_ruby_3_3.py new file mode 100644 index 00000000..fc49c062 --- /dev/null +++ b/tests/integration/build_invoke/ruby/test_ruby_3_3.py @@ -0,0 +1,31 @@ +from unittest import skip +from tests.integration.build_invoke.build_invoke_base import BuildInvokeBase + +""" +For each template, it will test the following sam commands: +1. sam init +2. sam build --use-container (if self.use_container is False, --use-container will be omitted) +3. (if there are event jsons), for each event json, check `sam local invoke` response is a valid json +""" + +class BuildInvoke_ruby3_3_cookiecutter_aws_sam_hello_ruby(BuildInvokeBase.HelloWorldExclamationBuildInvokeBase): + runtime = "ruby3.3" + directory = "ruby/hello" + # TODO(hawflau): remove the line below when cfn-lint supports ruby3.3 + should_test_lint = False + + +class BuildInvoke_ruby3_3_cookiecutter_aws_sam_step_functions_sample_app(BuildInvokeBase.BuildInvokeBase): + runtime = "ruby3.3" + directory = "ruby/step-func" + # TODO(hawflau): remove the line below when cfn-lint supports ruby3.3 + should_test_lint = False + + +class BuildInvoke_image_ruby3_3_cookiecutter_aws_sam_hello_ruby_lambda_image( + BuildInvokeBase.HelloWorldExclamationBuildInvokeBase +): + runtime = "ruby3.3" + directory = "ruby/hello-img" + # TODO(hawflau): remove the line below when cfn-lint supports ruby3.3 + should_test_lint = False diff --git a/tests/integration/unit_test/test_unit_test_ruby3_3.py b/tests/integration/unit_test/test_unit_test_ruby3_3.py new file mode 100644 index 00000000..432bfad2 --- /dev/null +++ b/tests/integration/unit_test/test_unit_test_ruby3_3.py @@ -0,0 +1,21 @@ +from tests.integration.unit_test.unit_test_base import UnitTestBase + + +class UnitTest_ruby3_3_cookiecutter_aws_sam_hello_ruby(UnitTestBase.RubyUnitTestBase): + runtime = "ruby3.3" + directory = "ruby/hello" + code_directories = ["tests/unit/test_handler.rb"] + # TODO(hawflau): remove the line below when cfn-lint supports ruby3.3 + should_test_lint = False + + +class UnitTest_ruby3_3_cookiecutter_aws_sam_step_functions_sample_app(UnitTestBase.RubyUnitTestBase): + runtime = "ruby3.3" + directory = "ruby/step-func" + code_directories = [ + "tests/unit/test_stock_buyer.rb", + "tests/unit/test_stock_checker.rb", + "tests/unit/test_stock_seller.rb", + ] + # TODO(hawflau): remove the line below when cfn-lint supports ruby3.3 + should_test_lint = False