Add quick tests to examples.
MODIFY
aws-js-containers/index.js
aws-js-containers/index.js
@@ -8,7 +8,7 @@ let service = new awsx.ecs.FargateService("nginx", {
taskDefinitionArgs: {
containers: {
nginx: {
- image: awsx.ecs.Image.fromPath("./app"),
+ image: awsx.ecs.Image.fromPath("nginx", "./app"),
memory: 512,
portMappings: [listener],
},
@@ -17,4 +17,4 @@ let service = new awsx.ecs.FargateService("nginx", {
});
// export just the hostname property of the container frontend
-exports.hostname = listener.endpoint().apply(e => `http://${e.hostname}`);
+exports.hostname = listener.endpoint.apply(e => `http://${e.hostname}`);

MODIFY
aws-js-containers/package.json
aws-js-containers/package.json
"dependencies": {
"@pulumi/pulumi": "latest",
"@pulumi/aws": "latest",
- "@pulumi/aws-infra": "latest"
+ "@pulumi/awsx": "latest"
}
}

MODIFY
aws-ts-airflow/package.json
aws-ts-airflow/package.json
"dependencies": {
"@pulumi/pulumi": "latest",
"@pulumi/aws": "latest",
- "@pulumi/aws-infra": "latest"
+ "@pulumi/awsx": "latest"
}
}

MODIFY
aws-ts-containers/package.json
aws-ts-containers/package.json
"dependencies": {
"@pulumi/pulumi": "latest",
"@pulumi/aws": "latest",
- "@pulumi/aws-infra": "latest"
+ "@pulumi/awsx": "latest"
}
}

MODIFY
aws-ts-eks-hello-world/package.json
aws-ts-eks-hello-world/package.json
"dependencies": {
"@types/node": "latest",
"@pulumi/aws": "latest",
- "@pulumi/aws-infra": "latest",
+ "@pulumi/awsx": "latest",
"@pulumi/kubernetes": "latest",
"@pulumi/eks": "latest",
"@pulumi/pulumi": "latest"

MODIFY
aws-ts-eks/package.json
aws-ts-eks/package.json
},
"dependencies": {
"@pulumi/pulumi": "latest",
- "@pulumi/aws-infra": "latest",
+ "@pulumi/awsx": "latest",
"@pulumi/eks": "latest"
}
}

MODIFY
aws-ts-thumbnailer/package.json
aws-ts-thumbnailer/package.json
"dependencies": {
"@pulumi/pulumi": "latest",
"@pulumi/aws": "latest",
- "@pulumi/aws-infra": "latest"
+ "@pulumi/awsx": "latest"
}
}

MODIFY
aws-ts-url-shortener-cache-http/package.json
aws-ts-url-shortener-cache-http/package.json
"dependencies": {
"@pulumi/pulumi": "latest",
"@pulumi/aws": "latest",
- "@pulumi/aws-infra": "latest",
+ "@pulumi/awsx": "latest",
"@pulumi/cloud-aws": "latest",
"redis": "^2.8.0",
"express": "^4.16.3",

MODIFY
aws-ts-voting-app/package.json
aws-ts-voting-app/package.json
"dependencies": {
"@pulumi/pulumi": "latest",
"@pulumi/aws": "latest",
- "@pulumi/aws-infra": "latest",
+ "@pulumi/awsx": "latest",
"@pulumi/cloud-aws": "latest"
}
}

MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -42,6 +42,20 @@ func TestExamples(t *testing.T) {
Overrides: overrides,
}
+ quickBase := base.With(integration.ProgramTestOptions{
+ Quick: true,
+ SkipRefresh: true,
+ })
+
+ quickTests := []integration.ProgramTestOptions{
+ quickBase.With(integration.ProgramTestOptions{
+ Dir: path.Join(cwd, "..", "..", "aws-js-containers"),
+ Config: map[string]string{
+ "aws:region": awsRegion,
+ },
+ }),
+ }
+
shortTests := []integration.ProgramTestOptions{
base.With(integration.ProgramTestOptions{
Dir: path.Join(cwd, "..", "..", "aws-js-s3-folder"),
@@ -264,6 +278,7 @@ func TestExamples(t *testing.T) {
var tests []integration.ProgramTestOptions
if testing.Short() {
tests = shortTests
+ tests = append(tests, quickTests...)
} else {
tests = longTests
}

Add quick tests to examples. (#221)