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

Move test stacks to same repo as operator #150

Merged
merged 2 commits into from
May 19, 2021
Merged
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
3 changes: 3 additions & 0 deletions test/ci-cluster/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/bin/
/node_modules/
/.vscode
1 change: 0 additions & 1 deletion test/ci-cluster/gke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export class GkeCluster extends pulumi.ComponentResource {
initialNodeCount: config.nodeCount,
nodeVersion: engineVersion,
minMasterVersion: engineVersion,
masterAuth: {username: config.masterUsername, password: config.masterPassword},
nodeConfig: {
machineType: config.nodeMachineType,
oauthScopes: [
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bin/
/node_modules/
2 changes: 2 additions & 0 deletions test/testdata/empty-stack/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bin/
/node_modules/
2 changes: 2 additions & 0 deletions test/testdata/empty-stack/Pulumi.dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config:
aws:region: us-west-2
3 changes: 3 additions & 0 deletions test/testdata/empty-stack/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: empty-stack
runtime: nodejs
description: A minimal AWS TypeScript Pulumi program
2 changes: 2 additions & 0 deletions test/testdata/empty-stack/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
console.log("Empty stack!");

11 changes: 11 additions & 0 deletions test/testdata/empty-stack/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "empty-stack",
"devDependencies": {
"@types/node": "^10.0.0"
},
"dependencies": {
"@pulumi/pulumi": "^2.0.0",
"@pulumi/aws": "^3.0.0",
"@pulumi/awsx": "^0.22.0"
}
}
18 changes: 18 additions & 0 deletions test/testdata/empty-stack/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"strict": true,
"outDir": "bin",
"target": "es2016",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.ts"
]
}
2 changes: 2 additions & 0 deletions test/testdata/test-s3-op-project/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bin/
/node_modules/
3 changes: 3 additions & 0 deletions test/testdata/test-s3-op-project/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: s3-op-project
runtime: nodejs
description: A simple S3 bucket to deploy
15 changes: 15 additions & 0 deletions test/testdata/test-s3-op-project/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";

// Create an AWS resource (S3 Bucket)
const names = [];
for (let i = 0; i < 2; i++) {
const bucket = new aws.s3.Bucket(`my-bucket-${i}`, {
acl: "public-read",
});
names.push(bucket.id);
}

// Export the name of the buckets
export const bucketNames = names;
11 changes: 11 additions & 0 deletions test/testdata/test-s3-op-project/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "s3-op-project",
"devDependencies": {
"@types/node": "^10.0.0"
},
"dependencies": {
"@pulumi/pulumi": "^2.0.0",
"@pulumi/aws": "^2.0.0",
"@pulumi/awsx": "^0.20.0"
}
}
18 changes: 18 additions & 0 deletions test/testdata/test-s3-op-project/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"strict": true,
"outDir": "bin",
"target": "es2016",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.ts"
]
}