Skip to content

Commit 3b65a4b

Browse files
committed
Update tests for tag number
1 parent 505f74f commit 3b65a4b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.web-docs/components/builder/dtl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ options. In addition to the options listed here, a [communicator](/packer/docs/t
127127
type for a managed image. Valid values are Standard_LRS and Premium_LRS.
128128
The default is Standard_LRS.
129129

130-
- `azure_tags` (map[string]string) - the user can define up to 50
130+
- `azure_tags` (map[string]string) - the user can define up to 15
131131
tags. Tag names cannot exceed 512 characters, and tag values cannot exceed
132132
256 characters. Tags are applied to every resource deployed by a Packer
133133
build, i.e. Resource Group, VM, NIC, VNET, Public IP, KeyVault, etc.

builder/azure/arm/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,9 @@ func TestConfigShouldAcceptTag(t *testing.T) {
931931
}
932932
}
933933

934-
func TestConfigShouldRejectTagsInExcessOf15AcceptTags(t *testing.T) {
934+
func TestConfigShouldRejectTagsInExcessOf50AcceptTags(t *testing.T) {
935935
tooManyTags := map[string]string{}
936-
for i := 0; i < 16; i++ {
936+
for i := 0; i < 51; i++ {
937937
tooManyTags[fmt.Sprintf("tag%.2d", i)] = "ignored"
938938
}
939939

builder/azure/dtl/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ func TestConfigShouldAcceptTags(t *testing.T) {
276276
}
277277
}
278278

279-
func TestConfigShouldRejectTagsInExcessOf15AcceptTags(t *testing.T) {
279+
func TestConfigShouldRejectTagsInExcessOf50AcceptTags(t *testing.T) {
280280
tooManyTags := map[string]string{}
281-
for i := 0; i < 16; i++ {
281+
for i := 0; i < 51; i++ {
282282
tooManyTags[fmt.Sprintf("tag%.2d", i)] = "ignored"
283283
}
284284

0 commit comments

Comments
 (0)