From: Kees Monshouwer Date: Mon, 10 Jul 2023 13:26:36 +0000 (+0200) Subject: auth: test nits X-Git-Tag: rec-5.0.0-rc1~45^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75241263f46e45a59c6ef04482d8abc68942fd23;p=thirdparty%2Fpdns.git auth: test nits --- diff --git a/regression-tests.api/test_Zones.py b/regression-tests.api/test_Zones.py index 8193070a60..6bd02bfc87 100644 --- a/regression-tests.api/test_Zones.py +++ b/regression-tests.api/test_Zones.py @@ -836,7 +836,7 @@ class AuthZones(ApiTestCase, AuthZonesHelperMixin): data = r.json() print("status for axfr-retrieve:", data) self.assertEqual(data['result'], u'Added retrieval request for \'' + payload['name'] + - '\' from master 127.0.0.2') + '\' from primary 127.0.0.2') def test_notify_master_zone(self): name, payload, data = self.create_zone(kind='Master') diff --git a/regression-tests/backends/godbc_sqlite3-master b/regression-tests/backends/godbc_sqlite3-master index 89c11cb218..10aa8e21c0 100644 --- a/regression-tests/backends/godbc_sqlite3-master +++ b/regression-tests/backends/godbc_sqlite3-master @@ -41,7 +41,7 @@ godbc-get-tsig-key-query=select algorithm, secret from tsigkeys where name=? godbc-get-tsig-keys-query=select name,algorithm, secret from tsigkeys godbc-publish-domain-key-query=update cryptokeys set published=1 where domain_id=(select id from domains where name=?) and cryptokeys.id=? godbc-id-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and type=? and name=? and domain_id=? -godbc-info-all-master-query=select domains.id, domains.name, domains.type, domains.notified_serial, domains.options, domains.catalog, records.content from records join domains on records.domain_id=domains.id and records.name=domains.name where records.type='SOA' and records.disabled=0 and domains.type in ('MASTER', 'PRODUCER') +godbc-info-all-primary-query=select domains.id, domains.name, domains.type, domains.notified_serial, domains.options, domains.catalog, records.content from records join domains on records.domain_id=domains.id and records.name=domains.name where records.type='SOA' and records.disabled=0 and domains.type in ('MASTER', 'PRODUCER') godbc-info-all-slaves-query=select domains.id, domains.name, domains.type, domains.master, domains.last_check, records.content from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name where domains.type in ('SLAVE', 'CONSUMER') godbc-info-zone-query=select id,name,master,last_check,notified_serial,type,options,catalog,account from domains where name=? godbc-info-producer-members-query=select domains.id, domains.name, domains.options from records join domains on records.domain_id=domains.id and records.name=domains.name where domains.type='MASTER' and domains.catalog=? and records.type='SOA' and records.disabled=0 @@ -62,12 +62,12 @@ godbc-search-comments-query=SELECT domain_id,name,type,modified_at,account,comme godbc-search-records-query=SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE name LIKE ? OR content LIKE ? LIMIT ? godbc-set-domain-metadata-query=insert into domainmetadata (domain_id, kind, content) select id, ?, ? from domains where name=? godbc-set-tsig-key-query=replace into tsigkeys (name,algorithm,secret) values(?,?,?) -godbc-supermaster-query=select account from supermasters where ip=? and nameserver=? +godbc-autoprimary-query=select account from supermasters where ip=? and nameserver=? godbc-unpublish-domain-key-query=update cryptokeys set published=0 where domain_id=(select id from domains where name=?) and cryptokeys.id=? godbc-update-account-query=update domains set account=? where name=? godbc-update-kind-query=update domains set type=? where name=? godbc-update-lastcheck-query=update domains set last_check=? where id=? -godbc-update-master-query=update domains set master=? where name=? +godbc-update-primary-query=update domains set master=? where name=? godbc-update-ordername-and-auth-query=update records set ordername=?,auth=? where domain_id=? and name=? and disabled=0 godbc-update-ordername-and-auth-type-query=update records set ordername=?,auth=? where domain_id=? and name=? and type=? and disabled=0 godbc-update-serial-query=update domains set notified_serial=? where id=?