Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): build your own fromLookup() imports with the new context provider for CloudControl API #138

Merged
merged 13 commits into from
Feb 26, 2025

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Feb 25, 2025

A generic Context Provider for CloudControl API. See aws/aws-cdk#33258 for an example how to implement a fromLookup() method using the new context provider.

(Extracted from aws/aws-cdk#33258)


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

A generic Context Provider for CloudControl API. Extracted from
aws/aws-cdk#33258.
Signed-off-by: github-actions <[email protected]>
Signed-off-by: github-actions <[email protected]>
@@ -31,6 +31,8 @@ import {
} from '../../lib/commands/migrate';
import { MockSdkProvider, mockCloudFormationClient, restoreSdkMocksToDefault } from '../util/mock-sdk';

jest.setTimeout(120_000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Contributor

@mrgrain mrgrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment. Otherwise good to go.

@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2025

Codecov Report

Attention: Patch coverage is 94.30052% with 11 lines in your changes missing coverage. Please review.

Project coverage is 84.58%. Comparing base (88e2bdf) to head (ca3d332).

Files with missing lines Patch % Lines
...s/aws-cdk/lib/context-providers/cc-api-provider.ts 93.70% 7 Missing and 1 partial ⚠️
packages/aws-cdk/lib/util/json.ts 95.31% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
- Coverage   84.76%   84.58%   -0.19%     
==========================================
  Files         196      198       +2     
  Lines       35187    35380     +193     
  Branches     4552     4555       +3     
==========================================
+ Hits        29828    29926      +98     
- Misses       5208     5310     +102     
+ Partials      151      144       -7     
Flag Coverage Δ
suite.unit 84.58% <94.30%> (-0.19%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: github-actions <[email protected]>
Signed-off-by: github-actions <[email protected]>
Signed-off-by: github-actions <[email protected]>
Signed-off-by: github-actions <[email protected]>
@mrgrain mrgrain changed the title feat(cli): Context Provider for CloudControl API feat(cli): new context provider for CloudControl API Feb 26, 2025
@mrgrain mrgrain changed the title feat(cli): new context provider for CloudControl API feat(cli): build your own fromLookup() imports with the new context provider for CloudControl API Feb 26, 2025
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Feb 26, 2025
Merged via the queue into main with commit 130445d Feb 26, 2025
28 checks passed
@aws-cdk-automation aws-cdk-automation deleted the huijbers/ccapi-provider branch February 26, 2025 16:26
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.

4 participants