stable

Clone or download

Read-only

Add support for Azure specifics for MySQL

MySQL in MSFT Azure has a constraint related to usernames. They must be defined with '@dbname' at call site. For instance Given GRANT SELECT ON tuleap.users TO alice@'%'; Alice must connect like: mysql -hsome-db.mysql.database.azure.com -ualice@some-db... Notice the 'alice@some-db' at call site... So we introduce a dedicated switch --azure-suffix to be used when targeting an install on MSFT Azure (it's not like it's the first time we have to implement Azure specific stuff anyway). As the stuff becomes quite tricky (Grants different from conf files) the generation/modifications of configuration files related to database is now handled by the init command that is happy to have a dozen of arguments now. As it's really messy to get stuff right on setup + DB I decided to remove the badly named --web-server-ip option of setup as: - either it's a DB in localhost and your DB shouldn't be reachable anyway - or it's a remote DB and it's unlikely that you want to tight your application server to one IP. We are in the Cloud area, application servers change so are their IPs. Sad part of story #14768 have a tuleap enterprise edition docker image production ready Change-Id: Ia8256d3d6a2268bd884879e7099caf417fdadd30

Modified Files

Name
M plugins/tee_container/include/StartContainerCommand.php +0 −1 Go to diff View file
M src/tuleap-cfg/Command/Docker/Tuleap.php +1 −2 Go to diff View file
M src/tuleap-cfg/Command/DockerAioRunCommand.php +1 −1 Go to diff View file
M src/tuleap-cfg/Command/SetupMysql/ConnectionManager.php +13 −5 Go to diff View file
M src/tuleap-cfg/Command/SetupMysql/ConnectionManagerInterface.php +2 −3 Go to diff View file
A src/tuleap-cfg/Command/SetupMysql/DBWrapperInterface.php +48 −0 Go to diff View file
A src/tuleap-cfg/Command/SetupMysql/EasyDBWrapper.php +65 −0 Go to diff View file
M src/tuleap-cfg/Command/SetupMysql/StatementLoader.php +3 −5 Go to diff View file
M src/tuleap-cfg/Command/SetupMysqlCommand.php +0 −5 Go to diff View file
M src/tuleap-cfg/Command/SetupMysqlInitCommand.php +163 −105 Go to diff View file
M tests/e2e/full/tuleap/setup.sh +1 −1 Go to diff View file
M tests/integration/bin/run.sh +3 −3 Go to diff View file
M tests/integration/bin/setup.sh +1 −1 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/SetupMysqlInitCommandAzureTest.php +181 −0 Go to diff View file
M tests/phpunit/tuleap-cfg/Command/SetupMysqlInitCommandTest.php +96 −42 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/TestConnectionManager.php +54 −0 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/TestDBWrapper.php +71 −0 Go to diff View file
M tests/rest/bin/run.sh +2 −2 Go to diff View file
M tests/rest/bin/setup.sh +1 −1 Go to diff View file
M tests/soap/bin/run.sh +1 −1 Go to diff View file
M tests/soap/bin/setup.sh +1 −1 Go to diff View file
M tools/setup.el7.sh +2 −10 Go to diff View file
M tools/setup.sh +1 −1 Go to diff View file
M tools/setup/el7/include/check.sh +0 −8 Go to diff View file
M tools/setup/el7/include/define.sh +0 −1 Go to diff View file
M tools/setup/el7/include/options.sh +1 −6 Go to diff View file
M tools/setup/el7/include/plugins.sh +0 −12 Go to diff View file