Skip to content

Commit

Permalink
Merge pull request #883 from gcs278/NE-1186
Browse files Browse the repository at this point in the history
NE-1186: Test_getRR: Fix typo: "excepted" → "expected"
  • Loading branch information
openshift-merge-robot committed Mar 1, 2023
2 parents 8eb2c66 + f7bfa89 commit ed65d6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/dns/alibaba/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,33 +60,33 @@ func TestGetRR(t *testing.T) {
cases := []struct {
dnsName string
domainName string
excepted string
expected string
}{
{
dnsName: "test.example.com.",
domainName: "example.com",
excepted: "test",
expected: "test",
},
{
dnsName: "test.subdomain.example.com.",
domainName: "example.com",
excepted: "test.subdomain",
expected: "test.subdomain",
},
{
dnsName: "test.subdomain.example.com.",
domainName: "subdomain.example.com",
excepted: "test",
expected: "test",
},
{
dnsName: "without.domain.",
domainName: "example.com",
excepted: "without.domain",
expected: "without.domain",
},
}

for _, c := range cases {
rr := getRR(c.dnsName, c.domainName)
assert.Equal(t, c.excepted, rr)
assert.Equal(t, c.expected, rr)
}
}

Expand Down

0 comments on commit ed65d6b

Please sign in to comment.