spud/service_definition/service_definition_test.go
Marc Cataford 8bc33870e6
All checks were successful
Pull-Request / tests (pull_request) Successful in 1m6s
Pull-Request / static-analysis (pull_request) Successful in 1m31s
Pull-Request / post-run (pull_request) Successful in 24s
feat: fetch service def from git
2024-11-10 10:52:06 -05:00

13 lines
244 B
Go

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