Skip to content

Commit bd32f43

Browse files
committed
Fix identity tag test
1 parent 8c7ec85 commit bd32f43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oci/identity_tag_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,17 @@ func TestIdentityTagResource_basic(t *testing.T) {
168168
Config: config +
169169
generateDataSourceFromRepresentationMap("oci_identity_tags", "test_tags", Optional, Update, tagDataSourceRepresentation) +
170170
compartmentIdVariableStr + TagResourceDependencies +
171-
generateResourceFromRepresentationMap("oci_identity_tag", "test_tag", Optional, Update, tagRepresentation),
171+
generateResourceFromRepresentationMap("oci_identity_tag", "test_tag", Optional, Create, representationCopyWithRemovedProperties(tagRepresentation, []string{"validator"})),
172172
Check: resource.ComposeAggregateTestCheckFunc(
173173
resource.TestCheckResourceAttr(datasourceName, "state", "AVAILABLE"),
174174
resource.TestCheckResourceAttrSet(datasourceName, "tag_namespace_id"),
175175

176176
resource.TestCheckResourceAttr(datasourceName, "tags.#", "1"),
177177
resource.TestCheckResourceAttr(datasourceName, "tags.0.defined_tags.%", "1"),
178-
resource.TestCheckResourceAttr(datasourceName, "tags.0.description", "description2"),
178+
resource.TestCheckResourceAttr(datasourceName, "tags.0.description", "This tag will show the cost center that will be used for billing of associated resources."),
179179
resource.TestCheckResourceAttr(datasourceName, "tags.0.freeform_tags.%", "1"),
180180
resource.TestCheckResourceAttrSet(datasourceName, "tags.0.id"),
181-
resource.TestCheckResourceAttr(datasourceName, "tags.0.is_cost_tracking", "true"),
181+
resource.TestCheckResourceAttr(datasourceName, "tags.0.is_cost_tracking", "false"),
182182
resource.TestCheckResourceAttr(datasourceName, "tags.0.is_retired", "false"),
183183
resource.TestCheckResourceAttr(datasourceName, "tags.0.name", "TFTestTag"),
184184
resource.TestCheckResourceAttrSet(datasourceName, "tags.0.state"),

0 commit comments

Comments
 (0)