Reviewed: https://review.opendev.org/c/starlingx/distcloud/+/902616 Committed: https://opendev.org/starlingx/distcloud/commit/15798a8e5cf91b54179dd0140693839b92bd017b Submitter: "Zuul (22348)" Branch: master
commit 15798a8e5cf91b54179dd0140693839b92bd017b Author: twang4 <email address hidden> Date: Tue Dec 5 15:32:49 2023 +0800
Disallow using regular expression chars for system/peer-group/group name
Fix it allows user using regular expression chars for peer-group/system-peer/subcloud-group name
Test plan: - PASS: add/update subcloud-peer-group --peer-group-name with regular expression chars failed. - PASS: add/update subcloud-peer-group --peer-group-name without regular expression chars success. - PASS: add/update system-peer --peer-name with regular expression chars failed. - PASS: add/update system-peer --peer-name without regular expression chars success. - PASS: add/update subcloud-group --name with regular expression chars failed. - PASS: add/update subcloud-group --name without regular expression chars success.
Closes-Bug: 2045627
Change-Id: Id338ef7a7cd23bf1eede1f5ed8cea129bd00ec67 Signed-off-by: Wang Tao <email address hidden>
Reviewed: https:/ /review. opendev. org/c/starlingx /distcloud/ +/902616 /opendev. org/starlingx/ distcloud/ commit/ 15798a8e5cf91b5 4179dd014069383 9b92bd017b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 15798a8e5cf91b5 4179dd014069383 9b92bd017b
Author: twang4 <email address hidden>
Date: Tue Dec 5 15:32:49 2023 +0800
Disallow using regular expression chars for system/ peer-group/ group name
Fix it allows user using regular expression chars for group/system- peer/subcloud- group name
peer-
Test plan:
- PASS: add/update subcloud-peer-group --peer-group-name
with regular expression chars failed.
- PASS: add/update subcloud-peer-group --peer-group-name
without regular expression chars success.
- PASS: add/update system-peer --peer-name
with regular expression chars failed.
- PASS: add/update system-peer --peer-name
without regular expression chars success.
- PASS: add/update subcloud-group --name
with regular expression chars failed.
- PASS: add/update subcloud-group --name
without regular expression chars success.
Closes-Bug: 2045627
Change-Id: Id338ef7a7cd23b f1eede1f5ed8cea 129bd00ec67
Signed-off-by: Wang Tao <email address hidden>