File: plugin.sh

package info (click to toggle)
neutron-tempest-plugin 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,964 kB
  • sloc: python: 22,740; sh: 289; makefile: 21
file content (25 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Directory where this plugin.sh file is
NEUTRON_TEMPEST_PLUGIN_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)

source "${NEUTRON_TEMPEST_PLUGIN_DIR}/customize_image.sh"

# install_neutron_tempest_plugin
function install_neutron_tempest_plugin {
    setup_dev_lib "neutron-tempest-plugin"
    install_customize_image_tools
}

if [[ "$1" == "stack" ]]; then
    case "$2" in
        install)
            if [[ "$INSTALL_TEMPEST" == "True" ]]; then
                echo_summary "Installing neutron-tempest-plugin"
                install_neutron_tempest_plugin
            fi
            ;;
        test-config)
            echo_summary "Configuring neutron-tempest-plugin tempest options"
            configure_advanced_image
            configure_flavor_for_advanced_image
    esac
fi