1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

IGNORE() now supports glob pattern/wildcards (#463)

This commit is contained in:
Koen Vlaswinkel
2019-05-27 16:14:29 +02:00
committed by Tom Limoncelli
parent b3e35b56a2
commit 5538de6682
40 changed files with 3102 additions and 2 deletions

View File

@@ -590,6 +590,12 @@ func makeTests(t *testing.T) []*TestCase {
tc("Add a new record - ignoring foo", a("bar", "1.2.3.4"), ignore("foo")),
)
tests = append(tests,
tc("Empty"),
tc("Create some records", txt("bar.foo", "simple"), a("bar.foo", "1.2.3.4")),
tc("Add a new record - ignoring *.foo", a("bar", "1.2.3.4"), ignore("*.foo")),
)
// R53_ALIAS
if !providers.ProviderHasCabability(*providerToRun, providers.CanUseRoute53Alias) {
t.Log("Skipping Route53 ALIAS Tests because provider does not support them")