diff --git a/post-processor/vagrant-cloud/post-processor_test.go b/post-processor/vagrant-cloud/post-processor_test.go index 6a0d9c4cb..58e65efaf 100644 --- a/post-processor/vagrant-cloud/post-processor_test.go +++ b/post-processor/vagrant-cloud/post-processor_test.go @@ -404,6 +404,14 @@ func TestGetProvider_artifice(t *testing.T) { t.Logf("Expected provider '%s'. Got provider '%s'", expectedProvider, provider) } +func TestGetProvider_other(t *testing.T) { + expectedProvider := "virtualbox" + + provider, _ := getProvider(expectedProvider, "foo.box", "other") + assert.Equal(t, expectedProvider, provider, "Error: Expected provider: '%s'. Got '%s'", expectedProvider, provider) + t.Logf("Expected provider '%s'. Got provider '%s'", expectedProvider, provider) +} + func newBoxFile() (boxfile *os.File, err error) { boxfile, err = ioutil.TempFile(os.TempDir(), "test*.box") if err != nil {