Skip to content

Commit 28cccf8

Browse files
committed
update test
1 parent 0aa240c commit 28cccf8

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

test/tests/azapi/expected/main.terratag.tf

+24
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,30 @@ resource "azapi_resource" "example" {
5252

5353
response_export_values = ["properties.loginServer", "properties.policies.quarantinePolicy.status"]
5454
}
55+
56+
resource "azapi_resource" "example2" {
57+
type = "Microsoft.ContainerRegistry/registries@2020-11-01-preview"
58+
name = "registry2"
59+
parent_id = azurerm_resource_group.example.id
60+
61+
location = azurerm_resource_group.example.location
62+
identity {
63+
type = "SystemAssigned, UserAssigned"
64+
identity_ids = [azurerm_user_assigned_identity.example.id]
65+
}
66+
67+
body = {
68+
sku = {
69+
name = "Standard"
70+
}
71+
properties = {
72+
adminUserEnabled = true
73+
}
74+
}
75+
76+
response_export_values = ["properties.loginServer", "properties.policies.quarantinePolicy.status"]
77+
tags = local.terratag_added_main
78+
}
5579

5680
locals {
5781
terratag_added_main = {"env0_environment_id"="40907eff-cf7c-419a-8694-e1c6bf1d1168","env0_project_id"="43fd4ff1-8d37-4d9d-ac97-295bd850bf94"}

test/tests/azapi/expected/main.tf.bak

+23
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,26 @@ resource "azapi_resource" "example" {
5050

5151
response_export_values = ["properties.loginServer", "properties.policies.quarantinePolicy.status"]
5252
}
53+
54+
resource "azapi_resource" "example2" {
55+
type = "Microsoft.ContainerRegistry/registries@2020-11-01-preview"
56+
name = "registry2"
57+
parent_id = azurerm_resource_group.example.id
58+
59+
location = azurerm_resource_group.example.location
60+
identity {
61+
type = "SystemAssigned, UserAssigned"
62+
identity_ids = [azurerm_user_assigned_identity.example.id]
63+
}
64+
65+
body = {
66+
sku = {
67+
name = "Standard"
68+
}
69+
properties = {
70+
adminUserEnabled = true
71+
}
72+
}
73+
74+
response_export_values = ["properties.loginServer", "properties.policies.quarantinePolicy.status"]
75+
}

test/tests/azapi/input/main.tf

+23
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,26 @@ resource "azapi_resource" "example" {
5050

5151
response_export_values = ["properties.loginServer", "properties.policies.quarantinePolicy.status"]
5252
}
53+
54+
resource "azapi_resource" "example2" {
55+
type = "Microsoft.ContainerRegistry/registries@2020-11-01-preview"
56+
name = "registry2"
57+
parent_id = azurerm_resource_group.example.id
58+
59+
location = azurerm_resource_group.example.location
60+
identity {
61+
type = "SystemAssigned, UserAssigned"
62+
identity_ids = [azurerm_user_assigned_identity.example.id]
63+
}
64+
65+
body = {
66+
sku = {
67+
name = "Standard"
68+
}
69+
properties = {
70+
adminUserEnabled = true
71+
}
72+
}
73+
74+
response_export_values = ["properties.loginServer", "properties.policies.quarantinePolicy.status"]
75+
}

0 commit comments

Comments
 (0)