From 9b3c4159be6ccbe8ef0f357222efdbb6e88ca271 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Thu, 7 Jan 2021 12:13:25 -0500 Subject: [PATCH] remove unused testdata files these are no longer referenced in any tests --- .../apply-good-create-before-count/main.tf | 7 ---- .../apply-provisioner-conninfo/main.tf | 29 -------------- .../testdata/apply-provisioner-each/main.tf | 7 ---- .../empty-with-child-module/child/child.tf | 3 -- .../grandchild/grandchild.tf | 1 - .../testdata/empty-with-child-module/root.tf | 3 -- .../testdata/graph-builder-basic/main.tf | 5 --- .../graph-builder-cbd-non-cbd/main.tf | 9 ----- .../graph-builder-modules/consul/main.tf | 2 - .../testdata/graph-builder-modules/main.tf | 16 -------- .../foo/bar/main.tf | 2 - .../foo/main.tf | 6 --- .../graph-builder-multi-level-module/main.tf | 4 -- .../graph-builder-orphan-deps/main.tf | 1 - .../testdata/graph-count-var-resource/main.tf | 9 ----- terraform/testdata/graph-count/main.tf | 7 ---- terraform/testdata/graph-cycle/main.tf | 18 --------- .../testdata/graph-depends-on-count/main.tf | 6 --- terraform/testdata/graph-depends-on/main.tf | 5 --- .../testdata/graph-diff-create-before/main.tf | 8 ---- terraform/testdata/graph-diff-destroy/main.tf | 8 ---- .../graph-diff-module-dep-module/bar/main.tf | 3 -- .../graph-diff-module-dep-module/foo/main.tf | 5 --- .../graph-diff-module-dep-module/main.tf | 8 ---- .../graph-diff-module-dep/child/main.tf | 5 --- .../testdata/graph-diff-module-dep/main.tf | 8 ---- .../testdata/graph-diff-module/child/main.tf | 5 --- terraform/testdata/graph-diff-module/main.tf | 7 ---- terraform/testdata/graph-diff/main.tf | 2 - terraform/testdata/graph-missing-deps/main.tf | 5 --- .../testdata/graph-module-orphan/main.tf | 10 ----- .../testdata/graph-modules/consul/main.tf | 3 -- terraform/testdata/graph-modules/main.tf | 16 -------- .../graph-node-module-expand/child/main.tf | 4 -- .../testdata/graph-node-module-expand/main.tf | 3 -- .../graph-node-module-flatten/child/main.tf | 1 - .../graph-node-module-flatten/main.tf | 3 -- terraform/testdata/graph-outputs/main.tf | 5 --- .../testdata/graph-provider-alias/main.tf | 10 ----- .../testdata/graph-provider-prune/main.tf | 5 --- terraform/testdata/graph-provisioners/main.tf | 33 ---------------- .../graph-resource-expand-prov-deps/main.tf | 7 ---- .../testdata/graph-resource-expand/main.tf | 3 -- terraform/testdata/graph-tainted/main.tf | 18 --------- .../testdata/import-provider-alias/main.tf | 4 -- .../testdata/input-bad-var-default/main.tf | 5 --- terraform/testdata/input-hcl/main.tf | 12 ------ .../main.tf | 9 ----- .../moda/main.tf | 3 -- .../modb/main.tf | 7 ---- .../testdata/input-variables-invalid/main.tf | 30 --------------- .../input-variables-invalid/terraform.tfvars | 13 ------- terraform/testdata/interpolate-local/main.tf | 3 -- .../testdata/interpolate-multi-interp/main.tf | 3 -- .../testdata/interpolate-multi-vars/main.tf | 7 ---- .../interpolate-path-module/child/main.tf | 0 .../testdata/interpolate-path-module/main.tf | 3 -- .../main.tf | 3 -- .../interpolate-resource-variable/main.tf | 1 - .../main.tf | 7 ---- .../main.tf | 2 - .../module-deps-explicit-provider/main.tf | 8 ---- .../module-deps-implicit-provider/main.tf | 8 ---- .../child/child.tf | 17 --------- .../grandchild/grandchild.tf | 11 ------ .../module-deps-inherit-provider/main.tf | 11 ------ .../module-deps-required-providers/main.tf | 7 ---- terraform/testdata/new-good/main.tf | 6 --- terraform/testdata/new-graph-cycle/main.tf | 7 ---- terraform/testdata/new-pc-cache/main.tf | 12 ------ .../testdata/new-provider-validate/main.tf | 5 --- terraform/testdata/new-variables/main.tf | 4 -- .../plan-data-source-type-mismatch/main.tf | 4 -- terraform/testdata/plan-provider-init/main.tf | 9 ----- .../plan-targeted-with-tainted/main.tf | 5 --- .../testdata/refresh-config-orphan/main.tf | 3 -- .../testdata/refresh-data-scale-inout/main.tf | 3 -- .../refresh-resource-scale-inout/main.tf | 3 -- .../testdata/state-module-orphans/bar/main.tf | 1 - .../testdata/state-module-orphans/main.tf | 3 -- .../state-upgrade/v1-to-v2-empty-path.tfstate | 38 ------------------- .../main.tf | 9 ----- .../main.tf | 9 ----- .../testdata/transform-destroy-basic/main.tf | 5 --- .../transform-destroy-depends-on/main.tf | 5 --- .../testdata/transform-destroy-deps/main.tf | 5 --- .../transform-destroy-edge-splat/main.tf | 6 --- .../testdata/transform-destroy-prefix/main.tf | 3 -- .../transform-destroy-prune-count/main.tf | 6 --- .../testdata/transform-diff-basic/main.tf | 1 - .../transform-flat-config-basic/child/main.tf | 1 - .../transform-flat-config-basic/main.tf | 9 ----- .../testdata/transform-flatten/child/main.tf | 9 ----- terraform/testdata/transform-flatten/main.tf | 12 ------ .../transform-orphan-output-basic/main.tf | 1 - .../child/main.tf | 7 ---- .../transform-provider-disable-keep/main.tf | 9 ----- .../transform-provider-disable/child/main.tf | 7 ---- .../transform-provider-disable/main.tf | 7 ---- .../transform-provisioner-prune/main.tf | 3 -- .../transform-resource-count-basic/main.tf | 3 -- .../transform-resource-count-deps/main.tf | 8 ---- .../transform-resource-count-negative/main.tf | 4 -- .../testdata/transform-tainted-basic/main.tf | 1 - .../transform-targets-destroy/main.tf | 26 ------------- terraform/testdata/uservars-map/main.tf | 3 -- terraform/testdata/validate-cycle/main.tf | 19 ---------- .../validate-module-pc-inherit-orphan/main.tf | 9 ----- .../validate-resource-name-symbol/main.tf | 3 -- .../validate-var-map-override-old/main.tf | 1 - 110 files changed, 793 deletions(-) delete mode 100644 terraform/testdata/apply-good-create-before-count/main.tf delete mode 100644 terraform/testdata/apply-provisioner-conninfo/main.tf delete mode 100644 terraform/testdata/apply-provisioner-each/main.tf delete mode 100644 terraform/testdata/empty-with-child-module/child/child.tf delete mode 100644 terraform/testdata/empty-with-child-module/grandchild/grandchild.tf delete mode 100644 terraform/testdata/empty-with-child-module/root.tf delete mode 100644 terraform/testdata/graph-builder-basic/main.tf delete mode 100644 terraform/testdata/graph-builder-cbd-non-cbd/main.tf delete mode 100644 terraform/testdata/graph-builder-modules/consul/main.tf delete mode 100644 terraform/testdata/graph-builder-modules/main.tf delete mode 100644 terraform/testdata/graph-builder-multi-level-module/foo/bar/main.tf delete mode 100644 terraform/testdata/graph-builder-multi-level-module/foo/main.tf delete mode 100644 terraform/testdata/graph-builder-multi-level-module/main.tf delete mode 100644 terraform/testdata/graph-builder-orphan-deps/main.tf delete mode 100644 terraform/testdata/graph-count-var-resource/main.tf delete mode 100644 terraform/testdata/graph-count/main.tf delete mode 100644 terraform/testdata/graph-cycle/main.tf delete mode 100644 terraform/testdata/graph-depends-on-count/main.tf delete mode 100644 terraform/testdata/graph-depends-on/main.tf delete mode 100644 terraform/testdata/graph-diff-create-before/main.tf delete mode 100644 terraform/testdata/graph-diff-destroy/main.tf delete mode 100644 terraform/testdata/graph-diff-module-dep-module/bar/main.tf delete mode 100644 terraform/testdata/graph-diff-module-dep-module/foo/main.tf delete mode 100644 terraform/testdata/graph-diff-module-dep-module/main.tf delete mode 100644 terraform/testdata/graph-diff-module-dep/child/main.tf delete mode 100644 terraform/testdata/graph-diff-module-dep/main.tf delete mode 100644 terraform/testdata/graph-diff-module/child/main.tf delete mode 100644 terraform/testdata/graph-diff-module/main.tf delete mode 100644 terraform/testdata/graph-diff/main.tf delete mode 100644 terraform/testdata/graph-missing-deps/main.tf delete mode 100644 terraform/testdata/graph-module-orphan/main.tf delete mode 100644 terraform/testdata/graph-modules/consul/main.tf delete mode 100644 terraform/testdata/graph-modules/main.tf delete mode 100644 terraform/testdata/graph-node-module-expand/child/main.tf delete mode 100644 terraform/testdata/graph-node-module-expand/main.tf delete mode 100644 terraform/testdata/graph-node-module-flatten/child/main.tf delete mode 100644 terraform/testdata/graph-node-module-flatten/main.tf delete mode 100644 terraform/testdata/graph-outputs/main.tf delete mode 100644 terraform/testdata/graph-provider-alias/main.tf delete mode 100644 terraform/testdata/graph-provider-prune/main.tf delete mode 100644 terraform/testdata/graph-provisioners/main.tf delete mode 100644 terraform/testdata/graph-resource-expand-prov-deps/main.tf delete mode 100644 terraform/testdata/graph-resource-expand/main.tf delete mode 100644 terraform/testdata/graph-tainted/main.tf delete mode 100644 terraform/testdata/import-provider-alias/main.tf delete mode 100644 terraform/testdata/input-bad-var-default/main.tf delete mode 100644 terraform/testdata/input-hcl/main.tf delete mode 100644 terraform/testdata/input-module-computed-output-element/main.tf delete mode 100644 terraform/testdata/input-module-computed-output-element/moda/main.tf delete mode 100644 terraform/testdata/input-module-computed-output-element/modb/main.tf delete mode 100644 terraform/testdata/input-variables-invalid/main.tf delete mode 100644 terraform/testdata/input-variables-invalid/terraform.tfvars delete mode 100644 terraform/testdata/interpolate-local/main.tf delete mode 100644 terraform/testdata/interpolate-multi-interp/main.tf delete mode 100644 terraform/testdata/interpolate-multi-vars/main.tf delete mode 100644 terraform/testdata/interpolate-path-module/child/main.tf delete mode 100644 terraform/testdata/interpolate-path-module/main.tf delete mode 100644 terraform/testdata/interpolate-resource-variable-multi/main.tf delete mode 100644 terraform/testdata/interpolate-resource-variable/main.tf delete mode 100644 terraform/testdata/module-deps-explicit-provider-resource/main.tf delete mode 100644 terraform/testdata/module-deps-explicit-provider-unconstrained/main.tf delete mode 100644 terraform/testdata/module-deps-explicit-provider/main.tf delete mode 100644 terraform/testdata/module-deps-implicit-provider/main.tf delete mode 100644 terraform/testdata/module-deps-inherit-provider/child/child.tf delete mode 100644 terraform/testdata/module-deps-inherit-provider/grandchild/grandchild.tf delete mode 100644 terraform/testdata/module-deps-inherit-provider/main.tf delete mode 100644 terraform/testdata/module-deps-required-providers/main.tf delete mode 100644 terraform/testdata/new-good/main.tf delete mode 100644 terraform/testdata/new-graph-cycle/main.tf delete mode 100644 terraform/testdata/new-pc-cache/main.tf delete mode 100644 terraform/testdata/new-provider-validate/main.tf delete mode 100644 terraform/testdata/new-variables/main.tf delete mode 100644 terraform/testdata/plan-data-source-type-mismatch/main.tf delete mode 100644 terraform/testdata/plan-provider-init/main.tf delete mode 100644 terraform/testdata/plan-targeted-with-tainted/main.tf delete mode 100644 terraform/testdata/refresh-config-orphan/main.tf delete mode 100644 terraform/testdata/refresh-data-scale-inout/main.tf delete mode 100644 terraform/testdata/refresh-resource-scale-inout/main.tf delete mode 100644 terraform/testdata/state-module-orphans/bar/main.tf delete mode 100644 terraform/testdata/state-module-orphans/main.tf delete mode 100644 terraform/testdata/state-upgrade/v1-to-v2-empty-path.tfstate delete mode 100644 terraform/testdata/transform-create-before-destroy-basic/main.tf delete mode 100644 terraform/testdata/transform-create-before-destroy-twice/main.tf delete mode 100644 terraform/testdata/transform-destroy-basic/main.tf delete mode 100644 terraform/testdata/transform-destroy-depends-on/main.tf delete mode 100644 terraform/testdata/transform-destroy-deps/main.tf delete mode 100644 terraform/testdata/transform-destroy-edge-splat/main.tf delete mode 100644 terraform/testdata/transform-destroy-prefix/main.tf delete mode 100644 terraform/testdata/transform-destroy-prune-count/main.tf delete mode 100644 terraform/testdata/transform-diff-basic/main.tf delete mode 100644 terraform/testdata/transform-flat-config-basic/child/main.tf delete mode 100644 terraform/testdata/transform-flat-config-basic/main.tf delete mode 100644 terraform/testdata/transform-flatten/child/main.tf delete mode 100644 terraform/testdata/transform-flatten/main.tf delete mode 100644 terraform/testdata/transform-orphan-output-basic/main.tf delete mode 100644 terraform/testdata/transform-provider-disable-keep/child/main.tf delete mode 100644 terraform/testdata/transform-provider-disable-keep/main.tf delete mode 100644 terraform/testdata/transform-provider-disable/child/main.tf delete mode 100644 terraform/testdata/transform-provider-disable/main.tf delete mode 100644 terraform/testdata/transform-provisioner-prune/main.tf delete mode 100644 terraform/testdata/transform-resource-count-basic/main.tf delete mode 100644 terraform/testdata/transform-resource-count-deps/main.tf delete mode 100644 terraform/testdata/transform-resource-count-negative/main.tf delete mode 100644 terraform/testdata/transform-tainted-basic/main.tf delete mode 100644 terraform/testdata/transform-targets-destroy/main.tf delete mode 100644 terraform/testdata/uservars-map/main.tf delete mode 100644 terraform/testdata/validate-cycle/main.tf delete mode 100644 terraform/testdata/validate-module-pc-inherit-orphan/main.tf delete mode 100644 terraform/testdata/validate-resource-name-symbol/main.tf delete mode 100644 terraform/testdata/validate-var-map-override-old/main.tf diff --git a/terraform/testdata/apply-good-create-before-count/main.tf b/terraform/testdata/apply-good-create-before-count/main.tf deleted file mode 100644 index 324ad5285..000000000 --- a/terraform/testdata/apply-good-create-before-count/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_instance" "bar" { - count = 2 - require_new = "xyz" - lifecycle { - create_before_destroy = true - } -} diff --git a/terraform/testdata/apply-provisioner-conninfo/main.tf b/terraform/testdata/apply-provisioner-conninfo/main.tf deleted file mode 100644 index 5166d22ba..000000000 --- a/terraform/testdata/apply-provisioner-conninfo/main.tf +++ /dev/null @@ -1,29 +0,0 @@ -variable "pass" { -} - -variable "value" { -} - -resource "aws_instance" "foo" { - num = "2" - compute = "value" - compute_value = "${var.value}" -} - -resource "aws_instance" "bar" { - connection { - host = "localhost" - type = "telnet" - } - - provisioner "shell" { - foo = "${aws_instance.foo.value}" - connection { - host = "localhost" - type = "telnet" - user = "superuser" - port = 2222 - password = "${var.pass}" - } - } -} diff --git a/terraform/testdata/apply-provisioner-each/main.tf b/terraform/testdata/apply-provisioner-each/main.tf deleted file mode 100644 index 29be7206e..000000000 --- a/terraform/testdata/apply-provisioner-each/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_instance" "bar" { - for_each = toset(["a"]) - provisioner "shell" { - when = "destroy" - command = "echo ${each.key}" - } -} diff --git a/terraform/testdata/empty-with-child-module/child/child.tf b/terraform/testdata/empty-with-child-module/child/child.tf deleted file mode 100644 index 05e29577e..000000000 --- a/terraform/testdata/empty-with-child-module/child/child.tf +++ /dev/null @@ -1,3 +0,0 @@ -module "grandchild" { - source = "../grandchild" -} diff --git a/terraform/testdata/empty-with-child-module/grandchild/grandchild.tf b/terraform/testdata/empty-with-child-module/grandchild/grandchild.tf deleted file mode 100644 index 4b41c9fcf..000000000 --- a/terraform/testdata/empty-with-child-module/grandchild/grandchild.tf +++ /dev/null @@ -1 +0,0 @@ -# Nothing here! diff --git a/terraform/testdata/empty-with-child-module/root.tf b/terraform/testdata/empty-with-child-module/root.tf deleted file mode 100644 index 1f95749fa..000000000 --- a/terraform/testdata/empty-with-child-module/root.tf +++ /dev/null @@ -1,3 +0,0 @@ -module "child" { - source = "./child" -} diff --git a/terraform/testdata/graph-builder-basic/main.tf b/terraform/testdata/graph-builder-basic/main.tf deleted file mode 100644 index add0dd43f..000000000 --- a/terraform/testdata/graph-builder-basic/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -provider "aws" {} -resource "aws_instance" "db" {} -resource "aws_instance" "web" { - foo = "${aws_instance.db.id}" -} diff --git a/terraform/testdata/graph-builder-cbd-non-cbd/main.tf b/terraform/testdata/graph-builder-cbd-non-cbd/main.tf deleted file mode 100644 index f478d4f33..000000000 --- a/terraform/testdata/graph-builder-cbd-non-cbd/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -provider "aws" {} - -resource "aws_lc" "foo" {} - -resource "aws_asg" "foo" { - lc = "${aws_lc.foo.id}" - - lifecycle { create_before_destroy = true } -} diff --git a/terraform/testdata/graph-builder-modules/consul/main.tf b/terraform/testdata/graph-builder-modules/consul/main.tf deleted file mode 100644 index 8b0469b8c..000000000 --- a/terraform/testdata/graph-builder-modules/consul/main.tf +++ /dev/null @@ -1,2 +0,0 @@ -provider "aws" {} -resource "aws_instance" "server" {} diff --git a/terraform/testdata/graph-builder-modules/main.tf b/terraform/testdata/graph-builder-modules/main.tf deleted file mode 100644 index 8e8b532dd..000000000 --- a/terraform/testdata/graph-builder-modules/main.tf +++ /dev/null @@ -1,16 +0,0 @@ -module "consul" { - foo = "${aws_security_group.firewall.foo}" - source = "./consul" -} - -provider "aws" {} - -resource "aws_security_group" "firewall" {} - -resource "aws_instance" "web" { - security_groups = [ - "foo", - "${aws_security_group.firewall.foo}", - "${module.consul.security_group}" - ] -} diff --git a/terraform/testdata/graph-builder-multi-level-module/foo/bar/main.tf b/terraform/testdata/graph-builder-multi-level-module/foo/bar/main.tf deleted file mode 100644 index 6ee0b2889..000000000 --- a/terraform/testdata/graph-builder-multi-level-module/foo/bar/main.tf +++ /dev/null @@ -1,2 +0,0 @@ -variable "bar" {} -output "value" { value = "${var.bar}" } diff --git a/terraform/testdata/graph-builder-multi-level-module/foo/main.tf b/terraform/testdata/graph-builder-multi-level-module/foo/main.tf deleted file mode 100644 index dbe120fb4..000000000 --- a/terraform/testdata/graph-builder-multi-level-module/foo/main.tf +++ /dev/null @@ -1,6 +0,0 @@ -module "bar" { - source = "./bar" - bar = "${var.foo}" -} - -variable "foo" {} diff --git a/terraform/testdata/graph-builder-multi-level-module/main.tf b/terraform/testdata/graph-builder-multi-level-module/main.tf deleted file mode 100644 index 3962c1d14..000000000 --- a/terraform/testdata/graph-builder-multi-level-module/main.tf +++ /dev/null @@ -1,4 +0,0 @@ -module "foo" { - source = "./foo" - foo = "bar" -} diff --git a/terraform/testdata/graph-builder-orphan-deps/main.tf b/terraform/testdata/graph-builder-orphan-deps/main.tf deleted file mode 100644 index b21d3b6ab..000000000 --- a/terraform/testdata/graph-builder-orphan-deps/main.tf +++ /dev/null @@ -1 +0,0 @@ -provider "aws" {} diff --git a/terraform/testdata/graph-count-var-resource/main.tf b/terraform/testdata/graph-count-var-resource/main.tf deleted file mode 100644 index 9c7407fa5..000000000 --- a/terraform/testdata/graph-count-var-resource/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -resource "aws_instance" "foo" {} - -resource "aws_instance" "web" { - count = "${aws_instance.foo.bar}" -} - -resource "aws_load_balancer" "weblb" { - members = "${aws_instance.web.*.id}" -} diff --git a/terraform/testdata/graph-count/main.tf b/terraform/testdata/graph-count/main.tf deleted file mode 100644 index c6fdf97e4..000000000 --- a/terraform/testdata/graph-count/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_instance" "web" { - count = 3 -} - -resource "aws_load_balancer" "weblb" { - members = "${aws_instance.web.*.id}" -} diff --git a/terraform/testdata/graph-cycle/main.tf b/terraform/testdata/graph-cycle/main.tf deleted file mode 100644 index 1f7a3a763..000000000 --- a/terraform/testdata/graph-cycle/main.tf +++ /dev/null @@ -1,18 +0,0 @@ -variable "foo" { - default = "bar" - description = "bar" -} - -provider "aws" { - foo = "${aws_security_group.firewall.value}" -} - -resource "aws_security_group" "firewall" {} - -resource "aws_instance" "web" { - ami = "${var.foo}" - security_groups = [ - "foo", - "${aws_security_group.firewall.foo}" - ] -} diff --git a/terraform/testdata/graph-depends-on-count/main.tf b/terraform/testdata/graph-depends-on-count/main.tf deleted file mode 100644 index 7e005f172..000000000 --- a/terraform/testdata/graph-depends-on-count/main.tf +++ /dev/null @@ -1,6 +0,0 @@ -resource "aws_instance" "web" {} - -resource "aws_instance" "db" { - depends_on = ["aws_instance.web"] - count = 2 -} diff --git a/terraform/testdata/graph-depends-on/main.tf b/terraform/testdata/graph-depends-on/main.tf deleted file mode 100644 index 5a5430917..000000000 --- a/terraform/testdata/graph-depends-on/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_instance" "web" {} - -resource "aws_instance" "db" { - depends_on = ["aws_instance.web"] -} diff --git a/terraform/testdata/graph-diff-create-before/main.tf b/terraform/testdata/graph-diff-create-before/main.tf deleted file mode 100644 index 2cfe794d1..000000000 --- a/terraform/testdata/graph-diff-create-before/main.tf +++ /dev/null @@ -1,8 +0,0 @@ -provider "aws" {} - -resource "aws_instance" "bar" { - ami = "abc" - lifecycle { - create_before_destroy = true - } -} diff --git a/terraform/testdata/graph-diff-destroy/main.tf b/terraform/testdata/graph-diff-destroy/main.tf deleted file mode 100644 index 1df2421fc..000000000 --- a/terraform/testdata/graph-diff-destroy/main.tf +++ /dev/null @@ -1,8 +0,0 @@ -provider "aws" {} - -resource "aws_instance" "foo" { -} - -resource "aws_instance" "bar" { - foo = "${aws_instance.foo.id}" -} diff --git a/terraform/testdata/graph-diff-module-dep-module/bar/main.tf b/terraform/testdata/graph-diff-module-dep-module/bar/main.tf deleted file mode 100644 index 6f71b621f..000000000 --- a/terraform/testdata/graph-diff-module-dep-module/bar/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -variable "in" {} - -aws_instance "foo" {} diff --git a/terraform/testdata/graph-diff-module-dep-module/foo/main.tf b/terraform/testdata/graph-diff-module-dep-module/foo/main.tf deleted file mode 100644 index 2bf29d59e..000000000 --- a/terraform/testdata/graph-diff-module-dep-module/foo/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -output "data" { - value = "foo" -} - -aws_instance "foo" {} diff --git a/terraform/testdata/graph-diff-module-dep-module/main.tf b/terraform/testdata/graph-diff-module-dep-module/main.tf deleted file mode 100644 index 656503f28..000000000 --- a/terraform/testdata/graph-diff-module-dep-module/main.tf +++ /dev/null @@ -1,8 +0,0 @@ -module "foo" { - source = "./foo" -} - -module "bar" { - source = "./bar" - in = "${module.foo.data}" -} diff --git a/terraform/testdata/graph-diff-module-dep/child/main.tf b/terraform/testdata/graph-diff-module-dep/child/main.tf deleted file mode 100644 index 84d1de905..000000000 --- a/terraform/testdata/graph-diff-module-dep/child/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_instance" "foo" {} - -output "bar" { - value = "baz" -} diff --git a/terraform/testdata/graph-diff-module-dep/main.tf b/terraform/testdata/graph-diff-module-dep/main.tf deleted file mode 100644 index 2f61386b2..000000000 --- a/terraform/testdata/graph-diff-module-dep/main.tf +++ /dev/null @@ -1,8 +0,0 @@ -resource "aws_instance" "foo" {} - -module "child" { - source = "./child" - in = "${aws_instance.foo.id}" -} - - diff --git a/terraform/testdata/graph-diff-module/child/main.tf b/terraform/testdata/graph-diff-module/child/main.tf deleted file mode 100644 index 84d1de905..000000000 --- a/terraform/testdata/graph-diff-module/child/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_instance" "foo" {} - -output "bar" { - value = "baz" -} diff --git a/terraform/testdata/graph-diff-module/main.tf b/terraform/testdata/graph-diff-module/main.tf deleted file mode 100644 index 2b823f117..000000000 --- a/terraform/testdata/graph-diff-module/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -module "child" { - source = "./child" -} - -resource "aws_instance" "foo" { - value = "${module.child.bar}" -} diff --git a/terraform/testdata/graph-diff/main.tf b/terraform/testdata/graph-diff/main.tf deleted file mode 100644 index b626e60c8..000000000 --- a/terraform/testdata/graph-diff/main.tf +++ /dev/null @@ -1,2 +0,0 @@ -resource "aws_instance" "foo" { -} diff --git a/terraform/testdata/graph-missing-deps/main.tf b/terraform/testdata/graph-missing-deps/main.tf deleted file mode 100644 index 44297f318..000000000 --- a/terraform/testdata/graph-missing-deps/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_instance" "db" {} - -resource "aws_instance" "web" { - foo = "${aws_instance.lb.id}" -} diff --git a/terraform/testdata/graph-module-orphan/main.tf b/terraform/testdata/graph-module-orphan/main.tf deleted file mode 100644 index 307463d30..000000000 --- a/terraform/testdata/graph-module-orphan/main.tf +++ /dev/null @@ -1,10 +0,0 @@ -provider "aws" {} - -resource "aws_security_group" "firewall" {} - -resource "aws_instance" "web" { - security_groups = [ - "foo", - "${aws_security_group.firewall.foo}" - ] -} diff --git a/terraform/testdata/graph-modules/consul/main.tf b/terraform/testdata/graph-modules/consul/main.tf deleted file mode 100644 index 9e22d04d8..000000000 --- a/terraform/testdata/graph-modules/consul/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "server" {} - -output "security_group" { value = "" } diff --git a/terraform/testdata/graph-modules/main.tf b/terraform/testdata/graph-modules/main.tf deleted file mode 100644 index 8e8b532dd..000000000 --- a/terraform/testdata/graph-modules/main.tf +++ /dev/null @@ -1,16 +0,0 @@ -module "consul" { - foo = "${aws_security_group.firewall.foo}" - source = "./consul" -} - -provider "aws" {} - -resource "aws_security_group" "firewall" {} - -resource "aws_instance" "web" { - security_groups = [ - "foo", - "${aws_security_group.firewall.foo}", - "${module.consul.security_group}" - ] -} diff --git a/terraform/testdata/graph-node-module-expand/child/main.tf b/terraform/testdata/graph-node-module-expand/child/main.tf deleted file mode 100644 index f14f189b0..000000000 --- a/terraform/testdata/graph-node-module-expand/child/main.tf +++ /dev/null @@ -1,4 +0,0 @@ -resource "aws_instance" "foo" {} -resource "aws_instance" "bar" { - var = "${aws_instance.foo.whatever}" -} diff --git a/terraform/testdata/graph-node-module-expand/main.tf b/terraform/testdata/graph-node-module-expand/main.tf deleted file mode 100644 index 0f6991c53..000000000 --- a/terraform/testdata/graph-node-module-expand/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -module "child" { - source = "./child" -} diff --git a/terraform/testdata/graph-node-module-flatten/child/main.tf b/terraform/testdata/graph-node-module-flatten/child/main.tf deleted file mode 100644 index 919f140bb..000000000 --- a/terraform/testdata/graph-node-module-flatten/child/main.tf +++ /dev/null @@ -1 +0,0 @@ -resource "aws_instance" "foo" {} diff --git a/terraform/testdata/graph-node-module-flatten/main.tf b/terraform/testdata/graph-node-module-flatten/main.tf deleted file mode 100644 index 0f6991c53..000000000 --- a/terraform/testdata/graph-node-module-flatten/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -module "child" { - source = "./child" -} diff --git a/terraform/testdata/graph-outputs/main.tf b/terraform/testdata/graph-outputs/main.tf deleted file mode 100644 index 92c4bf226..000000000 --- a/terraform/testdata/graph-outputs/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_instance" "foo" {} - -output "foo" { - value = "${aws_instance.foo.value}" -} diff --git a/terraform/testdata/graph-provider-alias/main.tf b/terraform/testdata/graph-provider-alias/main.tf deleted file mode 100644 index f7c319fc5..000000000 --- a/terraform/testdata/graph-provider-alias/main.tf +++ /dev/null @@ -1,10 +0,0 @@ -provider "aws" { -} - -provider "aws" { - alias = "foo" -} - -provider "aws" { - alias = "bar" -} \ No newline at end of file diff --git a/terraform/testdata/graph-provider-prune/main.tf b/terraform/testdata/graph-provider-prune/main.tf deleted file mode 100644 index ac2f526fa..000000000 --- a/terraform/testdata/graph-provider-prune/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -provider "aws" {} -provider "digitalocean" {} -provider "openstack" {} - -resource "aws_load_balancer" "weblb" {} diff --git a/terraform/testdata/graph-provisioners/main.tf b/terraform/testdata/graph-provisioners/main.tf deleted file mode 100644 index 6e1e93aac..000000000 --- a/terraform/testdata/graph-provisioners/main.tf +++ /dev/null @@ -1,33 +0,0 @@ -variable "foo" { - default = "bar" - description = "bar" -} - -provider "aws" {} - -resource "aws_security_group" "firewall" {} - -resource "aws_instance" "web" { - ami = "${var.foo}" - security_groups = [ - "foo", - "${aws_security_group.firewall.foo}" - ] - provisioner "winrm" { - cmd = "echo foo" - } - provisioner "winrm" { - cmd = "echo bar" - } -} - -resource "aws_load_balancer" "weblb" { - provisioner "shell" { - cmd = "add ${aws_instance.web.id}" - connection { - host = "localhost" - type = "magic" - user = "${aws_security_group.firewall.id}" - } - } -} diff --git a/terraform/testdata/graph-resource-expand-prov-deps/main.tf b/terraform/testdata/graph-resource-expand-prov-deps/main.tf deleted file mode 100644 index a8c8efd85..000000000 --- a/terraform/testdata/graph-resource-expand-prov-deps/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_instance" "web" { - count = 3 - - provisioner "remote-exec" { - inline = ["echo ${aws_instance.web.0.foo}"] - } -} diff --git a/terraform/testdata/graph-resource-expand/main.tf b/terraform/testdata/graph-resource-expand/main.tf deleted file mode 100644 index b00b04eff..000000000 --- a/terraform/testdata/graph-resource-expand/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "web" { - count = 3 -} diff --git a/terraform/testdata/graph-tainted/main.tf b/terraform/testdata/graph-tainted/main.tf deleted file mode 100644 index da7eb0a79..000000000 --- a/terraform/testdata/graph-tainted/main.tf +++ /dev/null @@ -1,18 +0,0 @@ -variable "foo" { - default = "bar" - description = "bar" -} - -provider "aws" { - foo = "${openstack_floating_ip.random.value}" -} - -resource "aws_security_group" "firewall" {} - -resource "aws_instance" "web" { - ami = "${var.foo}" - security_groups = [ - "foo", - "${aws_security_group.firewall.foo}" - ] -} diff --git a/terraform/testdata/import-provider-alias/main.tf b/terraform/testdata/import-provider-alias/main.tf deleted file mode 100644 index d145d088e..000000000 --- a/terraform/testdata/import-provider-alias/main.tf +++ /dev/null @@ -1,4 +0,0 @@ -provider "aws" { - foo = "bar" - alias = "alias" -} diff --git a/terraform/testdata/input-bad-var-default/main.tf b/terraform/testdata/input-bad-var-default/main.tf deleted file mode 100644 index bc34bb8e9..000000000 --- a/terraform/testdata/input-bad-var-default/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -variable "test" { - default = { - l = [1, 2, 3] - } -} diff --git a/terraform/testdata/input-hcl/main.tf b/terraform/testdata/input-hcl/main.tf deleted file mode 100644 index ca46ee8e9..000000000 --- a/terraform/testdata/input-hcl/main.tf +++ /dev/null @@ -1,12 +0,0 @@ -variable "mapped" { - type = "map" -} - -variable "listed" { - type = "list" -} - -resource "hcl_instance" "hcltest" { - foo = "${var.listed}" - bar = "${var.mapped}" -} diff --git a/terraform/testdata/input-module-computed-output-element/main.tf b/terraform/testdata/input-module-computed-output-element/main.tf deleted file mode 100644 index bb96e24a3..000000000 --- a/terraform/testdata/input-module-computed-output-element/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -module "b" { - source = "./modb" -} - -module "a" { - source = "./moda" - - single_element = "${element(module.b.computed_list, 0)}" -} diff --git a/terraform/testdata/input-module-computed-output-element/moda/main.tf b/terraform/testdata/input-module-computed-output-element/moda/main.tf deleted file mode 100644 index eb09eb192..000000000 --- a/terraform/testdata/input-module-computed-output-element/moda/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -variable "single_element" { - type = "string" -} diff --git a/terraform/testdata/input-module-computed-output-element/modb/main.tf b/terraform/testdata/input-module-computed-output-element/modb/main.tf deleted file mode 100644 index ebe4a7eff..000000000 --- a/terraform/testdata/input-module-computed-output-element/modb/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_instance" "test" { - count = 3 -} - -output "computed_list" { - value = ["${aws_instance.test.*.id}"] -} diff --git a/terraform/testdata/input-variables-invalid/main.tf b/terraform/testdata/input-variables-invalid/main.tf deleted file mode 100644 index 9d6d49aa3..000000000 --- a/terraform/testdata/input-variables-invalid/main.tf +++ /dev/null @@ -1,30 +0,0 @@ -# Required -variable "foo" { -} - -# Optional -variable "bar" { - default = "baz" -} - -# Mapping -variable "map" { - default = { - foo = "bar" - } -} - -# Complex Object Types -variable "object_map" { - type = map(object({ - foo = string, - bar = any - })) -} - -variable "object_list" { - type = list(object({ - foo = string, - bar = any - })) -} diff --git a/terraform/testdata/input-variables-invalid/terraform.tfvars b/terraform/testdata/input-variables-invalid/terraform.tfvars deleted file mode 100644 index 4ebc83913..000000000 --- a/terraform/testdata/input-variables-invalid/terraform.tfvars +++ /dev/null @@ -1,13 +0,0 @@ -test = [ - { - foo = "blah1" - bar = {} - }, - { - foo = "blah2" - bar = { - var1 = "val1", - var2 = "var2" - } - } -] diff --git a/terraform/testdata/interpolate-local/main.tf b/terraform/testdata/interpolate-local/main.tf deleted file mode 100644 index 699667a14..000000000 --- a/terraform/testdata/interpolate-local/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -locals { - foo = "..." -} diff --git a/terraform/testdata/interpolate-multi-interp/main.tf b/terraform/testdata/interpolate-multi-interp/main.tf deleted file mode 100644 index 1d475e2ee..000000000 --- a/terraform/testdata/interpolate-multi-interp/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "web" { - count = "${var.c}" -} diff --git a/terraform/testdata/interpolate-multi-vars/main.tf b/terraform/testdata/interpolate-multi-vars/main.tf deleted file mode 100644 index b24d02f98..000000000 --- a/terraform/testdata/interpolate-multi-vars/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_route53_zone" "yada" { - -} - -resource "aws_route53_zone" "terra" { - count = 2 -} diff --git a/terraform/testdata/interpolate-path-module/child/main.tf b/terraform/testdata/interpolate-path-module/child/main.tf deleted file mode 100644 index e69de29bb..000000000 diff --git a/terraform/testdata/interpolate-path-module/main.tf b/terraform/testdata/interpolate-path-module/main.tf deleted file mode 100644 index 0f6991c53..000000000 --- a/terraform/testdata/interpolate-path-module/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -module "child" { - source = "./child" -} diff --git a/terraform/testdata/interpolate-resource-variable-multi/main.tf b/terraform/testdata/interpolate-resource-variable-multi/main.tf deleted file mode 100644 index b00b04eff..000000000 --- a/terraform/testdata/interpolate-resource-variable-multi/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "web" { - count = 3 -} diff --git a/terraform/testdata/interpolate-resource-variable/main.tf b/terraform/testdata/interpolate-resource-variable/main.tf deleted file mode 100644 index 64cbf6236..000000000 --- a/terraform/testdata/interpolate-resource-variable/main.tf +++ /dev/null @@ -1 +0,0 @@ -resource "aws_instance" "web" {} diff --git a/terraform/testdata/module-deps-explicit-provider-resource/main.tf b/terraform/testdata/module-deps-explicit-provider-resource/main.tf deleted file mode 100644 index d5990b09c..000000000 --- a/terraform/testdata/module-deps-explicit-provider-resource/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -provider "foo" { - version = ">=1.0.0" -} - -resource "foo_bar" "test1" { - -} diff --git a/terraform/testdata/module-deps-explicit-provider-unconstrained/main.tf b/terraform/testdata/module-deps-explicit-provider-unconstrained/main.tf deleted file mode 100644 index 6144ff539..000000000 --- a/terraform/testdata/module-deps-explicit-provider-unconstrained/main.tf +++ /dev/null @@ -1,2 +0,0 @@ -provider "foo" { -} diff --git a/terraform/testdata/module-deps-explicit-provider/main.tf b/terraform/testdata/module-deps-explicit-provider/main.tf deleted file mode 100644 index 27d423759..000000000 --- a/terraform/testdata/module-deps-explicit-provider/main.tf +++ /dev/null @@ -1,8 +0,0 @@ -provider "foo" { - version = ">=1.0.0" -} - -provider "foo" { - version = ">=2.0.0" - alias = "bar" -} diff --git a/terraform/testdata/module-deps-implicit-provider/main.tf b/terraform/testdata/module-deps-implicit-provider/main.tf deleted file mode 100644 index 15aa2cb72..000000000 --- a/terraform/testdata/module-deps-implicit-provider/main.tf +++ /dev/null @@ -1,8 +0,0 @@ - -resource "foo_bar" "test1" { - -} - -resource "foo_bar" "test2" { - provider = "foo.baz" -} diff --git a/terraform/testdata/module-deps-inherit-provider/child/child.tf b/terraform/testdata/module-deps-inherit-provider/child/child.tf deleted file mode 100644 index 51e0950a0..000000000 --- a/terraform/testdata/module-deps-inherit-provider/child/child.tf +++ /dev/null @@ -1,17 +0,0 @@ - -# "foo" is inherited from the parent module -resource "foo_bar" "test" { - -} - -# but we don't use the "bar" provider inherited from the parent - -# "baz" is introduced here for the first time, so it's an implicit -# dependency -resource "baz_bar" "test" { - -} - -module "grandchild" { - source = "../grandchild" -} diff --git a/terraform/testdata/module-deps-inherit-provider/grandchild/grandchild.tf b/terraform/testdata/module-deps-inherit-provider/grandchild/grandchild.tf deleted file mode 100644 index c5a07249f..000000000 --- a/terraform/testdata/module-deps-inherit-provider/grandchild/grandchild.tf +++ /dev/null @@ -1,11 +0,0 @@ - -# Here we *override* the foo from the parent -provider "foo" { - -} - -# We also use the "bar" provider defined at the root, which was -# completely ignored by the child module in between. -resource "bar_thing" "test" { - -} diff --git a/terraform/testdata/module-deps-inherit-provider/main.tf b/terraform/testdata/module-deps-inherit-provider/main.tf deleted file mode 100644 index 9842855b9..000000000 --- a/terraform/testdata/module-deps-inherit-provider/main.tf +++ /dev/null @@ -1,11 +0,0 @@ - -provider "foo" { -} - -provider "bar" { - -} - -module "child" { - source = "./child" -} diff --git a/terraform/testdata/module-deps-required-providers/main.tf b/terraform/testdata/module-deps-required-providers/main.tf deleted file mode 100644 index e39cc897b..000000000 --- a/terraform/testdata/module-deps-required-providers/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -terraform { - required_providers { - foo = { - version = ">=1.0.0" - } - } -} diff --git a/terraform/testdata/new-good/main.tf b/terraform/testdata/new-good/main.tf deleted file mode 100644 index 40ed1a89c..000000000 --- a/terraform/testdata/new-good/main.tf +++ /dev/null @@ -1,6 +0,0 @@ -provider "aws" { - foo = "bar" -} - -resource "aws_instance" "foo" {} -resource "do_droplet" "bar" {} diff --git a/terraform/testdata/new-graph-cycle/main.tf b/terraform/testdata/new-graph-cycle/main.tf deleted file mode 100644 index b4285424f..000000000 --- a/terraform/testdata/new-graph-cycle/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_instance" "foo" { - ami = "${aws_instance.bar.id}" -} - -resource "aws_instance" "bar" { - ami = "${aws_instance.foo.id}" -} diff --git a/terraform/testdata/new-pc-cache/main.tf b/terraform/testdata/new-pc-cache/main.tf deleted file mode 100644 index 617fd43bf..000000000 --- a/terraform/testdata/new-pc-cache/main.tf +++ /dev/null @@ -1,12 +0,0 @@ -provider "aws" { - foo = "bar" -} - -provider "aws_elb" { - foo = "baz" -} - -resource "aws_instance" "foo" {} -resource "aws_instance" "bar" {} -resource "aws_elb" "lb" {} -resource "do_droplet" "bar" {} diff --git a/terraform/testdata/new-provider-validate/main.tf b/terraform/testdata/new-provider-validate/main.tf deleted file mode 100644 index 9ba300bad..000000000 --- a/terraform/testdata/new-provider-validate/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -provider "aws" { - foo = "bar" -} - -resource "aws_instance" "foo" {} diff --git a/terraform/testdata/new-variables/main.tf b/terraform/testdata/new-variables/main.tf deleted file mode 100644 index 8a42d5cda..000000000 --- a/terraform/testdata/new-variables/main.tf +++ /dev/null @@ -1,4 +0,0 @@ -variable "foo" {} -variable "bar" { - default = "baz" -} diff --git a/terraform/testdata/plan-data-source-type-mismatch/main.tf b/terraform/testdata/plan-data-source-type-mismatch/main.tf deleted file mode 100644 index d0782f261..000000000 --- a/terraform/testdata/plan-data-source-type-mismatch/main.tf +++ /dev/null @@ -1,4 +0,0 @@ -data "aws_availability_zones" "azs" {} -resource "aws_instance" "foo" { - ami = "${data.aws_availability_zones.azs.names}" -} diff --git a/terraform/testdata/plan-provider-init/main.tf b/terraform/testdata/plan-provider-init/main.tf deleted file mode 100644 index ca800ad7b..000000000 --- a/terraform/testdata/plan-provider-init/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -provider "do" { - foo = "${aws_instance.foo.num}" -} - -resource "aws_instance" "foo" { - num = "2" -} - -resource "do_droplet" "bar" {} diff --git a/terraform/testdata/plan-targeted-with-tainted/main.tf b/terraform/testdata/plan-targeted-with-tainted/main.tf deleted file mode 100644 index f17e08094..000000000 --- a/terraform/testdata/plan-targeted-with-tainted/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_instance" "ifailedprovisioners" { -} - -resource "aws_instance" "iambeingadded" { -} diff --git a/terraform/testdata/refresh-config-orphan/main.tf b/terraform/testdata/refresh-config-orphan/main.tf deleted file mode 100644 index c1c8b23da..000000000 --- a/terraform/testdata/refresh-config-orphan/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "test_object" "foo" { - count = 3 -} diff --git a/terraform/testdata/refresh-data-scale-inout/main.tf b/terraform/testdata/refresh-data-scale-inout/main.tf deleted file mode 100644 index 480ba9483..000000000 --- a/terraform/testdata/refresh-data-scale-inout/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "aws_instance" "foo" { - count = 3 -} diff --git a/terraform/testdata/refresh-resource-scale-inout/main.tf b/terraform/testdata/refresh-resource-scale-inout/main.tf deleted file mode 100644 index acef373b3..000000000 --- a/terraform/testdata/refresh-resource-scale-inout/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "foo" { - count = 3 -} diff --git a/terraform/testdata/state-module-orphans/bar/main.tf b/terraform/testdata/state-module-orphans/bar/main.tf deleted file mode 100644 index c01ade299..000000000 --- a/terraform/testdata/state-module-orphans/bar/main.tf +++ /dev/null @@ -1 +0,0 @@ -# Nothing diff --git a/terraform/testdata/state-module-orphans/main.tf b/terraform/testdata/state-module-orphans/main.tf deleted file mode 100644 index f009f1924..000000000 --- a/terraform/testdata/state-module-orphans/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -module "bar" { - source = "./bar" -} diff --git a/terraform/testdata/state-upgrade/v1-to-v2-empty-path.tfstate b/terraform/testdata/state-upgrade/v1-to-v2-empty-path.tfstate deleted file mode 100644 index ee7c9d187..000000000 --- a/terraform/testdata/state-upgrade/v1-to-v2-empty-path.tfstate +++ /dev/null @@ -1,38 +0,0 @@ -{ - "version": 1, - "modules": [{ - "resources": { - "aws_instance.foo1": {"primary":{}}, - "cloudstack_instance.foo1": {"primary":{}}, - "cloudstack_instance.foo2": {"primary":{}}, - "digitalocean_droplet.foo1": {"primary":{}}, - "digitalocean_droplet.foo2": {"primary":{}}, - "digitalocean_droplet.foo3": {"primary":{}}, - "docker_container.foo1": {"primary":{}}, - "docker_container.foo2": {"primary":{}}, - "docker_container.foo3": {"primary":{}}, - "docker_container.foo4": {"primary":{}}, - "google_compute_instance.foo1": {"primary":{}}, - "google_compute_instance.foo2": {"primary":{}}, - "google_compute_instance.foo3": {"primary":{}}, - "google_compute_instance.foo4": {"primary":{}}, - "google_compute_instance.foo5": {"primary":{}}, - "heroku_app.foo1": {"primary":{}}, - "heroku_app.foo2": {"primary":{}}, - "heroku_app.foo3": {"primary":{}}, - "heroku_app.foo4": {"primary":{}}, - "heroku_app.foo5": {"primary":{}}, - "heroku_app.foo6": {"primary":{}}, - "openstack_compute_instance_v2.foo1": {"primary":{}}, - "openstack_compute_instance_v2.foo2": {"primary":{}}, - "openstack_compute_instance_v2.foo3": {"primary":{}}, - "openstack_compute_instance_v2.foo4": {"primary":{}}, - "openstack_compute_instance_v2.foo5": {"primary":{}}, - "openstack_compute_instance_v2.foo6": {"primary":{}}, - "openstack_compute_instance_v2.foo7": {"primary":{}}, - "bar": {"primary":{}}, - "baz": {"primary":{}}, - "zip": {"primary":{}} - } - }] -} diff --git a/terraform/testdata/transform-create-before-destroy-basic/main.tf b/terraform/testdata/transform-create-before-destroy-basic/main.tf deleted file mode 100644 index 478c911c0..000000000 --- a/terraform/testdata/transform-create-before-destroy-basic/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -resource "aws_instance" "web" { - lifecycle { - create_before_destroy = true - } -} - -resource "aws_load_balancer" "lb" { - member = "${aws_instance.web.id}" -} diff --git a/terraform/testdata/transform-create-before-destroy-twice/main.tf b/terraform/testdata/transform-create-before-destroy-twice/main.tf deleted file mode 100644 index c84a7a678..000000000 --- a/terraform/testdata/transform-create-before-destroy-twice/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -resource "aws_lc" "foo" { - lifecycle { create_before_destroy = true } -} - -resource "aws_autoscale" "bar" { - lc = "${aws_lc.foo.id}" - - lifecycle { create_before_destroy = true } -} diff --git a/terraform/testdata/transform-destroy-basic/main.tf b/terraform/testdata/transform-destroy-basic/main.tf deleted file mode 100644 index 14bca3e82..000000000 --- a/terraform/testdata/transform-destroy-basic/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_instance" "foo" {} - -resource "aws_instance" "bar" { - value = "${aws_instance.foo.value}" -} diff --git a/terraform/testdata/transform-destroy-depends-on/main.tf b/terraform/testdata/transform-destroy-depends-on/main.tf deleted file mode 100644 index bb81ab869..000000000 --- a/terraform/testdata/transform-destroy-depends-on/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_instance" "foo" {} - -resource "aws_instance" "bar" { - depends_on = ["aws_instance.foo"] -} diff --git a/terraform/testdata/transform-destroy-deps/main.tf b/terraform/testdata/transform-destroy-deps/main.tf deleted file mode 100644 index 1419d893c..000000000 --- a/terraform/testdata/transform-destroy-deps/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -resource "aws_lc" "foo" {} - -resource "aws_asg" "bar" { - lc = "${aws_lc.foo.id}" -} diff --git a/terraform/testdata/transform-destroy-edge-splat/main.tf b/terraform/testdata/transform-destroy-edge-splat/main.tf deleted file mode 100644 index 88d8b840b..000000000 --- a/terraform/testdata/transform-destroy-edge-splat/main.tf +++ /dev/null @@ -1,6 +0,0 @@ -resource "test_object" "A" {} - -resource "test_object" "B" { - count = 2 - test_string = "${test_object.A.*.test_string}" -} diff --git a/terraform/testdata/transform-destroy-prefix/main.tf b/terraform/testdata/transform-destroy-prefix/main.tf deleted file mode 100644 index dd85754d4..000000000 --- a/terraform/testdata/transform-destroy-prefix/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "foo" {} - -resource "aws_instance" "foo-bar" {} diff --git a/terraform/testdata/transform-destroy-prune-count/main.tf b/terraform/testdata/transform-destroy-prune-count/main.tf deleted file mode 100644 index 756ae10d5..000000000 --- a/terraform/testdata/transform-destroy-prune-count/main.tf +++ /dev/null @@ -1,6 +0,0 @@ -resource "aws_instance" "foo" {} - -resource "aws_instance" "bar" { - value = "${aws_instance.foo.value}" - count = "5" -} diff --git a/terraform/testdata/transform-diff-basic/main.tf b/terraform/testdata/transform-diff-basic/main.tf deleted file mode 100644 index 919f140bb..000000000 --- a/terraform/testdata/transform-diff-basic/main.tf +++ /dev/null @@ -1 +0,0 @@ -resource "aws_instance" "foo" {} diff --git a/terraform/testdata/transform-flat-config-basic/child/main.tf b/terraform/testdata/transform-flat-config-basic/child/main.tf deleted file mode 100644 index 0c70b1b5d..000000000 --- a/terraform/testdata/transform-flat-config-basic/child/main.tf +++ /dev/null @@ -1 +0,0 @@ -resource "aws_instance" "baz" {} diff --git a/terraform/testdata/transform-flat-config-basic/main.tf b/terraform/testdata/transform-flat-config-basic/main.tf deleted file mode 100644 index ffe0916f3..000000000 --- a/terraform/testdata/transform-flat-config-basic/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -resource "aws_instance" "foo" {} - -resource "aws_instance" "bar" { - value = "${aws_instance.foo.value}" -} - -module "child" { - source = "./child" -} diff --git a/terraform/testdata/transform-flatten/child/main.tf b/terraform/testdata/transform-flatten/child/main.tf deleted file mode 100644 index 7371f826d..000000000 --- a/terraform/testdata/transform-flatten/child/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -variable "var" {} - -resource "aws_instance" "child" { - value = "${var.var}" -} - -output "output" { - value = "${aws_instance.child.value}" -} diff --git a/terraform/testdata/transform-flatten/main.tf b/terraform/testdata/transform-flatten/main.tf deleted file mode 100644 index 179e151a3..000000000 --- a/terraform/testdata/transform-flatten/main.tf +++ /dev/null @@ -1,12 +0,0 @@ -module "child" { - source = "./child" - var = "${aws_instance.parent.value}" -} - -resource "aws_instance" "parent" { - value = "foo" -} - -resource "aws_instance" "parent-output" { - value = "${module.child.output}" -} diff --git a/terraform/testdata/transform-orphan-output-basic/main.tf b/terraform/testdata/transform-orphan-output-basic/main.tf deleted file mode 100644 index 70619c4e3..000000000 --- a/terraform/testdata/transform-orphan-output-basic/main.tf +++ /dev/null @@ -1 +0,0 @@ -output "foo" { value = "bar" } diff --git a/terraform/testdata/transform-provider-disable-keep/child/main.tf b/terraform/testdata/transform-provider-disable-keep/child/main.tf deleted file mode 100644 index 9d02c162c..000000000 --- a/terraform/testdata/transform-provider-disable-keep/child/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -variable "value" {} - -provider "aws" { - value = "${var.value}" -} - -resource "aws_instance" "foo" {} diff --git a/terraform/testdata/transform-provider-disable-keep/main.tf b/terraform/testdata/transform-provider-disable-keep/main.tf deleted file mode 100644 index 7f9aa3f9f..000000000 --- a/terraform/testdata/transform-provider-disable-keep/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -variable "foo" {} - -module "child" { - source = "./child" - - value = "${var.foo}" -} - -resource "aws_instance" "foo" {} diff --git a/terraform/testdata/transform-provider-disable/child/main.tf b/terraform/testdata/transform-provider-disable/child/main.tf deleted file mode 100644 index 9d02c162c..000000000 --- a/terraform/testdata/transform-provider-disable/child/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -variable "value" {} - -provider "aws" { - value = "${var.value}" -} - -resource "aws_instance" "foo" {} diff --git a/terraform/testdata/transform-provider-disable/main.tf b/terraform/testdata/transform-provider-disable/main.tf deleted file mode 100644 index a405f9895..000000000 --- a/terraform/testdata/transform-provider-disable/main.tf +++ /dev/null @@ -1,7 +0,0 @@ -variable "foo" {} - -module "child" { - source = "./child" - - value = "${var.foo}" -} diff --git a/terraform/testdata/transform-provisioner-prune/main.tf b/terraform/testdata/transform-provisioner-prune/main.tf deleted file mode 100644 index c78a6ecac..000000000 --- a/terraform/testdata/transform-provisioner-prune/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "web" { - provisioner "foo" {} -} diff --git a/terraform/testdata/transform-resource-count-basic/main.tf b/terraform/testdata/transform-resource-count-basic/main.tf deleted file mode 100644 index 782a9142e..000000000 --- a/terraform/testdata/transform-resource-count-basic/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "foo" { - count = 3 -} diff --git a/terraform/testdata/transform-resource-count-deps/main.tf b/terraform/testdata/transform-resource-count-deps/main.tf deleted file mode 100644 index c6a683e6e..000000000 --- a/terraform/testdata/transform-resource-count-deps/main.tf +++ /dev/null @@ -1,8 +0,0 @@ -resource "aws_instance" "foo" { - count = 2 - - provisioner "local-exec" { - command = "echo ${aws_instance.foo.0.id}" - other = "echo ${aws_instance.foo.id}" - } -} diff --git a/terraform/testdata/transform-resource-count-negative/main.tf b/terraform/testdata/transform-resource-count-negative/main.tf deleted file mode 100644 index 267e20086..000000000 --- a/terraform/testdata/transform-resource-count-negative/main.tf +++ /dev/null @@ -1,4 +0,0 @@ -resource "aws_instance" "foo" { - count = -5 - value = "${aws_instance.foo.0.value}" -} diff --git a/terraform/testdata/transform-tainted-basic/main.tf b/terraform/testdata/transform-tainted-basic/main.tf deleted file mode 100644 index 64cbf6236..000000000 --- a/terraform/testdata/transform-tainted-basic/main.tf +++ /dev/null @@ -1 +0,0 @@ -resource "aws_instance" "web" {} diff --git a/terraform/testdata/transform-targets-destroy/main.tf b/terraform/testdata/transform-targets-destroy/main.tf deleted file mode 100644 index 5c1c285e5..000000000 --- a/terraform/testdata/transform-targets-destroy/main.tf +++ /dev/null @@ -1,26 +0,0 @@ -resource "aws_vpc" "notme" {} - -resource "aws_subnet" "notme" { - depends_on = [ - aws_vpc.notme, - ] -} - -resource "aws_instance" "me" { - depends_on = [ - aws_subnet.notme, - ] -} - -resource "aws_instance" "notme" {} -resource "aws_instance" "metoo" { - depends_on = [ - aws_instance.me, - ] -} - -resource "aws_elb" "me" { - depends_on = [ - aws_instance.me, - ] -} diff --git a/terraform/testdata/uservars-map/main.tf b/terraform/testdata/uservars-map/main.tf deleted file mode 100644 index ebe106343..000000000 --- a/terraform/testdata/uservars-map/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -variable "test_map" { - type = "map" -} diff --git a/terraform/testdata/validate-cycle/main.tf b/terraform/testdata/validate-cycle/main.tf deleted file mode 100644 index 3dc503aa7..000000000 --- a/terraform/testdata/validate-cycle/main.tf +++ /dev/null @@ -1,19 +0,0 @@ -provider "aws" { } - -/* - * When a CBD resource depends on a non-CBD resource, - * a cycle is formed that only shows up when Destroy - * nodes are included in the graph. - */ -resource "aws_security_group" "firewall" { -} - -resource "aws_instance" "web" { - security_groups = [ - "foo", - "${aws_security_group.firewall.foo}" - ] - lifecycle { - create_before_destroy = true - } -} diff --git a/terraform/testdata/validate-module-pc-inherit-orphan/main.tf b/terraform/testdata/validate-module-pc-inherit-orphan/main.tf deleted file mode 100644 index a5c34f64d..000000000 --- a/terraform/testdata/validate-module-pc-inherit-orphan/main.tf +++ /dev/null @@ -1,9 +0,0 @@ -variable "foo" { - default = "bar" -} - -provider "aws" { - set = "${var.foo}" -} - -resource "aws_instance" "foo" {} diff --git a/terraform/testdata/validate-resource-name-symbol/main.tf b/terraform/testdata/validate-resource-name-symbol/main.tf deleted file mode 100644 index e89401f7c..000000000 --- a/terraform/testdata/validate-resource-name-symbol/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "aws_instance" "foo bar" { - num = "2" -} diff --git a/terraform/testdata/validate-var-map-override-old/main.tf b/terraform/testdata/validate-var-map-override-old/main.tf deleted file mode 100644 index 7fe646c8b..000000000 --- a/terraform/testdata/validate-var-map-override-old/main.tf +++ /dev/null @@ -1 +0,0 @@ -variable "foo" { default = { foo = "bar" } }