Skip to content

Commit

Permalink
fix incorrect mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Mar 7, 2025
1 parent 672f061 commit eb2a7c3
Showing 1 changed file with 69 additions and 63 deletions.
132 changes: 69 additions & 63 deletions policy/checkov/AKSNetworkPolicy.azapi.mock.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,75 @@
{
"mock" : {
"default": {
"resource_changes": [{
"address": "azurerm_kubernetes_cluster.example",
"mode": "managed",
"type": "azapi_resource",
"change": {
"actions": [
"create"
],
"after": {
"type": "Microsoft.ContainerService/managedClusters@2024-05-01",
"body": {
"properties": {
"networkProfile": {
"networkPolicy": "calico"
}
}
}
}
"mock": {
"default": {
"resource_changes": [
{
"address": "azurerm_kubernetes_cluster.example",
"mode": "managed",
"type": "azapi_resource",
"change": {
"actions": [
"create"
],
"after": {
"type": "Microsoft.ContainerService/managedClusters@2024-05-01",
"body": {
"properties": {
"networkProfile": {
"networkPolicy": "calico"
}
}
}]
},
"known_after_apply": {
"resource_changes": [{
"address": "azurerm_kubernetes_cluster.example",
"mode": "managed",
"type": "azapi_resource",
"change": {
"actions": [
"create"
],
"after": {
"type": "Microsoft.ContainerService/managedClusters@2024-05-01"
},
"after_unknown": {
"body": {
"properties": {
"networkProfile": {
"networkPolicy": true
}
}
}
}
}
}
}
}
]
},
"known_after_apply": {
"resource_changes": [
{
"address": "azurerm_kubernetes_cluster.example",
"mode": "managed",
"type": "azapi_resource",
"change": {
"actions": [
"create"
],
"after": {
"type": "Microsoft.ContainerService/managedClusters@2024-05-01"
},
"after_unknown": {
"body": {
"properties": {
"networkProfile": {
"networkPolicy": true
}
}
}]
},
"invalid_omitted": {
"resource_changes": [{
"address": "azurerm_kubernetes_cluster.example",
"mode": "managed",
"type": "azapi_resource",
"change": {
"actions": [
"create"
],
"after": {
"type": "Microsoft.ContainerService/managedClusters@2024-05-01",
"body": {
"properties": {
}
}
}
}
}
}
}
]
},
"invalid_omitted": {
"resource_changes": [
{
"address": "azurerm_kubernetes_cluster.example",
"mode": "managed",
"type": "azapi_resource",
"change": {
"actions": [
"create"
],
"after": {
"type": "Microsoft.ContainerService/managedClusters@2024-05-01",
"body": {
"properties": {
}
}]
},
}
}
}
}
]
}
}
}

0 comments on commit eb2a7c3

Please sign in to comment.