Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
Signed-off-by: abarreiro <abarreiro@vmware.com>
  • Loading branch information
adambarreiro committed Jun 17, 2024
1 parent a86673d commit c71178f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions govcd/vdc_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ func (vcd *TestVCD) Test_VdcTemplateInstantiate(check *C) {
check.Assert(vdc.Vdc.Name, Equals, check.TestName())
check.Assert(vdc.Vdc.Description, Equals, check.TestName())

org, err := vdc.getParentOrg()
check.Assert(err, IsNil)
check.Assert(adminOrg.AdminOrg.ID, Equals, org.orgId())

// Instantiate the VDC Template as a Tenant
if len(vcd.config.Tenants) > 0 {
orgName := vcd.config.Tenants[0].SysOrg
Expand All @@ -357,5 +361,9 @@ func (vcd *TestVCD) Test_VdcTemplateInstantiate(check *C) {
}()
check.Assert(vdc2.Vdc.Name, Equals, check.TestName()+"2")
check.Assert(vdc2.Vdc.Description, Equals, check.TestName()+"2")

org, err := vdc.getParentOrg()
check.Assert(err, IsNil)
check.Assert(adminOrg.AdminOrg.ID, Equals, org.orgId())
}
}

0 comments on commit c71178f

Please sign in to comment.