Skip to content

Conversation

@vicheey
Copy link
Contributor

@vicheey vicheey commented Dec 17, 2025

Issue #, if available

Add integration test for deploying application with CapacityProvider and LMI functions

Description of changes

Add test data and test cases for successfully deployment of resources.

Description of how you validated changes

Checklist

Testing

# 1. Initialize development environment (if not done already)
make init

# 2. Set up the companion stack (required for integration tests)
make prepare-companion-stack

# 3. Run test methods in the class
 python -m pytest --no-cov integration/combination/test_function_with_capacity_provider.py::TestFunctionWithCapacityProvider -v --tb=short -n 2
================================================================= test session starts =================================================================
platform darwin -- Python 3.12.11, pytest-7.4.4, pluggy-1.6.0 -- /Users/vichym/.pyenv/versions/3.12.11/envs/sam-t-3.12.11/bin/python
cachedir: .pytest_cache
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
metadata: {'Python': '3.12.11', 'Platform': 'macOS-26.1-arm64-arm-64bit', 'Packages': {'pytest': '7.4.4', 'pluggy': '1.6.0'}, 'Plugins': {'xdist': '3.8.0', 'localserver': '0.10.0', 'json-report-wip': '1.5.1', 'random-order': '1.2.0', 'timeout': '2.4.0', 'metadata': '3.1.1', 'hypothesis': '6.148.7', 'cov': '4.1.0', 'rerunfailures': '11.1.2', 'env': '0.8.2', 'forked': '1.6.0'}, 'JAVA_HOME': '/Library/Java/JavaVirtualMachines/amazon-corretto-18.jdk/Contents/Home'}
hypothesis profile 'default'
rootdir: /Volumes/workplace/LambdaTooling/aws/serverless-application-model
configfile: pytest.ini
plugins: xdist-3.8.0, localserver-0.10.0, json-report-wip-1.5.1, random-order-1.2.0, timeout-2.4.0, metadata-3.1.1, hypothesis-6.148.7, cov-4.1.0, rerunfailures-11.1.2, env-0.8.2, forked-1.6.0
2 workers [2 items]     
scheduling tests via LoadScheduling

integration/combination/test_function_with_capacity_provider.py::TestFunctionWithCapacityProvider::test_function_with_capacity_provider_default_role 
integration/combination/test_function_with_capacity_provider.py::TestFunctionWithCapacityProvider::test_function_with_capacity_provider_custom_role 

[gw1] [ 50%] PASSED integration/combination/test_function_with_capacity_provider.py::TestFunctionWithCapacityProvider::test_function_with_capacity_provider_default_role 
[gw0] [100%] PASSED integration/combination/test_function_with_capacity_provider.py::TestFunctionWithCapacityProvider::test_function_with_capacity_provider_custom_role 

============================================================ 2 passed in 929.32s (0:15:29) ============================================================

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@vicheey vicheey requested a review from a team as a code owner December 17, 2025 00:38
bnusunny
bnusunny previously approved these changes Dec 17, 2025
@vicheey vicheey requested review from bnusunny and valerena January 6, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants