stable

Clone or download

Read-only

Hardening of username and project name generation

It's better to avoid generating a login or project name that won't be valid. Note: it's far from being comprehensive, the list of rules is likely to increase as we test Part of story #11279 Create a test project and a test user automatically Change-Id: I7a2847d92895a835bc4a609c977fe322fc3dcf0e

Modified Files

Name
M plugins/create_test_env/include/CreateTestEnv/CreateTestEnvironment.php +5 −3 Go to diff View file
M plugins/create_test_env/include/CreateTestEnv/CreateTestProject.php +41 −2 Go to diff View file
M plugins/create_test_env/include/CreateTestEnv/CreateTestUser.php +16 −8 Go to diff View file
M plugins/create_test_env/include/CreateTestEnv/Exception/EmailNotUniqueException.php +1 −1 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/InvalidInputException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/InvalidProjectFullNameException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/InvalidProjectUnixNameException.php +27 −0 Go to diff View file
M plugins/create_test_env/include/CreateTestEnv/Exception/InvalidRealNameException.php +1 −1 Go to diff View file
M plugins/create_test_env/include/CreateTestEnv/REST/CreateTestEnvResource.php +36 −3 Go to diff View file
M plugins/create_test_env/include/CreateTestEnv/REST/TestEnvironmentRepresentation.php +8 −0 Go to diff View file
M plugins/create_test_env/include/autoload.php +5 −2 Go to diff View file
A plugins/create_test_env/phpunit/.simpletest_skip +0 −0 Go to diff View file
A plugins/create_test_env/phpunit/CreateTestEnv/CreateTestProjectTest.php +64 −0 Go to diff View file
A plugins/create_test_env/phpunit/CreateTestEnv/CreateTestUserTest.php +48 −0 Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 Go to diff View file