From 04c5bf5ddfac4bf16b51f7aab8a9e1aa40330fd1 Mon Sep 17 00:00:00 2001 From: Marin Salinas Date: Tue, 15 May 2018 10:40:30 -0500 Subject: [PATCH 1/2] add configuration for ci --- .travis.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index e81de3d3e..ceb4aa336 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,20 @@ language: go go: - - 1.10 + - "1.10" go_import_path: github.com/terraform-providers/terraform-provider-nutanix +before_install: + - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + - dep status + - dep ensure + install: -- bash scripts/gogetcookie.sh -- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + - export GOPATH="${TRAVIS_BUILD_DIR}/vendor:$GOPATH" + - make build + +before_script: + - make vet script: -- make vendor-status -- make testacc \ No newline at end of file + - make testacc \ No newline at end of file From 849fac29f15550edbac74f2402b1e8cb8574e81f Mon Sep 17 00:00:00 2001 From: Marin Salinas Date: Tue, 15 May 2018 12:45:28 -0500 Subject: [PATCH 2/2] remove hardcoded credentials in resource and data source test --- nutanix/data_source_nutanix_clusters_test.go | 7 ------- nutanix/data_source_nutanix_virtual_machine_test.go | 8 -------- nutanix/data_source_nutanix_virtual_machines_test.go | 8 -------- nutanix/resource_nutanix_virtual_machine_test.go | 8 -------- 4 files changed, 31 deletions(-) diff --git a/nutanix/data_source_nutanix_clusters_test.go b/nutanix/data_source_nutanix_clusters_test.go index e12432398..eac65651e 100644 --- a/nutanix/data_source_nutanix_clusters_test.go +++ b/nutanix/data_source_nutanix_clusters_test.go @@ -24,13 +24,6 @@ func TestAccOutscaleClustersDataSource_basic(t *testing.T) { // Lookup based on InstanceID const testAccClustersDataSourceConfig = ` -provider "nutanix" { - username = "admin" - password = "Nutanix/1234" - endpoint = "10.5.81.134" - insecure = true - port = 9440 -} data "nutanix_clusters" "basic_web" { metadata = { length = 3 diff --git a/nutanix/data_source_nutanix_virtual_machine_test.go b/nutanix/data_source_nutanix_virtual_machine_test.go index 7565559d4..a37f06bd7 100644 --- a/nutanix/data_source_nutanix_virtual_machine_test.go +++ b/nutanix/data_source_nutanix_virtual_machine_test.go @@ -30,14 +30,6 @@ func TestAccNutanixVMDataSource_basic(t *testing.T) { func testAccVMDataSourceConfig(r int) string { return fmt.Sprintf(` -provider "nutanix" { - username = "admin" - password = "Nutanix/1234" - endpoint = "10.5.81.134" - insecure = true - port = 9440 -} - variable clusterid { default = "000567f3-1921-c722-471d-0cc47ac31055" } diff --git a/nutanix/data_source_nutanix_virtual_machines_test.go b/nutanix/data_source_nutanix_virtual_machines_test.go index 763420d73..30e282983 100644 --- a/nutanix/data_source_nutanix_virtual_machines_test.go +++ b/nutanix/data_source_nutanix_virtual_machines_test.go @@ -24,14 +24,6 @@ func TestAccOutscaleVMSSDataSource_basic(t *testing.T) { // Lookup based on InstanceID const testAccVMSSDataSourceConfig = ` -provider "nutanix" { - username = "admin" - password = "Nutanix/1234" - endpoint = "10.5.81.134" - insecure = true - port = 9440 -} - variable clusterid { default = "000567f3-1921-c722-471d-0cc47ac31055" } diff --git a/nutanix/resource_nutanix_virtual_machine_test.go b/nutanix/resource_nutanix_virtual_machine_test.go index d4ba41a7b..26ba87c4c 100644 --- a/nutanix/resource_nutanix_virtual_machine_test.go +++ b/nutanix/resource_nutanix_virtual_machine_test.go @@ -74,14 +74,6 @@ func testAccCheckNutanixVirtualMachineDestroy(s *terraform.State) error { func testAccNutanixVMConfig(r int) string { return fmt.Sprint(` -provider "nutanix" { - username = "admin" - password = "Nutanix/1234" - endpoint = "10.5.81.139" - insecure = true - port = 9440 -} - variable clusterid { default = "000567f3-1921-c722-471d-0cc47ac31055" }