aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Söllvander <js@FreeBSD.org>2026-04-22 14:19:42 +0000
committerJohan Söllvander <js@FreeBSD.org>2026-04-22 14:19:42 +0000
commit51b65c6af2e19f1e944c67aa2b5252cd9dc9e2f7 (patch)
tree550daf47ad73d140a8e024f954dfc3496388b1ec
parent19213b8eb33f8cb692abb1ee857778af347ddfeb (diff)
ctladm tests: Only use allowed chars in IQN
_ isn't part of the allowed IQN format, but - is. None functional change. Reviewed by: asomers, ngie Approved by: asomers (mentor) MFC after: 1 week Sponsored by: ConnectWise Differential Revision: https://reviews.freebsd.org/D56557
-rw-r--r--usr.sbin/ctladm/tests/port.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ctladm/tests/port.sh b/usr.sbin/ctladm/tests/port.sh
index d966529a85ae..1103a1d7bafb 100644
--- a/usr.sbin/ctladm/tests/port.sh
+++ b/usr.sbin/ctladm/tests/port.sh
@@ -118,7 +118,7 @@ create_iscsi_body()
{
skip_if_ctld
- TARGET=iqn.2018-10.myhost.create_iscsi
+ TARGET=iqn.2018-10.myhost.create-iscsi
atf_check -o save:port-create.txt ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET"
echo "target: $TARGET" >> port-create.txt
atf_check egrep -q "Port created successfully" port-create.txt
@@ -146,7 +146,7 @@ create_iscsi_alias_body()
{
skip_if_ctld
- TARGET=iqn.2018-10.myhost.create_iscsi_alias
+ TARGET=iqn.2018-10.myhost.create-iscsi-alias
ALIAS="foobar"
atf_check -o save:port-create.txt ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET" -O cfiscsi_target_alias="$ALIAS"
echo "target: $TARGET" >> port-create.txt
@@ -173,7 +173,7 @@ create_iscsi_without_required_args_body()
{
skip_if_ctld
- TARGET=iqn.2018-10.myhost.create_iscsi
+ TARGET=iqn.2018-10.myhost.create-iscsi
atf_check -s exit:1 -e match:"Missing required argument: cfiscsi_target" ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG
atf_check -s exit:1 -e match:"Missing required argument: cfiscsi_portal_group_tag" ctladm port -c -d "iscsi" -O cfiscsi_target=$TARGET
}
@@ -288,7 +288,7 @@ remove_iscsi_body()
{
skip_if_ctld
- TARGET=iqn.2018-10.myhost.remove_iscsi
+ TARGET=iqn.2018-10.myhost.remove-iscsi
atf_check -o save:port-create.txt ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET"
portnum=`awk '/port:/ {print $2}' port-create.txt`
atf_check -o save:portlist.txt ctladm portlist -qf iscsi
@@ -314,7 +314,7 @@ remove_iscsi_without_required_args_body()
{
skip_if_ctld
- TARGET=iqn.2018-10.myhost.remove_iscsi_without_required_args
+ TARGET=iqn.2018-10.myhost.remove-iscsi-without-required-args
atf_check -o save:port-create.txt ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET"
echo "target: $TARGET" >> port-create.txt
atf_check -s exit:1 -e match:"Missing required argument: cfiscsi_portal_group_tag" ctladm port -r -d iscsi -O cfiscsi_target="$TARGET"