You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(lambda): adding metrics and unit test for serverlessland (aws#6719)
## Problem
Adding metrics and unit test for Serverless Land Project
## Solution
- CreateWizard
:) Path
✔ creates project with Python runtime and CDK (725ms)
Error Handling
✔ handles empty project name (521ms)
- MetadataManager
getInstance
✔ should create a new instance when none exists
✔ should return the same instance when called multiple times
initialize
✔ should initialize metadata manager and return instance
getMetadataPath
✔ should return correct metadata path
getPatterns
✔ handles different pattern data types
getRuntimes
✔ returns empty array when pattern not found
✔ returns unique runtimes for valid pattern
getUrl
✔ returns empty string when pattern not found
✔ returns correct URL for valid pattern
getIacOptions
✔ returns empty array when pattern not found
✔ returns unique IAC options for valid pattern
getAssetName
✔ returns empty string when pattern not found
✔ returns correct asset name for matching implementation
✔ returns empty string when no matching implementation found
- createNewServerlessLandProject
✔ should complete project creation successfully
✔ should handle wizard cancellation
downloadPatternCode
✔ successfully downloads pattern code
✔ handles download failure
openReadmeFile
✔ successfully opens README file
✔ handles missing README file
✔ handles error with opening README file
getProjectUri
✔ returns Uri when file exists
✔ handles missing project directory
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
---------
Co-authored-by: Vandita Patidar <[email protected]>
0 commit comments