Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions acceptance/router_multi/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,15 @@ raw_test(
# This test uses sudo and accesses /var/run/netns.
local = True,
)

raw_test(
name = "test_conndown",
src = "test.py",
args = args + [
"--conndown",
],
data = data,
homedir = "$(rootpath :conf)",
# This test uses sudo and accesses /var/run/netns.
local = True,
)
15 changes: 11 additions & 4 deletions acceptance/router_multi/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ class RouterTest(base.TestBase):
help="use BFD",
)

conndown = cli.Flag(
"conndown",
help="run connectivity down tests (BFD enabled)",
)

def setup_prepare(self):
super().setup_prepare()

Expand All @@ -94,7 +99,7 @@ def setup_prepare(self):
def setup_start(self):
super().setup_start()

if self.bfd:
if self.bfd or self.conndown:
exec_docker(f"run -v {self.artifacts}/conf:/etc/scion -d "
"--network container:pause --name router "
"scion/router:latest")
Expand All @@ -107,10 +112,12 @@ def setup_start(self):

def _run(self):
braccept = self.get_executable("braccept")
bfd_arg = ""
extra_args = ""
if self.bfd:
bfd_arg = "--bfd"
sudo("%s --artifacts %s %s" % (braccept.executable, self.artifacts, bfd_arg))
extra_args = "--bfd"
elif self.conndown:
extra_args = "--conndown"
sudo("%s --artifacts %s %s" % (braccept.executable, self.artifacts, extra_args))

def teardown(self):
cmd.docker["logs", "router"].run_fg(retcode=None)
Expand Down
1 change: 1 addition & 0 deletions tools/braccept/cases/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ go_library(
"parent_to_internal.go",
"peer_to_child.go",
"scmp.go",
"scmp_conn_down.go",
"scmp_dest_unreachable.go",
"scmp_expired_hop.go",
"scmp_invalid_hop.go",
Expand Down
Loading
Loading