diff --git a/source/patterns/@aws-solutions-constructs/aws-fargate-kinesisfirehose/test/aws-fargate-kinesisfirehose.test.ts b/source/patterns/@aws-solutions-constructs/aws-fargate-kinesisfirehose/test/aws-fargate-kinesisfirehose.test.ts index 83d26ac86..2191cf13b 100644 --- a/source/patterns/@aws-solutions-constructs/aws-fargate-kinesisfirehose/test/aws-fargate-kinesisfirehose.test.ts +++ b/source/patterns/@aws-solutions-constructs/aws-fargate-kinesisfirehose/test/aws-fargate-kinesisfirehose.test.ts @@ -668,7 +668,7 @@ test('Construct uses existingFargateServiceObject when provided', () => { const existingVpc = defaults.getTestVpc(stack); - const [existingFargateServiceObject, existingContainerDefinitionObject] = defaults.CreateFargateService(stack, 'test-existing-fargate-service', + const createFargateServiceResponse = defaults.CreateFargateService(stack, 'test-existing-fargate-service', existingVpc, { clusterName: 'my-cluster' }, defaults.fakeEcrRepoArn, @@ -682,8 +682,8 @@ test('Construct uses existingFargateServiceObject when provided', () => { publicApi: false, existingVpc, existingKinesisFirehose: destination.kinesisFirehose, - existingFargateServiceObject, - existingContainerDefinitionObject + existingFargateServiceObject: createFargateServiceResponse.service, + existingContainerDefinitionObject: createFargateServiceResponse.containerDefinition }); expect(stack).toCountResources('AWS::ECS::Cluster', 1); diff --git a/source/patterns/@aws-solutions-constructs/aws-fargate-kinesisstreams/test/fargate-kinesisstreams.test.ts b/source/patterns/@aws-solutions-constructs/aws-fargate-kinesisstreams/test/fargate-kinesisstreams.test.ts index f07066f93..6e864825c 100644 --- a/source/patterns/@aws-solutions-constructs/aws-fargate-kinesisstreams/test/fargate-kinesisstreams.test.ts +++ b/source/patterns/@aws-solutions-constructs/aws-fargate-kinesisstreams/test/fargate-kinesisstreams.test.ts @@ -573,7 +573,7 @@ test('Construct uses existingFargateServiceObject when provided', () => { const existingVpc = defaults.getTestVpc(stack); - const [existingFargateServiceObject, existingContainerDefinitionObject] = defaults.CreateFargateService(stack, 'test-existing-fargate-service', + const createFargateServiceResponse = defaults.CreateFargateService(stack, 'test-existing-fargate-service', existingVpc, { clusterName: 'my-cluster' }, defaults.fakeEcrRepoArn, @@ -586,8 +586,8 @@ test('Construct uses existingFargateServiceObject when provided', () => { new FargateToKinesisStreams(stack, 'test-fargate-kinesisstreams', { publicApi: false, existingVpc, - existingFargateServiceObject, - existingContainerDefinitionObject + existingFargateServiceObject: createFargateServiceResponse.service, + existingContainerDefinitionObject: createFargateServiceResponse.containerDefinition }); expect(stack).toCountResources('AWS::ECS::Cluster', 1);