"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml" (20 Jul 2020, 3479 Bytes) of package /linux/misc/openstack/manila-8.1.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "run.yaml": 8.1.2_vs_8.1.3.

    1 - hosts: all
    2   name: Autoconverted job manila-tempest-minimal-dsvm-dummy from old job gate-manila-tempest-minimal-dsvm-dummy-ubuntu-xenial
    3   tasks:
    4 
    5     - name: Ensure legacy workspace directory
    6       file:
    7         path: '{{ ansible_user_dir }}/workspace'
    8         state: directory
    9 
   10     - shell:
   11         cmd: |
   12           set -e
   13           set -x
   14           cat > clonemap.yaml << EOF
   15           clonemap:
   16             - name: openstack/devstack-gate
   17               dest: devstack-gate
   18           EOF
   19           /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
   20               https://opendev.org \
   21               openstack/devstack-gate
   22         executable: /bin/bash
   23         chdir: '{{ ansible_user_dir }}/workspace'
   24       environment: '{{ zuul | zuul_legacy_vars }}'
   25 
   26     - shell:
   27         cmd: |
   28           set -e
   29           set -x
   30           cat << 'EOF' >>"/tmp/dg-local.conf"
   31           [[local|localrc]]
   32           enable_plugin manila https://opendev.org/openstack/manila
   33           enable_plugin manila-tempest-plugin https://opendev.org/openstack/manila-tempest-plugin
   34 
   35           EOF
   36         executable: /bin/bash
   37         chdir: '{{ ansible_user_dir }}/workspace'
   38       environment: '{{ zuul | zuul_legacy_vars }}'
   39 
   40     - shell:
   41         cmd: |
   42           set -e
   43           set -x
   44           export PYTHONUNBUFFERED=true
   45           export DEVSTACK_GATE_NEUTRON=1
   46           export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
   47           # Basic services needed for minimal job
   48           export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest,tls-proxy
   49 
   50           export DEVSTACK_GATE_USE_PYTHON3=True
   51           export PYTHON3_VERSION="3.6"
   52 
   53           # Keep localrc to be able to set some vars in pre_test_hook
   54           export KEEP_LOCALRC=1
   55           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
   56           export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
   57 
   58           function pre_test_hook {
   59               # 'dhss' - acronym for 'Driver Handles Share Servers',
   60               # defines mode of a share driver. Boolean-like.
   61               # 'driver' - codename of a share driver to configure.
   62               # 'back_end_type' - defines which installation Manila should
   63               # have - either 'singlebackend' or 'multibackend'.
   64               source $BASE/new/manila/contrib/ci/pre_test_hook.sh False dummy multibackend
   65           }
   66           export -f pre_test_hook
   67 
   68           function post_test_hook {
   69               # 'back_end_type' - defines which installation Manila is
   70               # configured to - either 'singlebackend' or 'multibackend'.
   71               # 'driver' - codename of a share driver that is configured in
   72               # Manila. It is used for enabling/disabling tests that are not
   73               # supported by share driver that is used.
   74               # 'test_type' - defines which set of test suites should be used,
   75               # can have 'api' and 'scenario' values.
   76               # 'postgres_enabled' - set of test suites depends on DB backend
   77               # in some cases, so it is provided explicitely. Boolean-like.
   78               source $BASE/new/manila/contrib/ci/post_test_hook.sh multibackend dummy api False
   79           }
   80           export -f post_test_hook
   81 
   82           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
   83           ./safe-devstack-vm-gate-wrap.sh
   84         executable: /bin/bash
   85         chdir: '{{ ansible_user_dir }}/workspace'
   86       environment: '{{ zuul | zuul_legacy_vars }}'