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, 6.0 has been updated
via 06c542e98b3b6ba1e2a50f1ba6f60409abba8267 (commit)
from c69009eae5c8ef36281ef726d1be1046474d188f (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=06c542e98b3b6ba1e2a50f1ba6f60409abba8267
commit 06c542e98b3b6ba1e2a50f1ba6f60409abba8267
Author: Roland Mas <[email protected]>
Date: Wed Jun 17 15:41:54 2015 +0200
Added testsuite for "message" plugin
diff --git a/autoinstall/install-src.sh b/autoinstall/install-src.sh
index c28b2de..cfbc129 100755
--- a/autoinstall/install-src.sh
+++ b/autoinstall/install-src.sh
@@ -57,7 +57,7 @@ fi
make install-base install-shell install-scm \
install-plugin-scmsvn install-plugin-scmgit \
install-plugin-blocks install-plugin-mediawiki install-plugin-moinmoin
\
- install-plugin-online_help install-plugin-taskboard
+ install-plugin-online_help install-plugin-taskboard
install-plugin-message
make post-install
)
diff --git a/autoinstall/install.sh b/autoinstall/install.sh
index a679fbb..98b46bb 100755
--- a/autoinstall/install.sh
+++ b/autoinstall/install.sh
@@ -42,7 +42,8 @@ if [ -e /etc/debian_version ]; then
$APT install fusionforge-shell fusionforge-scm \
fusionforge-plugin-scmgit fusionforge-plugin-scmsvn
fusionforge-plugin-scmbzr \
fusionforge-plugin-mediawiki fusionforge-plugin-moinmoin \
- fusionforge-plugin-blocks fusionforge-plugin-taskboard
+ fusionforge-plugin-blocks fusionforge-plugin-taskboard \
+ fusionforge-plugin-message
if ! dpkg-vendor --is Ubuntu; then
apt-get install locales-all #
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1394929
fi
@@ -57,6 +58,7 @@ else
yum --enablerepo=epel install -y fusionforge fusionforge-shell
fusionforge-scm \
fusionforge-plugin-scmgit fusionforge-plugin-scmsvn \
fusionforge-plugin-mediawiki \
- fusionforge-plugin-blocks fusionforge-plugin-online_help
fusionforge-plugin-taskboard
+ fusionforge-plugin-blocks fusionforge-plugin-online_help
fusionforge-plugin-taskboard \
+ fusionforge-plugin-message
fi
fi
diff --git a/tests/func/60_PluginsMessage/messageTest.php
b/tests/func/60_PluginsMessage/messageTest.php
new file mode 100644
index 0000000..86096ab
--- /dev/null
+++ b/tests/func/60_PluginsMessage/messageTest.php
@@ -0,0 +1,105 @@
+<?php
+/**
+ * Copyright (C) 2015 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.
+ */
+
+/**
+ * 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,
+ * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
+ * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
+ * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
+ * ALONE BASIS."
+ */
+
+require_once dirname(dirname(__FILE__)).'/Testing/SeleniumForge.php';
+
+class MessageTest extends FForge_SeleniumTestCase
+{
+ protected $alreadyActive = 0;
+
+ function testMessage()
+ {
+ $this->_activateMessagePlugin();
+
+ $this->init();
+
+ $this->clickAndWait("link=Site Admin");
+ $this->clickAndWait("link=Configure Global Message");
+ $this->type("//textarea[@name='body']", "Forge under
maintenance, please bear with us.");
+ $this->clickAndWait("//input[@value='Save']");
+
+ $this->open( ROOT );
+ $this->assertTrue($this->isTextPresent("Forge under
maintenance"));
+
+ $this->open( ROOT . '/projects/projecta') ;
+ $this->assertTrue($this->isTextPresent("Forge under
maintenance"));
+
+ $this->clickAndWait("link=Site Admin");
+ $this->clickAndWait("link=Configure Global Message");
+ $this->type("//textarea[@name='body']", "Forge recently
upgraded, please report problems.");
+ $this->clickAndWait("//input[@value='Save']");
+
+ $this->open( ROOT );
+ $this->assertFalse($this->isTextPresent("Forge under
maintenance"));
+ $this->assertTrue($this->isTextPresent("Forge recently
upgraded"));
+
+ $this->open( ROOT . '/projects/projecta') ;
+ $this->assertFalse($this->isTextPresent("Forge under
maintenance"));
+ $this->assertTrue($this->isTextPresent("Forge recently
upgraded"));
+
+ $this->clickAndWait("link=Site Admin");
+ $this->clickAndWait("link=Configure Global Message");
+ $this->type("//textarea[@name='body']", "");
+ $this->clickAndWait("//input[@value='Save']");
+
+ $this->open( ROOT );
+ $this->assertFalse($this->isTextPresent("Forge under
maintenance"));
+ $this->assertFalse($this->isTextPresent("Forge recently
upgraded"));
+
+ $this->open( ROOT . '/projects/projecta') ;
+ $this->assertFalse($this->isTextPresent("Forge under
maintenance"));
+ $this->assertFalse($this->isTextPresent("Forge recently
upgraded"));
+ }
+
+ private function _activateMessagePlugin() {
+ if (! $this->alreadyActive) {
+ $this->activatePlugin('message');
+ $this->alreadyActive = 1;
+ }
+ }
+}
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
-----------------------------------------------------------------------
Summary of changes:
autoinstall/install-src.sh | 2 +-
autoinstall/install.sh | 6 +-
.../messageTest.php} | 81 +++++++++++-----------
3 files changed, 47 insertions(+), 42 deletions(-)
copy tests/func/{60_PluginsBlocks/blocksTest.php =>
60_PluginsMessage/messageTest.php} (54%)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits