mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
Move param to isctest.util
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
# information regarding copyright ownership.
|
# information regarding copyright ownership.
|
||||||
|
|
||||||
import dns.zone
|
import dns.zone
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def zone_contains(
|
def zone_contains(
|
||||||
@@ -40,3 +41,9 @@ def file_contents_contain(file, substr):
|
|||||||
if f"{substr}" in line:
|
if f"{substr}" in line:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def param(*args, **kwargs):
|
||||||
|
if "id" not in kwargs:
|
||||||
|
kwargs["id"] = args[0] # use first argument as test ID
|
||||||
|
return pytest.param(*args, **kwargs)
|
||||||
|
@@ -26,6 +26,7 @@ from isctest.kasp import (
|
|||||||
KeyProperties,
|
KeyProperties,
|
||||||
KeyTimingMetadata,
|
KeyTimingMetadata,
|
||||||
)
|
)
|
||||||
|
from isctest.util import param
|
||||||
from isctest.vars.algorithms import ECDSAP256SHA256, ECDSAP384SHA384
|
from isctest.vars.algorithms import ECDSAP256SHA256, ECDSAP384SHA384
|
||||||
|
|
||||||
pytestmark = pytest.mark.extra_artifacts(
|
pytestmark = pytest.mark.extra_artifacts(
|
||||||
@@ -129,12 +130,6 @@ KASP_INHERIT_TSIG_SECRET = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def param(*args, **kwargs):
|
|
||||||
if "id" not in kwargs:
|
|
||||||
kwargs["id"] = args[0] # use first argument as test ID
|
|
||||||
return pytest.param(*args, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def autosign_properties(alg, size):
|
def autosign_properties(alg, size):
|
||||||
return [
|
return [
|
||||||
f"ksk {lifetime['P2Y']} {alg} {size} goal:omnipresent dnskey:omnipresent krrsig:omnipresent ds:omnipresent",
|
f"ksk {lifetime['P2Y']} {alg} {size} goal:omnipresent dnskey:omnipresent krrsig:omnipresent ds:omnipresent",
|
||||||
|
Reference in New Issue
Block a user