summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-02-25 12:27:49 -0600
committerDavid Teigland <teigland@redhat.com>2015-02-25 14:58:49 -0600
commit2c50cbe8cbd5197793abb6f43f42b53980cdc65e (patch)
treecc43de4f585a1808aafe30e73e0c4211be19a83c
parentebb2205b4c56aa99cb77939eff396665c47f082d (diff)
downloadlvm2-2c50cbe8cbd5197793abb6f43f42b53980cdc65e.tar.gz
tests: fix the system_id tests
That were broken by yesterday's system_id changes.
-rw-r--r--man/lvmsystemid.7.in2
-rw-r--r--test/shell/system_id.sh22
2 files changed, 12 insertions, 12 deletions
diff --git a/man/lvmsystemid.7.in b/man/lvmsystemid.7.in
index 741aafe1e..e188c1244 100644
--- a/man/lvmsystemid.7.in
+++ b/man/lvmsystemid.7.in
@@ -36,7 +36,7 @@ Valid system_id characters are the same as valid VG name characters. If a
system_id contains invalid characters, those characters are omitted and
remaining characters are used. If a system_id is longer than the maximum
name length, the characters up to the maximum length are used. The
-maximum length of a system_id is 127 characters.
+maximum length of a system_id is 128 characters.
.SS Limitations and warnings
diff --git a/test/shell/system_id.sh b/test/shell/system_id.sh
index 532715398..43d120342 100644
--- a/test/shell/system_id.sh
+++ b/test/shell/system_id.sh
@@ -298,15 +298,15 @@ grep $SID1 err
vgremove $vg1
rm -f $SIDFILE
-# Test max system_id length (127) and invalid system_id characters.
-# The 127 length limit is imposed before invalid characters are omitted.
+# Test max system_id length (128) and invalid system_id characters.
+# The 128 length limit is imposed before invalid characters are omitted.
SIDFILE=etc/lvm_test.conf
-# 120 numbers followed by 7 letters (max len)
-SID1=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abcdefg
-# 120 numbers followed by 8 letters (too long by 1 character, the last is omitted)
-SID2=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abcdefgh
+# 120 numbers followed by 8 letters (max len)
+SID1=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abcdefgh
+# 120 numbers followed by 9 letters (too long by 1 character, the last is omitted)
+SID2=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abcdefghi
# max len system_id should appear normally
rm -f $SIDFILE
@@ -339,11 +339,11 @@ rm -f $SIDFILE
# max len system_id containing an invalid character should appear without
# the invalid character
-# 120 numbers followed by invalid '#' character followed by 7 letters (too long by 1 character)
-SID1=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789#abcdefg
+# 120 numbers followed by invalid '%' character followed by 8 letters (too long by 1 character)
+SID1=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789%abcdefgh
# After the invalid character is omitted from SID1
-# The string is truncated to max length (127) before the invalid character is omitted
-SID2=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abcdef
+# The string is truncated to max length (128) before the invalid character is omitted
+SID2=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abcdefg
rm -f $SIDFILE
echo "$SID1" > $SIDFILE
aux lvmconf "global/system_id_source = file"
@@ -359,7 +359,7 @@ vgremove $vg1
rm -f $SIDFILE
# contains a bunch of invalid characters
-SID1="?#$&A.@1]"
+SID1="?%$&A.@1]"
# SID1 without the invalid characters
SID2=A.1