2024-06-02 06:03:47 +00:00
|
|
|
package service_definition
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetServiceDefinitionFromFileDoesNotExist(t *testing.T) {
|
2024-11-14 04:56:19 +00:00
|
|
|
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.")
|
|
|
|
}
|
|
|
|
}
|