Fixup shared oss/ent tests

This commit is contained in:
freddygv 2021-11-08 13:22:10 -07:00
parent 0e507492d0
commit a6d985040f
2 changed files with 6 additions and 2 deletions

View File

@ -157,8 +157,9 @@ func TestAPI_ConfigEntries_IngressGateway(t *testing.T) {
require.Len(t, readIngress.Listeners, 1)
require.Len(t, readIngress.Listeners[0].Services, 1)
// Set namespace to blank so that OSS and ent can utilize the same tests
// Set namespace and partition to blank so that OSS and ent can utilize the same tests
readIngress.Listeners[0].Services[0].Namespace = ""
readIngress.Listeners[0].Services[0].Partition = ""
require.Equal(t, ingress1.Listeners, readIngress.Listeners)
case "bar":
@ -168,8 +169,9 @@ func TestAPI_ConfigEntries_IngressGateway(t *testing.T) {
require.Equal(t, ingress2.Name, readIngress.Name)
require.Len(t, readIngress.Listeners, 1)
require.Len(t, readIngress.Listeners[0].Services, 1)
// Set namespace to blank so that OSS and ent can utilize the same tests
// Set namespace and partition to blank so that OSS and ent can utilize the same tests
readIngress.Listeners[0].Services[0].Namespace = ""
readIngress.Listeners[0].Services[0].Partition = ""
require.Equal(t, ingress2.Listeners, readIngress.Listeners)
}

View File

@ -55,6 +55,7 @@ func TestConnectExpose(t *testing.T) {
{
Name: "foo",
Namespace: ns,
Partition: ap,
},
},
},
@ -95,6 +96,7 @@ func TestConnectExpose(t *testing.T) {
{
Name: "foo",
Namespace: ns,
Partition: ap,
},
},
})