[Fusionforge-commits] FusionForge branch master updated. 106bd51b39186dfc68b48290eb5b90162f45af0b

Roland Mas lolando at fusionforge.org
Mon Apr 28 15:20:26 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  106bd51b39186dfc68b48290eb5b90162f45af0b (commit)
      from  5219ae91a161fd9274fec3c97d128ee0d448a636 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 106bd51b39186dfc68b48290eb5b90162f45af0b
Author: Roland Mas <lolando at debian.org>
Date:   Mon Apr 28 15:20:21 2014 +0200

    No smart-http implementation in master yet

diff --git a/tests/func/PluginsScmGit/gitSmartHTTPTest.php b/tests/func/PluginsScmGit/gitSmartHTTPTest.php
deleted file mode 100644
index b85458b..0000000
--- a/tests/func/PluginsScmGit/gitSmartHTTPTest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-/*
- * Copyright (C) 2012 Roland Mas
- *
- * This file is part of FusionForge.
- *
- * FusionForge is free software; you can redistribute it and/or modify
- * 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
- * General Public License for more details.
- *
- * 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.
- */             
-
-require_once dirname(dirname(__FILE__)).'/Testing/SeleniumGforge.php';
-
-class ScmGitSmartHTTPTest extends FForge_SeleniumTestCase
-{
-	function testScmGitSmartHTTP()
-	{
-		$this->activatePlugin('scmgit');
-		$this->populateStandardTemplate('empty');
-		$this->init();
-
-		$this->open(ROOT);
-		$this->clickAndWait("link=ProjectA");
-		$this->clickAndWait("link=Admin");
-		$this->clickAndWait("link=Tools");
-		$this->clickAndWait("link=Source Code Admin");
-		$this->click("//input[@name='scmradio' and @value='scmgit']");
-		$this->clickAndWait("submit");
-	    
-		// Run the cronjob to create repositories
-		$this->cron("create_scm_repos.php");
-
-		// Get the address of the repo
-		$this->open(ROOT);
-		$this->clickAndWait("link=ProjectA");
-		$this->clickAndWait("link=SCM");
-		$p = $this->getText("//tt[contains(.,'git clone http')]");
-		$p = preg_replace(",^git clone ,", "", $p);
-		$p = preg_replace(",://.*@,", "://root@", $p);
-
-		// Create a local clone, add stuff, push it to the repo
-		$t = exec("mktemp -d /tmp/gitTest.XXXXXX");
-		system("cd $t && git clone --quiet $p", $ret);
-		$this->assertEquals($ret, 0);
-
-		system("echo 'this is a simple text' > $t/projecta/mytext.txt");
-		system("cd $t/projecta && git add mytext.txt && git commit --quiet -a -m'Adding file'", $ret);
-		system("echo 'another simple text' >> $t/projecta/mytext.txt");
-		system("cd $t/projecta && git commit --quiet -a -m'Modifying file'", $ret);
-		$this->assertEquals($ret, 0);
-
-		system("cd $t/projecta && git push --quiet --all", $ret);
-		$this->assertEquals($ret, 0);
-
-		// Check that the changes appear in gitweb
-		$this->open(ROOT.'/plugins/scmgit/cgi-bin/gitweb.cgi?a=project_list;pf=projecta');
-		$this->waitForPageToLoad();
-		$this->assertElementPresent("//.[@class='page_footer']");
-		$this->assertTextPresent("projecta.git");
-		$this->click("link=projecta/projecta.git");
-		$this->waitForPageToLoad();
-		$this->assertTextPresent("Modifying file");
-		$this->assertTextPresent("Adding file");
-
-		system("rm -fr $t");
-	}
-
-	/**
-	 * Method that is called after Selenium actions.
-	 *
-	 * @param  string $action
-	 */
-	protected function defaultAssertions($action)
-	{
-		if ($action == 'waitForPageToLoad') {
-			$this->assertTrue($this->isElementPresent("//h1")
-					  || $this->isElementPresent("//.[@class='page_footer']"));
-		}
-	}
-
-}
-?>

-----------------------------------------------------------------------

Summary of changes:
 tests/func/PluginsScmGit/gitSmartHTTPTest.php |   92 -------------------------
 1 file changed, 92 deletions(-)
 delete mode 100644 tests/func/PluginsScmGit/gitSmartHTTPTest.php


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list