mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-21 22:04:42 +00:00
18 lines
443 B
Go
18 lines
443 B
Go
package provider
|
|
|
|
import "testing"
|
|
|
|
func TestUnsupportedProvider(t *testing.T) {
|
|
_, e := NewProvider("will-not-exists-never-1546456", map[string]string{})
|
|
if e.Error() != "will-not-exists-never-1546456 not supported." {
|
|
t.Errorf("We expect an error because will-not-exists-never-1546456 is not supported")
|
|
}
|
|
}
|
|
|
|
func TestCreateFakeProvider(t *testing.T) {
|
|
_, e := NewProvider("fake", map[string]string{})
|
|
if e != nil {
|
|
t.Error(e)
|
|
}
|
|
}
|