Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/pr_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
Write-Host "Integration test providers: $Providers"
echo "integration_test_providers=$(ConvertTo-Json -InputObject $Providers -Compress)" >> $env:GITHUB_OUTPUT
env:
PROVIDERS: "['ALIDNS', 'AXFRDDNS', 'AXFRDDNS_DNSSEC', 'AZURE_DNS','BIND','BUNNY_DNS','CLOUDFLAREAPI','CLOUDNS','CNR','DIGITALOCEAN','FORTIGATE','GANDI_V5','GCLOUD','HEDNS','HETZNER_V2','HEXONET','HUAWEICLOUD','INWX','JOKER','MYTHICBEASTS', 'NAMEDOTCOM','NS1','POWERDNS','ROUTE53','SAKURACLOUD','TRANSIP']"
PROVIDERS: "['ALIDNS', 'AXFRDDNS', 'AXFRDDNS_DNSSEC', 'AZURE_DNS','BIND','BUNNY_DNS','CLOUDFLAREAPI','CLOUDNS','CNR','DIGITALOCEAN','FORTIGATE','GANDI_V5','GCLOUD','HEDNS','HETZNER_V2','HEXONET','HUAWEICLOUD','INWX','JOKER','MYTHICBEASTS', 'NAMEDOTCOM','NS1','POWERDNS','ROUTE53','SAKURACLOUD','TRANSIP','VERCEL']"
ENV_CONTEXT: ${{ toJson(env) }}
VARS_CONTEXT: ${{ toJson(vars) }}
SECRETS_CONTEXT: ${{ toJson(secrets) }}
Expand Down Expand Up @@ -99,6 +99,7 @@ jobs:
ROUTE53_DOMAIN: ${{ vars.ROUTE53_DOMAIN }}
SAKURACLOUD_DOMAIN: ${{ vars.SAKURACLOUD_DOMAIN }}
TRANSIP_DOMAIN: ${{ vars.TRANSIP_DOMAIN }}
VERCEL_DOMAIN: ${{ vars.VERCEL_DOMAIN }}

# PROVIDER SECRET LIST
# The above providers have additional env variables they
Expand Down Expand Up @@ -193,6 +194,9 @@ jobs:
#
TRANSIP_ACCOUNT_NAME: ${{ secrets.TRANSIP_ACCOUNT_NAME }}
TRANSIP_PRIVATE_KEY: ${{ secrets.TRANSIP_PRIVATE_KEY }}
#
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
VERCEL_API_TOKEN: ${{ secrets.VERCEL_API_TOKEN }}

concurrency:
group: ${{ github.workflow }}-${{ matrix.provider }}
Expand Down
26 changes: 24 additions & 2 deletions integrationTest/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,9 @@ func makeTests() []*TestGroup {
// them anyway because one never knows. Ready? Let's go!

testgroup("IGNORE main",
// Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel
not("VERCEL"),

tc("Create some records",
a("foo", "1.2.3.4"),
a("foo", "2.3.4.5"),
Expand Down Expand Up @@ -1430,6 +1433,9 @@ func makeTests() []*TestGroup {

// Same as "main" but with an apex ("@") record.
testgroup("IGNORE apex",
// Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel
not("VERCEL"),

tc("Create some records",
a("@", "1.2.3.4"),
a("@", "2.3.4.5"),
Expand Down Expand Up @@ -1565,6 +1571,9 @@ func makeTests() []*TestGroup {
// IGNORE with unsafe notation

testgroup("IGNORE unsafe",
// Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel
not("VERCEL"),

tc("Create some records",
txt("foo", "simple"),
a("foo", "1.2.3.4"),
Expand Down Expand Up @@ -1604,6 +1613,9 @@ func makeTests() []*TestGroup {
// IGNORE with wildcards

testgroup("IGNORE wilds",
// Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel
not("VERCEL"),

tc("Create some records",
a("foo.bat", "1.2.3.4"),
a("foo.bat", "2.3.4.5"),
Expand Down Expand Up @@ -1663,7 +1675,10 @@ func makeTests() []*TestGroup {

// IGNORE with changes
testgroup("IGNORE with modify",
not("NAMECHEAP"), // Will fail until converted to use diff2 module.
not(
"NAMECHEAP", // Will fail until converted to use diff2 module.
"VERCEL", // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel
),
tc("Create some records",
a("foo", "1.1.1.1"),
a("foo", "10.10.10.10"),
Expand Down Expand Up @@ -1772,6 +1787,8 @@ func makeTests() []*TestGroup {

// https://github.com/StackExchange/dnscontrol/issues/2285
testgroup("IGNORE_TARGET b2285",
// Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel
not("VERCEL"),
tc("Create some records",
cname("foo", "redact1.acm-validations.aws."),
cname("bar", "redact2.acm-validations.aws."),
Expand All @@ -1791,6 +1808,8 @@ func makeTests() []*TestGroup {
// changes. This resulted in the deSEC provider generating an
// empty upsert, which the API rejected.
testgroup("IGNORE everything b2822",
// Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel
not("VERCEL"),
tc("Create some records",
a("dyndns-city1", "91.42.1.1"),
a("dyndns-city2", "91.42.1.2"),
Expand All @@ -1815,7 +1834,10 @@ func makeTests() []*TestGroup {

// https://github.com/StackExchange/dnscontrol/issues/3227
testgroup("IGNORE w/change b3227",
not("NAMECHEAP"), // Will fail until converted to use diff2 module.
not(
"NAMECHEAP", // Will fail until converted to use diff2 module.
"VERCEL", // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel
),
tc("Create some records",
a("testignore", "8.8.8.8"),
a("testdefined", "9.9.9.9"),
Expand Down