github.com/davidmanzanares/dsd@v0.1.2-0.20210106152357-a35988f5d245/dsdl/deploy_test.go (about) 1 package dsdl 2 3 import "testing" 4 5 func TestDeployFailureNoExecutable(t *testing.T) { 6 service := "s3://dsd-s3-test/tests" 7 _, err := Deploy(Target{Name: "test", Service: service, Patterns: []string{"test-asset-1"}}) 8 if err == nil { 9 t.Fatal("Deploy should fail when there is no executable") 10 } 11 } 12 13 func TestDeployServiceFailure(t *testing.T) { 14 service := "s3://dsd-s3-test-invalid/tests" 15 _, err := Deploy(Target{Name: "test", Service: service, Patterns: testPatterns}) 16 if err == nil { 17 t.Fatal("Deploy should fail when the service URL is invalid") 18 } 19 }