post-processor/vagrant-cloud: fix dropped test errors

This commit is contained in:
Lars Lehtonen 2019-11-14 18:26:40 -08:00 committed by Adrien Delorme
parent 437983343a
commit 2e7ba19d8c
1 changed files with 6 additions and 0 deletions

View File

@ -425,6 +425,9 @@ func TestProviderFromVagrantBox_metadata_ok(t *testing.T) {
defer os.Remove(boxfile.Name())
provider, err := providerFromVagrantBox(boxfile.Name())
if err != nil {
t.Fatalf("error getting provider from vagrant box %s:%v", boxfile.Name(), err)
}
assert.Equal(t, expectedProvider, provider, "Error: Expected provider: '%s'. Got '%s'", expectedProvider, provider)
t.Logf("Expected provider '%s'. Got provider '%s'", expectedProvider, provider)
}
@ -443,6 +446,9 @@ func TestGetProvider_artifice(t *testing.T) {
defer os.Remove(boxfile.Name())
provider, err := getProvider("", boxfile.Name(), "artifice")
if err != nil {
t.Fatalf("error getting provider %s:%v", boxfile.Name(), err)
}
assert.Equal(t, expectedProvider, provider, "Error: Expected provider: '%s'. Got '%s'", expectedProvider, provider)
t.Logf("Expected provider '%s'. Got provider '%s'", expectedProvider, provider)
}