Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NSX-T support for Org Vdc #550

Merged
merged 10 commits into from
Sep 16, 2020
Merged

Add NSX-T support for Org Vdc #550

merged 10 commits into from
Sep 16, 2020

Conversation

Didainius
Copy link
Collaborator

This PR plays on top of recent default API version bump to V32.0 and tests out that NSX-T backed Org Vdc can be created.
It also adds a test for NSX-T backed Org Vdc when NSX-T related configuration is specified in config.

Note Additional NSX-T related configuration is mandatory to run the test TestAccVcdOrgVdcNsxt

Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Tests were successful in 10.1 and 10.2

@dataclouder dataclouder requested a review from vbauzys August 28, 2020 09:11
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few small comments, LGTM otherwise!

func skipNoNsxtConfiguration(t *testing.T) {
generalMessage := "Missing NSX-T config: "
if testConfig.VCD.NsxtProviderVdc.Name == "" {
t.Skip(generalMessage + "No provider vdc specified")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
t.Skip(generalMessage + "No provider vdc specified")
t.Skip(generalMessage + "No provider VDC specified")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was fixed. Didn't comment.

@@ -0,0 +1 @@
* Add support for NSX-T Org Vdc [GH-550]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to use capital "VDC" in human-facing messages.

Suggested change
* Add support for NSX-T Org Vdc [GH-550]
* Add support for NSX-T Org VDC [GH-550]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was fixed as well. Comment was missing.

Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Also if possible in govcd, then here also would be good that not only configuration decides to run test or not.

@@ -0,0 +1,335 @@
// +build vdc nsxt ALL functional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe is better to rename file to something like vdc_util_test.go vdc_common_test.go to avoid opening/read this as normal/running test as others are with same naming convention.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to vdc_common_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants