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

test(toolkit): tests for destroy #32975

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

test(toolkit): tests for destroy #32975

wants to merge 4 commits into from

Conversation

kaizencc
Copy link
Contributor

tests for the destroy action


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

@github-actions github-actions bot added the p2 label Jan 16, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team January 16, 2025 22:44
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 16, 2025
@@ -425,7 +425,7 @@ export class Toolkit extends CloudAssemblySourceBuilder implements AsyncDisposab

await ioHost.notify(info('Stack ARN:'));

await ioHost.notify(data(deployResult.stackArn));
await ioHost.notify(info(deployResult.stackArn));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

data doesn't exist and i assume that info is the better thing to put here anyway

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I marked data was deprecated, so this seems alright.

@@ -3,5 +3,5 @@ import * as path from 'path';
export * from './test-io-host';

export function fixture(name: string, app = 'app.js'): string {
return path.normalize(path.join(__dirname, '..', 'fixtures', name, app));
return path.normalize(path.join(__dirname, '..', '_fixtures', name, app));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

assume that you will need this in the origin branch and then this diff will go away

}));
});

test('destroy from app', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test fails but the equivalent synth test fails also, so i didn't pay it too much attention yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm guessing we need to mock some CFN calls here?

@mrgrain mrgrain force-pushed the mrgrain/toolkit/synth-tests branch 5 times, most recently from eaf5f8c to 3e1c437 Compare January 17, 2025 13:13
Base automatically changed from mrgrain/toolkit/synth-tests to main January 17, 2025 13:42
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 6eff7d4
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.44%. Comparing base (c9d1684) to head (6eff7d4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #32975   +/-   ##
=======================================
  Coverage   81.44%   81.44%           
=======================================
  Files         225      225           
  Lines       13702    13702           
  Branches     2404     2404           
=======================================
  Hits        11160    11160           
  Misses       2267     2267           
  Partials      275      275           
Flag Coverage Δ
suite.unit 81.44% <ø> (ø)

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

Components Coverage Δ
packages/aws-cdk 80.81% <ø> (ø)
packages/aws-cdk-lib/core 82.10% <ø> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants