From 364ce86535fca4a110b2a39aa19ba18648856ab7 Mon Sep 17 00:00:00 2001 From: Rico Hermans Date: Thu, 2 Jan 2025 22:04:47 +0100 Subject: [PATCH] chore(cli-integ): migrate tests can fail because they don't bootstrap (#32714) CDK Migrate tests rely on other tests having bootstrapped their target regions already. That fails if they run first. Add bootstrapping commands to these tests as well. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk-testing/cli-integ/lib/with-cdk-app.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@aws-cdk-testing/cli-integ/lib/with-cdk-app.ts b/packages/@aws-cdk-testing/cli-integ/lib/with-cdk-app.ts index 6b1dc78f4ddbc..7bdfff1154ba2 100644 --- a/packages/@aws-cdk-testing/cli-integ/lib/with-cdk-app.ts +++ b/packages/@aws-cdk-testing/cli-integ/lib/with-cdk-app.ts @@ -117,6 +117,8 @@ export function withCdkMigrateApp(language: string, block context.randomString, ); + await ensureBootstrapped(fixture); + await fixture.cdkMigrate(language, stackName); const testFixture = new TestFixture(