73d39dc8ce
We want to allow operators to override Horizon's default settings. This involves moving local_settings.d out of the read only snap filesystem, and into $SNAP_COMMON. This is a little bit tricky. First, we patch settings.py and local_settings.py as we're building the snap, to include a LOCAL_PATH in $SNAP_COMMON. Then, we add a template with the rest of our default overrides, and write it out to $SNAP_COMMON/horizon/local_settings.d Finally we tweak our tests so that we can give our overrides a spin. As a bonus, this makes test_horizonglogin.py a lot easier to run in our multipass testing scenario! `tox -e basic` now also runs selenium tests, as well. Change-Id: Ic0ce18cfa1b97a93191da749095d8aa2270d5aeb
20 lines
426 B
Bash
Executable File
20 lines
426 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
export PATH=/snap/bin:$PATH
|
|
|
|
sudo apt update
|
|
|
|
# Install the X virtual framebuffer, which is required for selenium
|
|
# tests of the horizon dashboard.
|
|
sudo apt install -y xvfb npm libfontconfig1
|
|
sudo npm install -g phantomjs-prebuilt
|
|
# Verify that PhantomJS, our selenium web driver, works.
|
|
phantomjs -v
|
|
|
|
sudo snap install --classic snapcraft
|
|
sudo snap install --classic --beta multipass
|
|
|
|
snapcraft --debug
|