Skip to content

Commit

Permalink
Adds ClassId to the tests (#277)
Browse files Browse the repository at this point in the history
* adds required property

* adds required property

* adds ClassId as additional property

* adds ClassId as additional property
  • Loading branch information
vvb authored Aug 3, 2024
1 parent d5de33d commit ca41798
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tests/common/kubernetes_cluster_addon_profile.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ resource "intersight_kubernetes_cluster_addon_profile" "iks1" {

addons {
addon_policy {
object_type = "kubernetes.AddonPolicy"
moid = intersight_kubernetes_addon_policy.kubernetes_addon_policy1.moid
}
}
addons {
addon_policy {
object_type = "kubernetes.AddonPolicy"
moid = intersight_kubernetes_addon_policy.kubernetes_addon_policy1.moid
}
}
Expand Down
2 changes: 2 additions & 0 deletions tests/iks/iks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ resource "intersight_kubernetes_cluster_addon_profile" "iks-terra-addons" {
name = "iks-terra-addons"
addons {
addon_policy {
object_type = "kubernetes.AddonPolicy"
moid = intersight_kubernetes_addon_policy.kap1.moid
}
}
addons {
addon_policy {
object_type = "kubernetes.AddonPolicy"
moid = intersight_kubernetes_addon_policy.kap2.moid
}
}
Expand Down
12 changes: 7 additions & 5 deletions tests/only_post/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,19 @@ resource "intersight_server_profile_template" "template1" {

resource "intersight_bulk_mo_cloner" "clone_server1"{
sources {
class_id = "server.ProfileTemplate"
object_type = "server.ProfileTemplate"
moid = intersight_server_profile_template.template1.moid
additional_properties = jsonencode({
ClassId = "server.ProfileTemplate"
})
}
targets {
class_id = "server.Profile"
object_type = "server.Profile"
additional_properties = jsonencode({
Name = "demotesting_DERIVED-4"
Description = "Sample description"
})
Name = "demotesting_DERIVED-4"
Description = "Sample description"
ClassId = "server.Profile"
})
tags = []
}
}
Expand Down

0 comments on commit ca41798

Please sign in to comment.