File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -1523,6 +1523,32 @@ func TestWorkspaceTagsTerraform(t *testing.T) {
1523
1523
}
1524
1524
}` ,
1525
1525
},
1526
+ {
1527
+ name : "override no tags" ,
1528
+ provisionerTags : map [string ]string {"foo" : "baz" },
1529
+ createTemplateVersionRequestTags : map [string ]string {"foo" : "baz" },
1530
+ tfWorkspaceTags : `` ,
1531
+ },
1532
+ {
1533
+ name : "override empty tags" ,
1534
+ provisionerTags : map [string ]string {"foo" : "baz" },
1535
+ createTemplateVersionRequestTags : map [string ]string {"foo" : "baz" },
1536
+ tfWorkspaceTags : `
1537
+ data "coder_workspace_tags" "tags" {
1538
+ tags = {}
1539
+ }` ,
1540
+ },
1541
+ {
1542
+ name : "does not override static tag" ,
1543
+ provisionerTags : map [string ]string {"foo" : "bar" },
1544
+ createTemplateVersionRequestTags : map [string ]string {"foo" : "baz" },
1545
+ tfWorkspaceTags : `
1546
+ data "coder_workspace_tags" "tags" {
1547
+ tags = {
1548
+ "foo" = "bar"
1549
+ }
1550
+ }` ,
1551
+ },
1526
1552
} {
1527
1553
tc := tc
1528
1554
t .Run (tc .name , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments