From f567041467b4ac5cde2e6d077079d4d7ec483be7 Mon Sep 17 00:00:00 2001 From: Isabelle Miller Date: Mon, 27 Feb 2023 14:45:38 +0100 Subject: [PATCH] Remove tests (#284) * remove tests * remove weird spacing * remove this test too --- examples/tst/.terraform.lock.hcl | 24 --------- examples/tst/flags.tf | 53 ------------------- examples/tst/project_with_multiple_envs.tf | 33 ------------ examples/tst/versions.tf | 9 ---- launchdarkly/resource_launchdarkly_project.go | 3 +- terraform_test/main.tf | 21 -------- 6 files changed, 1 insertion(+), 142 deletions(-) delete mode 100644 examples/tst/.terraform.lock.hcl delete mode 100644 examples/tst/flags.tf delete mode 100644 examples/tst/project_with_multiple_envs.tf delete mode 100644 examples/tst/versions.tf delete mode 100644 terraform_test/main.tf diff --git a/examples/tst/.terraform.lock.hcl b/examples/tst/.terraform.lock.hcl deleted file mode 100644 index 61168424..00000000 --- a/examples/tst/.terraform.lock.hcl +++ /dev/null @@ -1,24 +0,0 @@ -# This file is maintained automatically by "terraform init". -# Manual edits may be lost in future updates. - -provider "registry.terraform.io/launchdarkly/launchdarkly" { - version = "2.9.4" - constraints = ">= 2.9.4" - hashes = [ - "h1:wSKaluuVXPYuxA+Udczm0Jqf8R7JqeTb7EXX7F7tPF4=", - "zh:03889a0f97455bdf62db4e2f03bf1626aed8731acc43e30dfd832ea54bea75bd", - "zh:1702ea164e8a006a7c2f17142471ef4708c658cb269580f31b07f57640302858", - "zh:24095f6a1b28f5198199a7b3a2325d8e8cc34289cd8276c65c7734a9d757fa96", - "zh:43895866b3fe18d547930729743f3d223969d25a872ad2a49ef47353e61159cb", - "zh:44b640271b1e3fbf5b1b29f14ae13100593f45172f3e251e3bc12edf085a42c5", - "zh:4531e8d3c74b93eeb4ac613f28b4987584918d71febc88f876b18595a63cd6c0", - "zh:5437fa6f08b6b8018e1bf50c326042fca7252ab4dfa6a9c853ec305b04ad3dab", - "zh:609c5dfc61692a2ef2b1888f9ad0e5d1770c89c252f4e412bbfbb685566439ca", - "zh:6f98df18ce3c07e8abca3820713b14d01fc6fa672a7104ded0cd62040cb5c0c9", - "zh:8357334ce6cd6e9075e4f0c6fe31d3d68f1b8e77819daa66f2d2d34c8832af0f", - "zh:8861b9eae84963c0ef4daa985830c70952ec328c1b249d56d4121a548c763ce0", - "zh:8e65369666cd478d0f9b0a840761176306e722012570f6984abf0d09fcd618c7", - "zh:cbbaae049e85c9dbacf5db7975e0b443f818dc153e3efe7cd88d5ab53d6d6462", - "zh:cef1bdeef93ed344486be8ea81a98002bf412d91e2020342b68051f8c3fc48ed", - ] -} diff --git a/examples/tst/flags.tf b/examples/tst/flags.tf deleted file mode 100644 index 2a974658..00000000 --- a/examples/tst/flags.tf +++ /dev/null @@ -1,53 +0,0 @@ -# resource "launchdarkly_feature_flag" "boolean_flag" { -# project_key = "default" -# key = "a-customer-test-flag" -# name = "A customer test flag" -# description = "An example boolean feature flag that can be turned either on or off" -# variation_type = "boolean" - -# defaults { -# on_variation = 1 -# off_variation = 1 -# } - -# client_side_availability { -# using_environment_id = true -# } -# } - -# resource "launchdarkly_feature_flag" "completeTheLook" { -# project_key = launchdarkly_project.a_new_test_proj.key -# key = "completeTheLook" -# name = "Complete The Look" -# description = "Dunelm Web Complete The Look Flag" -# variation_type = "boolean" - -# variations { -# value = true -# } - -# variations { -# value = false -# } - -# tags = [ -# "terraform" -# ] - -# } - -# resource "launchdarkly_feature_flag_environment" "completeTheLook_dundev" { -# flag_id = launchdarkly_feature_flag.completeTheLook.id -# env_key = "production" -# off_variation = 0 -# on = true - -# fallthrough { -# variation = 0 -# } -# # lifecycle { -# # ignore_changes = [ -# # fallthrough -# # ] -# # } -# } diff --git a/examples/tst/project_with_multiple_envs.tf b/examples/tst/project_with_multiple_envs.tf deleted file mode 100644 index 2ba4ae6c..00000000 --- a/examples/tst/project_with_multiple_envs.tf +++ /dev/null @@ -1,33 +0,0 @@ -# resource "launchdarkly_project" "a_new_test_proj" { -# key = "a-new-test-proj" -# name = "A New Test Project" -# tags = ["customer-test"] - -# environments { -# key = "yet-another-environm" -# name = "Yet Another Environment" -# color = "121212" -# tags = [] -# } - -# environments { -# key = "another-environment" -# name = "Another Environment" -# color = "ABCABC" -# tags = [] -# } - -# environments { -# key = "test" -# name = "Test" -# color = "F5A623" -# tags = [] -# } - -# environments { -# key = "production" -# name = "Production" -# color = "417505" -# tags = [] -# } -# } diff --git a/examples/tst/versions.tf b/examples/tst/versions.tf deleted file mode 100644 index 4a023c06..00000000 --- a/examples/tst/versions.tf +++ /dev/null @@ -1,9 +0,0 @@ -terraform { - required_providers { - launchdarkly = { - source = "launchdarkly/launchdarkly" - version = ">= 2.9.4" - } - } - required_version = ">= 0.13" -} diff --git a/launchdarkly/resource_launchdarkly_project.go b/launchdarkly/resource_launchdarkly_project.go index 1bbd6d6f..3e2f7004 100644 --- a/launchdarkly/resource_launchdarkly_project.go +++ b/launchdarkly/resource_launchdarkly_project.go @@ -11,8 +11,7 @@ import ( ) // We assign a custom diff in cases where the customer has not assigned a default for CSA or IIS in config -// -// in order to respect the LD backend defaults and reflect that in our plans +// in order to respect the LD backend defaults and reflect that in our plans func customizeProjectDiff(ctx context.Context, diff *schema.ResourceDiff, v interface{}) error { config := diff.GetRawConfig() diff --git a/terraform_test/main.tf b/terraform_test/main.tf deleted file mode 100644 index 4acbc8b6..00000000 --- a/terraform_test/main.tf +++ /dev/null @@ -1,21 +0,0 @@ -terraform { - required_providers { - launchdarkly = { - version = "~> 2.6.1" - source = "launchdarkly/launchdarkly" - } - } -} - -provider "launchdarkly" { - access_token = "api-c72ff490-9db2-40a5-8e58-fe886df57776" - api_host = "https://app.launchdarkly.com" -} - -resource "launchdarkly_team" "terraform_test" { - key = "isabelle-test-team" - name = "Isabelle Test Team" - description = "testing out terraform" - custom_role_keys = ["approvals-only"] - member_ids = ["610180aa0755fa2648b36856", "61a6483d333d961037f43f09"] -}