Skip to content

Commit

Permalink
pf tests: test creator ID listing
Browse files Browse the repository at this point in the history
Sponsored by:	Rubicon Communications, LLC ("Netgate")
  • Loading branch information
kprovost committed Sep 14, 2023
1 parent b22efd1 commit 48e1e2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/sys/netpfil/pf/pfsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ common_body()
grep 198.51.100.254 ; then
atf_fail "state not found on synced host"
fi

# Check creator IDs
hostid_one=$(jexec one pfctl -si -v | grep Hostid | awk '{ printf($2); }'| sed 's/0x//')

if ! jexec two pfctl -sc | grep ${hostid_one};
then
atf_fail "Didn't find creator one in jail two"
fi
}

basic_cleanup()
Expand Down

0 comments on commit 48e1e2f

Please sign in to comment.