mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 14:00:00 -04:00
add checkconf test for named remote-servers
Add checkconf system test to cover usage of `remote-servers` with a named server-list and a `key` and/or a `tls` option.
This commit is contained in:
parent
2956e4fc45
commit
4bc435ab10
3 changed files with 57 additions and 0 deletions
15
bin/tests/system/checkconf/bad-remote-servers-key.conf
Normal file
15
bin/tests/system/checkconf/bad-remote-servers-key.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* See the COPYRIGHT file distributed with this work for additional
|
||||
* information regarding copyright ownership.
|
||||
*/
|
||||
|
||||
remote-servers a { 1.2.3.4; };
|
||||
remote-servers d { a key foo; };
|
||||
15
bin/tests/system/checkconf/bad-remote-servers-tls.conf
Normal file
15
bin/tests/system/checkconf/bad-remote-servers-tls.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* See the COPYRIGHT file distributed with this work for additional
|
||||
* information regarding copyright ownership.
|
||||
*/
|
||||
|
||||
remote-servers a { 1.2.3.4; };
|
||||
remote-servers d { a tls foo; };
|
||||
27
bin/tests/system/checkconf/good-remote-servers-named.conf
Normal file
27
bin/tests/system/checkconf/good-remote-servers-named.conf
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* See the COPYRIGHT file distributed with this work for additional
|
||||
* information regarding copyright ownership.
|
||||
*/
|
||||
|
||||
key foo {
|
||||
algorithm hmac-sha256;
|
||||
secret "9999abcd8765";
|
||||
};
|
||||
|
||||
tls bar {
|
||||
};
|
||||
|
||||
remote-servers a { 1.2.3.4; };
|
||||
remote-servers b { 1.2.3.4; };
|
||||
remote-servers c { 1.2.3.4; 5.6.7.8; ::1; };
|
||||
remote-servers d { a key foo; b tls bar; c key foo tls bar; };
|
||||
remote-servers e { a key foo.; };
|
||||
remote-servers f { b tls bar; };
|
||||
Loading…
Reference in a new issue