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",
),
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",
),
class WatchLog(abc.ABC):
-
"""
Wait for a log message to appear in a text file.
# 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(
class RNDCBinaryExecutor(RNDCExecutor):
-
"""
An `RNDCExecutor` which sends RNDC commands to servers using the `rndc`
binary.
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