stable

Clone or download

Read-only

story #11279 Create a test project and a test user automatically

This plugin allows to create a new user with a test project with a few basic informations related to this user. Everything is named after the user. You will need to deploy the sudoers file: install -o root -g root -m 0400 /usr/share/tuleap/plugins/create_test_env/etc/sudoers.d/tuleap_plugin_create_test_env /etc/sudoers.d/ At first REST call, a secret will be generated at /etc/tuleap/plugins/create_test_env/etc/creation_secret You will need this secret to create projects Update management of errors in import_project_xml so exception raised on parse are reported as error on command line (exit code != 0) Change-Id: I81413286c8260bacea91b6a1c3f83283cc76a162

Modified Files

Name
A plugins/create_test_env/README.mkd +4 −0 Go to diff View file
A plugins/create_test_env/VERSION +1 −0 Go to diff View file
A plugins/create_test_env/etc/sudoers.d/tuleap_plugin_create_test_env +3 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/CreateTestEnvironment.php +106 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/CreateTestProject.php +63 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/CreateTestProjectPresenter.php +38 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/CreateTestUser.php +114 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/CreateTestEnvException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/EmailNotUniqueException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/InvalidRealNameException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/ProjectImportFailureException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/ProjectNotCreatedException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/UnableToCreateTemporaryDirectoryException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Exception/UnableToWriteFileException.php +27 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Plugin/PluginDescriptor.php +36 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/Plugin/PluginInfo.php +32 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/REST/CreateTestEnvResource.php +118 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/REST/ResourcesInjector.php +30 −0 Go to diff View file
A plugins/create_test_env/include/CreateTestEnv/REST/TestEnvironmentRepresentation.php +60 −0 Go to diff View file
A plugins/create_test_env/include/autoload.php +34 −0 Go to diff View file
A plugins/create_test_env/include/create_test_envPlugin.class.php +58 −0 Go to diff View file
A plugins/create_test_env/resources/sample-project/project.xml +869 −0 Go to diff View file
A plugins/create_test_env/site-content/fr_FR/LC_MESSAGES/tuleap-create_test_env.po +19 −0 Go to diff View file
A plugins/create_test_env/site-content/tuleap-create_test_env.pot +5 −0 Go to diff View file
M src/utils/import_project_xml.php +19 −18 Go to diff View file
M tools/rpm/tuleap.rhel6.spec +1 −0 Go to diff View file
M tools/rpm/tuleap.rhel7.spec +1 −0 Go to diff View file