blob: 264043358e3cf1f967c23372d21d08cbedd13e5e [file] [log] [blame]
Kaitlin Farr275af402017-02-15 16:01:47 -05001#!/bin/bash
2#
3# This script is executed inside pre_test_hook function in devstack gate.
4
5set -ex
6
7export DEST=${DEST:-$BASE/new}
8export DEVSTACK_DIR=${DEVSTACK_DIRE:-$DEST/devstack}
9export LOCALCONF_PATH=$DEVSTACK_DIR/local.conf
10
11# Here we can set some configurations for local.conf
12# for example, to pass some config options directly to .conf files
13
dane-fichter5af45592017-02-08 17:29:53 -080014# For image signature verification tests
Kaitlin Farr275af402017-02-15 16:01:47 -050015echo -e '[[post-config|$NOVA_CONF]]' >> $LOCALCONF_PATH
16echo -e '[glance]' >> $LOCALCONF_PATH
17echo -e 'verify_glance_signatures = True' >> $LOCALCONF_PATH
18
dane-fichter5af45592017-02-08 17:29:53 -080019# Allow dynamically created tempest users to create secrets
20# in barbican
21echo -e '[[test-config|$TEMPEST_CONFIG]]' >> $LOCALCONF_PATH
22echo -e '[auth]' >> $LOCALCONF_PATH
23echo -e 'tempest_roles=creator' >> $LOCALCONF_PATH
24# Glance v1 doesn't do signature verification on image upload
25echo -e '[image-feature-enabled]' >> $LOCALCONF_PATH
26echo -e 'api_v1=False' >> $LOCALCONF_PATH