-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Adding Govomi Debug Logging Capability and refactoring of integration tests #6893
Conversation
Hi @chrislovecnm! Initial impressions of this look good - is it ready for integration as far as you are concerned? It would be nice to get it into our beta of Terraform 0.7. I have no way of running the acceptance tests so to some extend I'm relying on your or one of the other contributors running them. It would be great if you could post the output of |
Need some TLC on the unit tests :( |
@jen20 here is the results of local testing. https://gist.github.com/chrislovecnm/80dab5b30fad211f6c40fde0bc6b6ac2 The failures are expected:
Fixed a couple more of the tests after my refactor. Hopefully the tests are more readable and less fragile now. |
1ab92b9
to
1d49df9
Compare
@jen20 any comments on this? I can squash the comments and we can get this in |
this will need rebased before we can merge P. |
@stack72 this is fun ... |
1d49df9
to
2f9c59b
Compare
@stack72 ~ Paul all good to go now. We need to get this in before more. This is a major rework of our tests, and it a pain to merge into :( If you don't mind I will let you squash, as I want to keep the commits the same on my branch |
@chrislovecnm Can you post a log of the acceptance tests run with this set of commits integrated? |
==> Checking that code complies with gofmt requirements...
/Users/clove/Workspace/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
2016/06/02 11:41:06 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/vsphere -v -run TestAccVSphereVirtualMachine_mac_address -timeout 120m
=== RUN TestAccVSphereVirtualMachine_mac_address
2016/06/02 11:41:29 [DEBUG] template=
resource "vsphere_virtual_machine" "mac_address" {
name = "terraform-mac-address"
%s
vcpu = 2
memory = 1024
network_interface {
label = "%s"
mac_address = "%s"
}
disk {
%s
template = "%s"
}
}
2016/06/02 11:41:29 [DEBUG] template config=
resource "vsphere_virtual_machine" "mac_address" {
name = "terraform-mac-address"
datacenter = "Engpipeline Datacenter"
cluster = "Engpipeline-cluster"
vcpu = 2
memory = 1024
network_interface {
label = "VM-vlan409"
mac_address = "f6:5c:89:2b:a0:64"
}
disk {
datastore = "BEL-5798813-EMC-VMAX1789-LUN-06"
template = "centos-clove-tpl"
}
}
--- PASS: TestAccVSphereVirtualMachine_mac_address (153.03s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/vsphere 153.056s |
@jen20 btw after the PR I am working, the one after this one, on I am going to get Jenkins running our integration testing on one of our clusters. |
This address #6964 as well |
LGTM! Thanks @chrislovecnm :) |
Appreciated @stack72 ... now I get the joy of merging my mess back on to master ... rebase hell today :( |
The change to add govmomi debug paths (hashicorp#6893) required user input even when the env was not set. This change defaults those values appropriately.
The change to add govmomi debug paths (#6893) required user input even when the env was not set. This change defaults those values appropriately.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Also refactored some of the integration tests.