[Rt-commit] rt branch, 4.0/installer-with-dba-password, updated. rt-4.0.8-266-gf5e81e3

Alex Vandiver alexmv at bestpractical.com
Wed Dec 19 12:12:53 EST 2012


The branch, 4.0/installer-with-dba-password has been updated
       via  f5e81e3d9845e25af3ca61601eb1ff60d81ab77c (commit)
      from  c84cb8e27a06dc9cd328f897edf7d67023011b09 (commit)

Summary of changes:
 t/web/installer.t | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit f5e81e3d9845e25af3ca61601eb1ff60d81ab77c
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Dec 19 12:07:26 2012 -0500

    The installer knows to not prompt for DBA username/password
    
    This means that $m->submit_form(with_fields => {...}) fails under
    SQLite, as the fields do not exist.  Add an exception for SQLite because
    of this.

diff --git a/t/web/installer.t b/t/web/installer.t
index 0cae8a6..a9c1caa 100644
--- a/t/web/installer.t
+++ b/t/web/installer.t
@@ -51,10 +51,14 @@ diag "Walking through install screens setting defaults";
 
     # Database details
     $m->content_contains('DatabaseName');
-    $m->submit_form(with_fields => {
-        DatabaseAdmin         => $ENV{RT_DBA_USER},
-        DatabaseAdminPassword => $ENV{RT_DBA_PASSWORD},
-    });
+    if (RT->Config->Get('DatabaseType') eq 'SQLite') {
+        $m->submit;
+    } else {
+        $m->submit_form(with_fields => {
+            DatabaseAdmin         => $ENV{RT_DBA_USER},
+            DatabaseAdminPassword => $ENV{RT_DBA_PASSWORD},
+        });
+    }
     $m->content_contains('Connection succeeded');
     $m->submit_form_ok({ button => 'Next' });
 

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


More information about the Rt-commit mailing list