mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:52:06 -04:00
Merge branch 'mnowak/accommodate-black-24.2.0' into 'main'
Accommodate black 24.2.0 See merge request isc-projects/bind9!8729
This commit is contained in:
commit
917851ac5c
4 changed files with 18 additions and 20 deletions
|
|
@ -312,9 +312,11 @@ def dspublished_tests(checkds, addr):
|
|||
CheckDSTest(
|
||||
zone=f"bad.{checkds}.dspublish.ns6",
|
||||
logs_to_wait_for=(
|
||||
"bad DS response from 10.53.0.6"
|
||||
if checkds == "explicit"
|
||||
else "error during parental-agents processing",
|
||||
(
|
||||
"bad DS response from 10.53.0.6"
|
||||
if checkds == "explicit"
|
||||
else "error during parental-agents processing"
|
||||
),
|
||||
),
|
||||
expected_parent_state="!DSPublish",
|
||||
),
|
||||
|
|
@ -394,9 +396,11 @@ def dswithdrawn_tests(checkds, addr):
|
|||
CheckDSTest(
|
||||
zone=f"bad.{checkds}.dsremoved.ns6",
|
||||
logs_to_wait_for=(
|
||||
"bad DS response from 10.53.0.6"
|
||||
if checkds == "explicit"
|
||||
else "error during parental-agents processing",
|
||||
(
|
||||
"bad DS response from 10.53.0.6"
|
||||
if checkds == "explicit"
|
||||
else "error during parental-agents processing"
|
||||
),
|
||||
),
|
||||
expected_parent_state="!DSRemoved",
|
||||
),
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ class NamedPorts(NamedTuple):
|
|||
|
||||
|
||||
class NamedInstance:
|
||||
|
||||
"""
|
||||
A class representing a `named` instance used in a system test.
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@ class LogFile:
|
|||
|
||||
|
||||
class WatchLog(abc.ABC):
|
||||
|
||||
"""
|
||||
Wait for a log message to appear in a text file.
|
||||
|
||||
|
|
@ -294,19 +293,18 @@ class WatchLogFromHere(WatchLog):
|
|||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class RNDCExecutor(abc.ABC):
|
||||
|
||||
"""
|
||||
An interface which RNDC executors have to implement in order for the
|
||||
`NamedInstance` class to be able to use them.
|
||||
"""
|
||||
|
||||
@overload
|
||||
def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str:
|
||||
...
|
||||
def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str: ...
|
||||
|
||||
@overload
|
||||
def call(self, ip: str, port: int, command: List[str], timeout: int = 10) -> str:
|
||||
...
|
||||
def call(
|
||||
self, ip: str, port: int, command: List[str], timeout: int = 10
|
||||
) -> str: ...
|
||||
|
||||
@abc.abstractmethod
|
||||
def call(
|
||||
|
|
@ -326,7 +324,6 @@ class RNDCException(Exception):
|
|||
|
||||
|
||||
class RNDCBinaryExecutor(RNDCExecutor):
|
||||
|
||||
"""
|
||||
An `RNDCExecutor` which sends RNDC commands to servers using the `rndc`
|
||||
binary.
|
||||
|
|
@ -342,12 +339,12 @@ class RNDCBinaryExecutor(RNDCExecutor):
|
|||
self._base_cmdline = [rndc_path, "-c", rndc_conf]
|
||||
|
||||
@overload
|
||||
def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str:
|
||||
...
|
||||
def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str: ...
|
||||
|
||||
@overload
|
||||
def call(self, ip: str, port: int, command: List[str], timeout: int = 10) -> str:
|
||||
...
|
||||
def call(
|
||||
self, ip: str, port: int, command: List[str], timeout: int = 10
|
||||
) -> str: ...
|
||||
|
||||
def call(
|
||||
self, ip: str, port: int, command: Union[str, List[str]], timeout: int = 10
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ import subprocess
|
|||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class RNDCExecutor(abc.ABC):
|
||||
|
||||
"""
|
||||
An interface which RNDC executors have to implement in order for the
|
||||
`NamedInstance` class to be able to use them.
|
||||
|
|
@ -38,7 +37,6 @@ class RNDCException(Exception):
|
|||
|
||||
|
||||
class RNDCBinaryExecutor(RNDCExecutor):
|
||||
|
||||
"""
|
||||
An `RNDCExecutor` which sends RNDC commands to servers using the `rndc`
|
||||
binary.
|
||||
|
|
|
|||
Loading…
Reference in a new issue