From ca41798ac35ff9ba5a53752cef69a481d73a776f Mon Sep 17 00:00:00 2001 From: Vikrant Balyan Date: Sat, 3 Aug 2024 08:46:04 +0530 Subject: [PATCH] Adds ClassId to the tests (#277) * adds required property * adds required property * adds ClassId as additional property * adds ClassId as additional property --- tests/common/kubernetes_cluster_addon_profile.tf | 2 ++ tests/iks/iks.tf | 2 ++ tests/only_post/main.tf | 12 +++++++----- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/common/kubernetes_cluster_addon_profile.tf b/tests/common/kubernetes_cluster_addon_profile.tf index d71d939502..d7135a2ae6 100644 --- a/tests/common/kubernetes_cluster_addon_profile.tf +++ b/tests/common/kubernetes_cluster_addon_profile.tf @@ -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 } } diff --git a/tests/iks/iks.tf b/tests/iks/iks.tf index e6c1a1e981..e854675f29 100644 --- a/tests/iks/iks.tf +++ b/tests/iks/iks.tf @@ -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 } } diff --git a/tests/only_post/main.tf b/tests/only_post/main.tf index 66b304b5f0..b79ccc2559 100644 --- a/tests/only_post/main.tf +++ b/tests/only_post/main.tf @@ -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 = [] } }