From 2fd22b8dc0d436785f575016b10e90ed22a3ce14 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Fri, 28 Mar 2014 16:05:36 +0100 Subject: [PATCH] fixing alternc-awstats shell: using BASH --- debian/alternc-awstats.postinst | 2 +- debian/alternc.postinst | 4 +- selenium/alternc-1.0-1-create.html | 180 +++++++++++++++++++++++++++- selenium/alternc-1.0-1-destroy.html | 45 ++++++- 4 files changed, 221 insertions(+), 10 deletions(-) diff --git a/debian/alternc-awstats.postinst b/debian/alternc-awstats.postinst index 396ace7a..8a9b7cce 100755 --- a/debian/alternc-awstats.postinst +++ b/debian/alternc-awstats.postinst @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # Uses debconf . /usr/share/debconf/confmodule diff --git a/debian/alternc.postinst b/debian/alternc.postinst index 9653e192..ee7b4513 100644 --- a/debian/alternc.postinst +++ b/debian/alternc.postinst @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e # Source debconf library. . /usr/share/debconf/confmodule diff --git a/selenium/alternc-1.0-1-create.html b/selenium/alternc-1.0-1-create.html index 90685ec4..2888abe3 100644 --- a/selenium/alternc-1.0-1-create.html +++ b/selenium/alternc-1.0-1-create.html @@ -111,6 +111,121 @@ link=Click here to continue + + clickAndWait + link=test1.vm1.alternc.eu + + + + clickAndWait + xpath=(//a[contains(text(),'Delete')])[4] + + + + assertText + css=p.error + WARNING : Confirm the deletion of the subdomain : + + + clickAndWait + name=confirm + + + + clickAndWait + link=Click here to continue + + + + clickAndWait + css=tr.lst1 > td.center > div.ina > a + + + + click + id=r_vhost + + + + type + id=t_vhost + /test1vm1alternceu/ + + + clickAndWait + name=add + + + + clickAndWait + link=FTP accounts list + + + + assertText + css=#content > h3 + FTP accounts list + + + clickAndWait + css=span.inb > a + + + + assertText + css=#content > h3 + Create a new ftp account + + + type + id=dir + / + + + type + id=pass + poipoi + + + type + id=passconf + poipoi + + + clickAndWait + name=submit + + + + assertText + css=p.error + The FTP account has been successfully created + + + clickAndWait + link=Databases + + + + assertText + css=#content > p + Your haven't created your main database yet, please enter a password to create it. + + + type + id=pass + poipoi + + + clickAndWait + name=submit + + + + assertText + css=p.error + Your database has been successfully created + clickAndWait link=test1.vm1.alternc.eu (1) @@ -282,11 +397,70 @@ 4 Bytes - break - + clickAndWait + css=a > span + + + + clickAndWait + link=Quotas + + + + type + id=q_mailman + 10 + + + clickAndWait + name=submit + + + + assertText + css=p.error + The quotas has been successfully edited + + + clickAndWait + link=Mailing lists + + + + assertText + css=#content > h3 + Mailing lists + + + clickAndWait + link=Create a list + + + + type + id=login + newsletter + + + type + id=owner + user1@test1.vm1.alternc.eu + + + type + id=pass + poipoi + + + type + id=pass2 + poipoi + + + clickAndWait + name=submit - diff --git a/selenium/alternc-1.0-1-destroy.html b/selenium/alternc-1.0-1-destroy.html index f184b73d..acd2ea77 100644 --- a/selenium/alternc-1.0-1-destroy.html +++ b/selenium/alternc-1.0-1-destroy.html @@ -197,11 +197,50 @@ The requested TLD has been deleted - break - + clickAndWait + link=FTP accounts list - + + click + //div[@id='content']/form/table/tbody/tr[2]/td/input + + + + clickAndWait + name=submit + + + + clickAndWait + link=Databases + + + + click + id=del_ + + + + clickAndWait + name=sub + + + + assertText + css=p.error + WARNING
Confirm the deletion of the following SQL databases
This will delete all the tables currently in those db. + + + clickAndWait + name=sub + + + + assertText + css=p.error + The database admin__ has been successfully deleted +