Skip to content

Commit

Permalink
TESTING: Add ByLabel and ByRecordSet tests (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlimoncelli authored Mar 22, 2023
1 parent c3df299 commit 178ab46
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions integrationTest/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,60 @@ func makeTests(t *testing.T) []*TestGroup {
tc("Upcase both", mx("BAR", 5, "BAR.COM."), a("decoy", "3.3.3.3")),
),

// Make sure we can manipulate one DNS record when there is
// another at the same label.
testgroup("testByLabel",
tc("initial",
a("foo", "1.2.3.4"),
a("foo", "2.3.4.5"),
),
tc("changeOne",
a("foo", "1.2.3.4"),
a("foo", "3.4.5.6"), // Change
),
tc("deleteOne",
a("foo", "1.2.3.4"),
//a("foo", "3.4.5.6"), // Delete
),
tc("addOne",
a("foo", "1.2.3.4"),
a("foo", "3.4.5.6"), // Add
),
),

// Make sure we can manipulate one DNS record when there is
// another at the same RecordSet.
testgroup("testByRecordSet",
tc("initial",
a("bar", "1.2.3.4"),
a("foo", "2.3.4.5"),
a("foo", "3.4.5.6"),
mx("foo", 10, "foo.**current-domain**"),
mx("foo", 20, "bar.**current-domain**"),
),
tc("changeOne",
a("bar", "1.2.3.4"),
a("foo", "2.3.4.5"),
a("foo", "8.8.8.8"), // Change
mx("foo", 10, "foo.**current-domain**"),
mx("foo", 20, "bar.**current-domain**"),
),
tc("deleteOne",
a("bar", "1.2.3.4"),
a("foo", "2.3.4.5"),
//a("foo", "8.8.8.8"), // Delete
mx("foo", 10, "foo.**current-domain**"),
mx("foo", 20, "bar.**current-domain**"),
),
tc("addOne",
a("bar", "1.2.3.4"),
a("foo", "2.3.4.5"),
a("foo", "8.8.8.8"), // Add
mx("foo", 10, "foo.**current-domain**"),
mx("foo", 20, "bar.**current-domain**"),
),
),

testgroup("IDNA",
not("SOFTLAYER"),
// SOFTLAYER: fails at direct internationalization, punycode works, of course.
Expand Down

0 comments on commit 178ab46

Please sign in to comment.