From 9309635793e52c46894ed4aa1d5b29068cb7c025 Mon Sep 17 00:00:00 2001 From: danischm Date: Thu, 6 Jun 2024 16:52:29 -0700 Subject: [PATCH] Fix test pre requisites --- gen/definitions/pim_interface.yaml | 6 +++--- internal/provider/data_source_nxos_pim_interface_test.go | 6 +++--- internal/provider/resource_nxos_pim_interface_test.go | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gen/definitions/pim_interface.yaml b/gen/definitions/pim_interface.yaml index a8ff24e3..71cfc8af 100644 --- a/gen/definitions/pim_interface.yaml +++ b/gen/definitions/pim_interface.yaml @@ -77,13 +77,13 @@ test_prerequisites: value: enabled - dn: sys/pim class_name: pimEntity - dependencies: [0] + dependencies: [1] - dn: sys/pim/inst class_name: pimInst - dependencies: [1] + dependencies: [2] - dn: sys/pim/inst/dom-[default] class_name: pimDom attributes: - name: name value: default - dependencies: [2] + dependencies: [3] diff --git a/internal/provider/data_source_nxos_pim_interface_test.go b/internal/provider/data_source_nxos_pim_interface_test.go index a1f870a8..ee7c2b30 100644 --- a/internal/provider/data_source_nxos_pim_interface_test.go +++ b/internal/provider/data_source_nxos_pim_interface_test.go @@ -67,13 +67,13 @@ resource "nxos_rest" "PreReq1" { resource "nxos_rest" "PreReq2" { dn = "sys/pim" class_name = "pimEntity" - depends_on = [nxos_rest.PreReq0, ] + depends_on = [nxos_rest.PreReq1, ] } resource "nxos_rest" "PreReq3" { dn = "sys/pim/inst" class_name = "pimInst" - depends_on = [nxos_rest.PreReq1, ] + depends_on = [nxos_rest.PreReq2, ] } resource "nxos_rest" "PreReq4" { @@ -82,7 +82,7 @@ resource "nxos_rest" "PreReq4" { content = { name = "default" } - depends_on = [nxos_rest.PreReq2, ] + depends_on = [nxos_rest.PreReq3, ] } ` diff --git a/internal/provider/resource_nxos_pim_interface_test.go b/internal/provider/resource_nxos_pim_interface_test.go index e21f7c89..9647aa0d 100644 --- a/internal/provider/resource_nxos_pim_interface_test.go +++ b/internal/provider/resource_nxos_pim_interface_test.go @@ -73,13 +73,13 @@ resource "nxos_rest" "PreReq1" { resource "nxos_rest" "PreReq2" { dn = "sys/pim" class_name = "pimEntity" - depends_on = [nxos_rest.PreReq0, ] + depends_on = [nxos_rest.PreReq1, ] } resource "nxos_rest" "PreReq3" { dn = "sys/pim/inst" class_name = "pimInst" - depends_on = [nxos_rest.PreReq1, ] + depends_on = [nxos_rest.PreReq2, ] } resource "nxos_rest" "PreReq4" { @@ -88,7 +88,7 @@ resource "nxos_rest" "PreReq4" { content = { name = "default" } - depends_on = [nxos_rest.PreReq2, ] + depends_on = [nxos_rest.PreReq3, ] } `