-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setting tag remove fix * multiple tag tests
- Loading branch information
1 parent
7417348
commit 7abfc0a
Showing
6 changed files
with
166 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
internal/configcat/testdata/TestAccSettingTagMultipleResource/init.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
variable "product_id" { | ||
type = string | ||
} | ||
|
||
variable "config_id" { | ||
type = string | ||
} | ||
|
||
resource "configcat_setting" "testSetting" { | ||
config_id = var.config_id | ||
key = "testkeywithtag" | ||
name = "test" | ||
order = 0 | ||
} | ||
|
||
resource "configcat_tag" "testTag1" { | ||
product_id = var.product_id | ||
name = "tag1" | ||
} | ||
|
||
resource "configcat_tag" "testTag2" { | ||
product_id = var.product_id | ||
name = "tag2" | ||
} | ||
|
||
resource "configcat_tag" "testTag3" { | ||
product_id = var.product_id | ||
name = "tag3" | ||
} | ||
|
||
resource "configcat_setting_tag" "settingTag1" { | ||
setting_id = configcat_setting.testSetting.id | ||
tag_id = configcat_tag.testTag1.id | ||
} | ||
|
||
resource "configcat_setting_tag" "settingTag2" { | ||
setting_id = configcat_setting.testSetting.id | ||
tag_id = configcat_tag.testTag2.id | ||
} | ||
|
||
resource "configcat_setting_tag" "settingTag3" { | ||
setting_id = configcat_setting.testSetting.id | ||
tag_id = configcat_tag.testTag3.id | ||
} | ||
|
Empty file.
40 changes: 40 additions & 0 deletions
40
internal/configcat/testdata/TestAccSettingTagMultipleResource/removeonetag.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
variable "product_id" { | ||
type = string | ||
} | ||
|
||
variable "config_id" { | ||
type = string | ||
} | ||
|
||
resource "configcat_setting" "testSetting" { | ||
config_id = var.config_id | ||
key = "testkeywithtag" | ||
name = "test" | ||
order = 0 | ||
} | ||
|
||
resource "configcat_tag" "testTag1" { | ||
product_id = var.product_id | ||
name = "tag1" | ||
} | ||
|
||
resource "configcat_tag" "testTag2" { | ||
product_id = var.product_id | ||
name = "tag2" | ||
} | ||
|
||
resource "configcat_tag" "testTag3" { | ||
product_id = var.product_id | ||
name = "tag3" | ||
} | ||
|
||
resource "configcat_setting_tag" "settingTag1" { | ||
setting_id = configcat_setting.testSetting.id | ||
tag_id = configcat_tag.testTag1.id | ||
} | ||
|
||
resource "configcat_setting_tag" "settingTag3" { | ||
setting_id = configcat_setting.testSetting.id | ||
tag_id = configcat_tag.testTag3.id | ||
} | ||
|
Empty file.