You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/agent/retry_join_test.go

19 lines
417 B

package agent
import (
"reflect"
"testing"
discover "github.com/hashicorp/go-discover"
)
// if this test fails check the _ imports of go-discover/provider/* packages
// in retry_join.go
func TestGoDiscoverRegistration(t *testing.T) {
got := discover.ProviderNames()
want := []string{"aws", "azure", "gce"}
if !reflect.DeepEqual(got, want) {
t.Fatalf("got go-discover providers %v want %v", got, want)
}
}