mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 01:26:59 +02:00
add unittest casae
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
This commit is contained in:
parent
b5ef2fc913
commit
f3c1e32930
@ -70,6 +70,10 @@ func TestSameSuccess(t *testing.T) {
|
||||
[]string{"::1", "dd:dd::01"},
|
||||
[]string{"00dd:dd::0001", "::0001"},
|
||||
},
|
||||
{
|
||||
[]string{"::1", "1.1.1.1", "2600.com", "3.3.3.3"},
|
||||
[]string{"2600.com", "::0001", "3.3.3.3", "1.1.1.1"},
|
||||
},
|
||||
}
|
||||
|
||||
for _, d := range tests {
|
||||
@ -97,6 +101,10 @@ func TestSameFailures(t *testing.T) {
|
||||
[]string{"1.2.3.4", "4.3.2.1"},
|
||||
[]string{"8.8.8.8", "8.8.4.4"},
|
||||
},
|
||||
{
|
||||
[]string{"::1", "2600.com", "3.3.3.3"},
|
||||
[]string{"2600.com", "3.3.3.3", "1.1.1.1"},
|
||||
},
|
||||
}
|
||||
|
||||
for _, d := range tests {
|
||||
|
Loading…
Reference in New Issue
Block a user