package resolution import ( "reflect" "testing" mcat "git.novox.be/novox/mesh-sdk/go/catalogue" ) func TestTheCoresOwnCredentialsAreTheBusTheProvisionerAndItsClient(t *testing.T) { if want := []string{"mesh-provisioner", "mesh-provisioner-client", "nats"}; !reflect.DeepEqual(mcat.CoreCredentialModules, want) { t.Fatalf("the core's modules are %v, want %v (mesh-vault's CoreModules is the same list)", mcat.CoreCredentialModules, want) } for _, m := range []string{"nats", "mesh-provisioner", "mesh-provisioner-client"} { if !CarriesVaultSealed(m) { t.Errorf("%s is not on the list", m) } } for _, m := range []string{"postgres", "mesh-vault", "mesh-controller", ""} { if CarriesVaultSealed(m) { t.Errorf("%s is on the list", m) } } }