Federico Ressi | 71bda86 | 2018-05-28 11:38:56 +0200 | [diff] [blame] | 1 | # Directory where this plugin.sh file is |
| 2 | NEUTRON_TEMPEST_PLUGIN_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) |
| 3 | |
| 4 | source "${NEUTRON_TEMPEST_PLUGIN_DIR}/customize_image.sh" |
| 5 | |
Jens Harbott | 228d5b8 | 2017-12-06 12:03:09 +0000 | [diff] [blame] | 6 | # install_neutron_tempest_plugin |
| 7 | function install_neutron_tempest_plugin { |
| 8 | setup_dev_lib "neutron-tempest-plugin" |
Jens Harbott | 228d5b8 | 2017-12-06 12:03:09 +0000 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | if [[ "$1" == "stack" ]]; then |
| 12 | case "$2" in |
| 13 | install) |
Bernard Cafarelli | 0bdc63d | 2020-04-20 16:31:14 +0200 | [diff] [blame] | 14 | if [[ "$INSTALL_TEMPEST" == "True" ]]; then |
| 15 | echo_summary "Installing neutron-tempest-plugin" |
| 16 | install_neutron_tempest_plugin |
| 17 | fi |
Jens Harbott | 228d5b8 | 2017-12-06 12:03:09 +0000 | [diff] [blame] | 18 | ;; |
Slawek Kaplonski | da17f00 | 2018-10-11 18:35:23 +0200 | [diff] [blame] | 19 | test-config) |
| 20 | echo_summary "Configuring neutron-tempest-plugin tempest options" |
| 21 | configure_advanced_image |
Slawek Kaplonski | 7e5923a | 2021-10-08 16:05:21 +0200 | [diff] [blame] | 22 | create_flavor_for_advance_image $ADVANCED_INSTANCE_TYPE 256 4 1 |
Slawek Kaplonski | da17f00 | 2018-10-11 18:35:23 +0200 | [diff] [blame] | 23 | configure_flavor_for_advanced_image |
Jens Harbott | 228d5b8 | 2017-12-06 12:03:09 +0000 | [diff] [blame] | 24 | esac |
| 25 | fi |