* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
- *
+ *
* FusionForge is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
+ */
-/*
+/*
* Standard Alcatel-Lucent disclaimer for contributing to open source
- *
+ *
* "The test suite ("Contribution") has not been tested and/or
* validated for release as or in products, combinations with products or
* other commercial use. Any use of the Contribution is entirely made at
* the user's own responsibility and the user can not rely on any features,
* functionalities or performances Alcatel-Lucent has attributed to the
* Contribution.
- *
+ *
* THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
* OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
function testSvnCommit2Tracker()
{
/*
- * Create a projectA,
+ * Create a projectA,
* Activate SCM & commit plugin.
* Make a commit
* Verify that commit email has been correctly send/stored.
$this->populateStandardTemplate('trackers');
$this->initSvn();
$this->activatePlugin('svntracker');
- $this->login('admin');
+ $this->login(FORGE_ADMIN_USERNAME);
$this->open(ROOT);
$this->clickAndWait("link=ProjectA");
$this->click("use_scm");
$this->click("use_svntracker");
$this->clickAndWait("submit");
-
+
$this->open(ROOT);
$this->clickAndWait("link=ProjectA");
$this->clickAndWait("link=Tracker");
$this->clickAndWait("submit");
// Run the svn create to get the repository with the hooks.
- $this->cron("cronjobs/create_scm_repos.php");
+ $this->cron("create_scm_repos.php");
$svn = "svn";
$url = URL."svn/projecta/";
system("rm -fr /tmp/svn.test");
mkdir("/tmp/svn.test");
- system("cd /tmp/svn.test; $svn --username admin --password myadmin co $url >/dev/null", $ret);
+ system("cd /tmp/svn.test; $svn --username ".FORGE_ADMIN_USERNAME." --password ".FORGE_ADMIN_PASSWORD." co $url >/dev/null", $ret);
$this->assertEquals($ret, 0);
system("echo 'this is a simple text' > /tmp/svn.test/projecta/mytext.txt");
-
+
system("cd /tmp/svn.test/projecta; $svn add mytext.txt >/dev/null", $ret);
$this->assertEquals($ret, 0);
-
- system("cd /tmp/svn.test/projecta; $svn --username admin --password myadmin ci -m 'Fixed [#1] added mytext' >/dev/null", $ret);
+
+ system("cd /tmp/svn.test/projecta; $svn --username ".FORGE_ADMIN_USERNAME." --password ".FORGE_ADMIN_PASSWORD." ci -m 'Fixed [#1] added mytext' >/dev/null", $ret);
$this->assertEquals($ret, 0);
-
+
system("echo 'with a new line' >> /tmp/svn.test/projecta/mytext.txt");
- system("cd /tmp/svn.test/projecta; $svn --username admin --password myadmin ci -m 'Improved [#1] updated mytext' >/dev/null", $ret);
+ system("cd /tmp/svn.test/projecta; $svn --username ".FORGE_ADMIN_USERNAME." --password ".FORGE_ADMIN_PASSWORD." ci -m 'Improved [#1] updated mytext' >/dev/null", $ret);
$this->assertEquals($ret, 0);
system("rm -fr /tmp/svn.test");