spud/service_definition/service_definition_test.go

14 lines
289 B
Go

package service_definition
import (
"testing"
)
func TestGetServiceDefinitionFromFileDoesNotExist(t *testing.T) {
fetcher, _ := NewDefinitionFetcher("file")
_, err := fetcher.GetDefinition(t.TempDir() + "/not-a-file.yml")
if err == nil {
t.Errorf("Expected error, got nil.")
}
}