diff --git a/test/ci-cluster/.gitignore b/test/ci-cluster/.gitignore new file mode 100644 index 00000000..f13a50af --- /dev/null +++ b/test/ci-cluster/.gitignore @@ -0,0 +1,3 @@ +/bin/ +/node_modules/ +/.vscode diff --git a/test/ci-cluster/gke.ts b/test/ci-cluster/gke.ts index 75e90c5c..5657d2b1 100644 --- a/test/ci-cluster/gke.ts +++ b/test/ci-cluster/gke.ts @@ -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: [ diff --git a/test/testdata/.gitignore b/test/testdata/.gitignore new file mode 100644 index 00000000..c6958891 --- /dev/null +++ b/test/testdata/.gitignore @@ -0,0 +1,2 @@ +/bin/ +/node_modules/ diff --git a/test/testdata/empty-stack/.gitignore b/test/testdata/empty-stack/.gitignore new file mode 100644 index 00000000..c6958891 --- /dev/null +++ b/test/testdata/empty-stack/.gitignore @@ -0,0 +1,2 @@ +/bin/ +/node_modules/ diff --git a/test/testdata/empty-stack/Pulumi.dev.yaml b/test/testdata/empty-stack/Pulumi.dev.yaml new file mode 100644 index 00000000..16f12c3f --- /dev/null +++ b/test/testdata/empty-stack/Pulumi.dev.yaml @@ -0,0 +1,2 @@ +config: + aws:region: us-west-2 diff --git a/test/testdata/empty-stack/Pulumi.yaml b/test/testdata/empty-stack/Pulumi.yaml new file mode 100644 index 00000000..4b6bb909 --- /dev/null +++ b/test/testdata/empty-stack/Pulumi.yaml @@ -0,0 +1,3 @@ +name: empty-stack +runtime: nodejs +description: A minimal AWS TypeScript Pulumi program diff --git a/test/testdata/empty-stack/index.ts b/test/testdata/empty-stack/index.ts new file mode 100644 index 00000000..a662799c --- /dev/null +++ b/test/testdata/empty-stack/index.ts @@ -0,0 +1,2 @@ +console.log("Empty stack!"); + diff --git a/test/testdata/empty-stack/package.json b/test/testdata/empty-stack/package.json new file mode 100644 index 00000000..021a0bb2 --- /dev/null +++ b/test/testdata/empty-stack/package.json @@ -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" + } +} diff --git a/test/testdata/empty-stack/tsconfig.json b/test/testdata/empty-stack/tsconfig.json new file mode 100644 index 00000000..ab65afa6 --- /dev/null +++ b/test/testdata/empty-stack/tsconfig.json @@ -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" + ] +} diff --git a/test/testdata/test-s3-op-project/.gitignore b/test/testdata/test-s3-op-project/.gitignore new file mode 100644 index 00000000..c6958891 --- /dev/null +++ b/test/testdata/test-s3-op-project/.gitignore @@ -0,0 +1,2 @@ +/bin/ +/node_modules/ diff --git a/test/testdata/test-s3-op-project/Pulumi.yaml b/test/testdata/test-s3-op-project/Pulumi.yaml new file mode 100644 index 00000000..401c35b5 --- /dev/null +++ b/test/testdata/test-s3-op-project/Pulumi.yaml @@ -0,0 +1,3 @@ +name: s3-op-project +runtime: nodejs +description: A simple S3 bucket to deploy diff --git a/test/testdata/test-s3-op-project/index.ts b/test/testdata/test-s3-op-project/index.ts new file mode 100644 index 00000000..b785fac8 --- /dev/null +++ b/test/testdata/test-s3-op-project/index.ts @@ -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; diff --git a/test/testdata/test-s3-op-project/package.json b/test/testdata/test-s3-op-project/package.json new file mode 100644 index 00000000..c3968115 --- /dev/null +++ b/test/testdata/test-s3-op-project/package.json @@ -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" + } +} diff --git a/test/testdata/test-s3-op-project/tsconfig.json b/test/testdata/test-s3-op-project/tsconfig.json new file mode 100644 index 00000000..ab65afa6 --- /dev/null +++ b/test/testdata/test-s3-op-project/tsconfig.json @@ -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" + ] +}