-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] Support more generic tenant code when create tenant #9634
Conversation
could you add some test on it? |
there are already test cases, so I didn't add |
I do not think so, if you change the rule, you should change the case too. In this case, you should add at least one test case with username contain char |
i agree with you,i will add testcase |
@zhongjiajie I have added test cases |
Codecov Report
@@ Coverage Diff @@
## dev #9634 +/- ##
============================================
- Coverage 40.01% 40.00% -0.01%
+ Complexity 4475 4473 -2
============================================
Files 835 835
Lines 33550 33550
Branches 3710 3710
============================================
- Hits 13426 13423 -3
- Misses 18876 18881 +5
+ Partials 1248 1246 -2
Continue to review full report at Codecov.
|
Kudos, SonarCloud Quality Gate passed!
|
@@ -28,10 +28,10 @@ public class RegexUtilsTest { | |||
@Test | |||
public void testIsValidLinuxUserName() { | |||
String name1 = "10000"; | |||
Assert.assertFalse(RegexUtils.isValidLinuxUserName(name1)); | |||
Assert.assertTrue(RegexUtils.isValidLinuxUserName(name1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find out that you change de previous logic, and it support the user name start with number now?
… error
Purpose of the pull request
[Fix-9633][TenantManage/CreateTenant] Create a tenant is prompting an error
Brief change log
close #9633
Verify this pull request
Manually verified the change by testing locally