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

fix: test suite was broken #649

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/aliased-port.integ.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { App, Stack } from 'aws-cdk-lib';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { AliasedPortExtension, Container, Environment, EnvironmentCapacityType, Service, ServiceDescription } from '../lib';
import { AliasedPortExtension, Container, Environment, EnvironmentCapacityType, Service, ServiceDescription } from '../src';

const app = new App();
const stack = new Stack(app, 'aws-ecs-integ');
Expand Down
2 changes: 1 addition & 1 deletion test/aliased-port.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stack } from 'aws-cdk-lib';
import { Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { AliasedPortExtension, Container, Environment, ServiceDescription, Service } from '../lib';
import { AliasedPortExtension, Container, Environment, ServiceDescription, Service } from '../src';

describe('aliased port', () => {
let stack: Stack;
Expand Down
2 changes: 1 addition & 1 deletion test/all-service-addons.integ.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { App, Stack } from 'aws-cdk-lib';
import { Mesh } from 'aws-cdk-lib/aws-appmesh';
import { ContainerImage } from 'aws-cdk-lib/aws-ecs';
import { AppMeshExtension, CloudwatchAgentExtension, Container, Environment, FireLensExtension, HttpLoadBalancerExtension, Service, ServiceDescription, XRayExtension } from '../lib';
import { AppMeshExtension, CloudwatchAgentExtension, Container, Environment, FireLensExtension, HttpLoadBalancerExtension, Service, ServiceDescription, XRayExtension } from '../src';

const app = new App();
const stack = new Stack(app, 'aws-ecs-integ');
Expand Down
2 changes: 1 addition & 1 deletion test/appmesh.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Stack } from 'aws-cdk-lib';
import { Match, Template } from 'aws-cdk-lib/assertions';
import * as appmesh from 'aws-cdk-lib/aws-appmesh';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { AppMeshExtension, Container, Environment, ServiceDescription, Service } from '../lib';
import { AppMeshExtension, Container, Environment, ServiceDescription, Service } from '../src';

describe('appmesh', () => {
test('should be able to add AWS App Mesh to a service', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/assign-public-ip.integ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { App, CfnOutput, Fn, Stack } from 'aws-cdk-lib';
import { SubnetType, Vpc } from 'aws-cdk-lib/aws-ec2';
import { ContainerImage } from 'aws-cdk-lib/aws-ecs';
import { CnameRecord, PublicHostedZone } from 'aws-cdk-lib/aws-route53';
import { AssignPublicIpExtension, Container, Environment, Service, ServiceDescription } from '../lib';
import { AssignPublicIpExtension, Container, Environment, Service, ServiceDescription } from '../src';

// Record name. You can change this and redeploy this integration test to see
// what happens when the record name changes.
Expand Down
4 changes: 2 additions & 2 deletions test/assign-public-ip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as route53 from 'aws-cdk-lib/aws-route53';
import { AssignPublicIpExtension, Container, Environment, EnvironmentCapacityType, Service, ServiceDescription } from '../lib';
import { TaskRecordManager } from '../lib/extensions/assign-public-ip/task-record-manager';
import { AssignPublicIpExtension, Container, Environment, EnvironmentCapacityType, Service, ServiceDescription } from '../src';
import { TaskRecordManager } from '../src/extensions/assign-public-ip/task-record-manager';

describe('assign public ip', () => {
test('should assign a public ip to fargate tasks', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/cloudwatch-agent.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stack } from 'aws-cdk-lib';
import { Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { CloudwatchAgentExtension, Container, Environment, Service, ServiceDescription } from '../lib';
import { CloudwatchAgentExtension, Container, Environment, Service, ServiceDescription } from '../src';

describe('cloudwatch agent', () => {
test('should be able to add AWS X-Ray to a service', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as iam from 'aws-cdk-lib/aws-iam';
import * as awslogs from 'aws-cdk-lib/aws-logs';
import * as secrets from 'aws-cdk-lib/aws-secretsmanager';
import * as cxapi from 'aws-cdk-lib/cx-api';
import { Container, Environment, EnvironmentCapacityType, FireLensExtension, Service, ServiceDescription } from '../lib';
import { Container, Environment, EnvironmentCapacityType, FireLensExtension, Service, ServiceDescription } from '../src';

describe('container', () => {
test('should be able to add a container to the service', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/custom-service-extension.integ.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { App, Duration, Stack } from 'aws-cdk-lib';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { Container, Environment, Service, ServiceBuild, ServiceDescription, ServiceExtension } from '../lib';
import { Container, Environment, Service, ServiceBuild, ServiceDescription, ServiceExtension } from '../src';

class MyCustomAutoscaling extends ServiceExtension {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion test/environment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Template } from 'aws-cdk-lib/assertions';
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { Container, Environment, EnvironmentCapacityType, Service, ServiceDescription } from '../lib';
import { Container, Environment, EnvironmentCapacityType, Service, ServiceDescription } from '../src';

describe('environment', () => {
test('should be able to add a service to an environment', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/firelens.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stack } from 'aws-cdk-lib';
import { Match, Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { Container, Environment, FireLensExtension, Service, ServiceDescription } from '../lib';
import { Container, Environment, FireLensExtension, Service, ServiceDescription } from '../src';

describe('firelens', () => {
test('should be able to add Firelens to a service', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/http-load-balancer.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stack } from 'aws-cdk-lib';
import { Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { Container, Environment, HttpLoadBalancerExtension, Service, ServiceDescription } from '../lib';
import { Container, Environment, HttpLoadBalancerExtension, Service, ServiceDescription } from '../src';

describe('http load balancer', () => {
test('should be able to add an HTTP load balancer to a service', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/imported-environment.integ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
HttpLoadBalancerExtension,
Service,
ServiceDescription,
} from '../lib';
} from '../src';

class ResourceStack extends NestedStack {
public readonly clusterName: string;
Expand Down
2 changes: 1 addition & 1 deletion test/injecter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Stack } from 'aws-cdk-lib';
import { Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as sns from 'aws-cdk-lib/aws-sns';
import { Container, Environment, InjecterExtension, InjectableTopic, Service, ServiceDescription } from '../lib';
import { Container, Environment, InjecterExtension, InjectableTopic, Service, ServiceDescription } from '../src';

describe('injecter', () => {
test('correctly sets publish permissions for given topics', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/multiple-environments.integ.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { App, Stack } from 'aws-cdk-lib';
import { Mesh } from 'aws-cdk-lib/aws-appmesh';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { Container, Environment, Service, ServiceDescription, AppMeshExtension } from '../lib';
import { Container, Environment, Service, ServiceDescription, AppMeshExtension } from '../src';

const app = new App();
const stack = new Stack(app, 'aws-ecs-integ');
Expand Down
2 changes: 1 addition & 1 deletion test/publish-subscribe.integ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { App, Duration, Stack } from 'aws-cdk-lib';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as sqs from 'aws-cdk-lib/aws-sqs';
import { Container, Environment, InjecterExtension, InjectableTopic, QueueExtension, Service, ServiceDescription, TopicSubscription } from '../lib';
import { Container, Environment, InjecterExtension, InjectableTopic, QueueExtension, Service, ServiceDescription, TopicSubscription } from '../src';


const app = new App();
Expand Down
2 changes: 1 addition & 1 deletion test/queue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as sqs from 'aws-cdk-lib/aws-sqs';
import { Container, Environment, QueueExtension, Service, ServiceDescription, TopicSubscription } from '../lib';
import { Container, Environment, QueueExtension, Service, ServiceDescription, TopicSubscription } from '../src';

describe('queue', () => {
test('should only create a default queue when no input props are provided', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/scale-on-cpu-utilization.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Duration, Stack } from 'aws-cdk-lib';
import { Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { Container, Environment, ScaleOnCpuUtilization, Service, ServiceDescription } from '../lib';
import { Container, Environment, ScaleOnCpuUtilization, Service, ServiceDescription } from '../src';

describe('scale on cpu utilization', () => {
test('scale on cpu utilization extension with no parameters should create a default autoscaling setup', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/service.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stack } from 'aws-cdk-lib';
import { Match, Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { Container, Environment, Service, ServiceDescription } from '../lib';
import { Container, Environment, Service, ServiceDescription } from '../src';

describe('service', () => {
test('should error if a service is prepared with no addons', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/xray.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stack } from 'aws-cdk-lib';
import { Template } from 'aws-cdk-lib/assertions';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import { Container, Environment, XRayExtension, Service, ServiceDescription } from '../lib';
import { Container, Environment, XRayExtension, Service, ServiceDescription } from '../src';

describe('xray', () => {
test('should be able to add AWS X-Ray to a service', () => {
Expand Down
Loading