openmainframeproject / feilong

Feilong is a open source z/VM cloud connector project under the Open Mainframe Project umbrella that will accelerate the z/VM adoption, extending its ecosystem and its user experience. It provides a set of APIs to operate z/VM including guest, image, network, volume etc.
https://www.openmainframeproject.org/projects/feilong
Apache License 2.0
35 stars 70 forks source link

[master]Change userid pattern to only support letters and numbers #802

Closed trenxiaof closed 7 months ago

trenxiaof commented 7 months ago

The character underline(_) is not supported by smapi, so remove it and only support letters and numbers.

trenxiaof commented 7 months ago

@bjhuangr @jichenjc @SeanHQF please help review, the issue is: https://github.ibm.com/zvc/planning/issues/15225#issuecomment-69477716

there're 2 solution for z/VM, after discussing with @SeanHQF, select 2, only support letters and numbers for z/VM userid(currently, the pattern is letters, numbers and underline)

jichenjc commented 7 months ago

do you want to add some Unit test for this ?

trenxiaof commented 7 months ago

do you want to add some Unit test for this ?

have added the cases to test the invalid userid, it can raise the regex patter not match errors.