Browse Source

fix cloud test

Ajay Tripathy 4 years ago
parent
commit
449a1a29d0
1 changed files with 5 additions and 1 deletions
  1. 5 1
      test/cloud_test.go

+ 5 - 1
test/cloud_test.go

@@ -98,11 +98,15 @@ func TestPVPriceFromCSV(t *testing.T) {
 	pv := &v1.PersistentVolume{}
 	pv.Name = nameWant
 
+	confMan := config.NewConfigFileManager(&config.ConfigFileManagerOpts{
+		LocalConfigPath: "./",
+	})
+
 	wantPrice := "0.1337"
 	c := &cloud.CSVProvider{
 		CSVLocation: "../configs/pricing_schema_pv.csv",
 		CustomProvider: &cloud.CustomProvider{
-			Config: cloud.NewProviderConfig("../configs/default.json"),
+			Config: cloud.NewProviderConfig(confMan, "../configs/default.json"),
 		},
 	}
 	c.DownloadPricingData()