From fc772b477faaf6ec8d9d3b14a2ebd824331e4cad Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Mon, 4 Sep 2017 20:45:57 -0700 Subject: [PATCH] r/vmfs_datastore: Fix expected folder to env var Was a static path before, which was causing issues with some of my tests because I have it set to a different path in my devrc. --- vsphere/resource_vsphere_vmfs_datastore_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vsphere/resource_vsphere_vmfs_datastore_test.go b/vsphere/resource_vsphere_vmfs_datastore_test.go index 497ee3bcd..eb49b8c8f 100644 --- a/vsphere/resource_vsphere_vmfs_datastore_test.go +++ b/vsphere/resource_vsphere_vmfs_datastore_test.go @@ -144,7 +144,7 @@ func TestAccResourceVSphereVmfsDatastore(t *testing.T) { Config: testAccResourceVSphereVmfsDatastoreConfigStaticSingleFolder(), Check: resource.ComposeTestCheckFunc( testAccResourceVSphereVmfsDatastoreExists(true), - testAccResourceVSphereVmfsDatastoreMatchInventoryPath("datastore-folder"), + testAccResourceVSphereVmfsDatastoreMatchInventoryPath(os.Getenv("VSPHERE_DS_FOLDER")), ), }, }, @@ -171,7 +171,7 @@ func TestAccResourceVSphereVmfsDatastore(t *testing.T) { ExpectError: expectErrorIfNotVirtualCenter(), Check: resource.ComposeTestCheckFunc( testAccResourceVSphereVmfsDatastoreExists(true), - testAccResourceVSphereVmfsDatastoreMatchInventoryPath("datastore-folder"), + testAccResourceVSphereVmfsDatastoreMatchInventoryPath(os.Getenv("VSPHERE_DS_FOLDER")), ), }, },