spud/service_definition/service_definition_test.go

15 lines
289 B
Go
Raw Permalink Normal View History

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