@@ -39,7 +39,6 @@ const defaultF5VirtualServerNamespace = "virtualserver"
3939
4040func TestF5VirtualServerEndpoints (t * testing.T ) {
4141 t .Parallel ()
42-
4342 tests := []struct {
4443 name string
4544 annotationFilter string
@@ -349,7 +348,7 @@ func TestF5VirtualServerEndpoints(t *testing.T) {
349348 },
350349 expected : []* endpoint.Endpoint {
351350 {
352- DNSName : "www .example.com" ,
351+ DNSName : "alias1 .example.com" ,
353352 Targets : []string {"192.168.1.100" },
354353 RecordType : endpoint .RecordTypeA ,
355354 RecordTTL : 0 ,
@@ -358,7 +357,7 @@ func TestF5VirtualServerEndpoints(t *testing.T) {
358357 },
359358 },
360359 {
361- DNSName : "alias1 .example.com" ,
360+ DNSName : "alias2 .example.com" ,
362361 Targets : []string {"192.168.1.100" },
363362 RecordType : endpoint .RecordTypeA ,
364363 RecordTTL : 0 ,
@@ -367,7 +366,7 @@ func TestF5VirtualServerEndpoints(t *testing.T) {
367366 },
368367 },
369368 {
370- DNSName : "alias2 .example.com" ,
369+ DNSName : "www .example.com" ,
371370 Targets : []string {"192.168.1.100" },
372371 RecordType : endpoint .RecordTypeA ,
373372 RecordTTL : 0 ,
@@ -600,7 +599,7 @@ func TestF5VirtualServerEndpoints(t *testing.T) {
600599 endpoints , err := source .Endpoints (context .Background ())
601600 require .NoError (t , err )
602601 assert .Len (t , endpoints , len (tc .expected ))
603- assert . Equal (t , tc .expected , endpoints )
602+ validateEndpoints (t , endpoints , tc .expected )
604603 })
605604 }
606605}
0 commit comments