[Ovirt-devel] Re: [PATCH server] build correct db using configured rails env in ovirt-server-install
jguiditt at redhat.com
Tue Nov 11 21:38:39 UTC 2008
On Mon, 2008-11-10 at 14:29 -0500, Mohammed Morsi wrote:
> Mohammed Morsi wrote:
> > set RAILS_ENV in conf/ovirt-rails.sysconf before building
> > ---
> This patch is needed to fix the test suite and useful just for general
> After it is applied, anyone (including autobuild) can set their server
> to be in the 'development' or any other mode as when building a new rpm.
> oVirt will pick this up and create / configure the appropriate database
> and set rails to run in the proper environment. Many of the 'rake'
> features, particularly those relating to testing, default to generating
> a schema from the 'development' database before creating the test one.
> This will fix selenium and a few other tests as well, since the
> environment can be set to development during the build phase, the
> application's user, as defined in the application controller, will be
> statically set to ovirtadmin, thus manual authentication will not be
> required (obviously a problem for autobuild)
I can't speak to the code style for the script, but ACK to
functionality. I tested this both in default (production) configuration
and development mode, both worked fine, created the appropriate db and
wui was usable.
More information about the ovirt-devel