Jingwei.Zhang 14381f0e59 test: add share type e2e case
1. Add share type e2e case
2. Update e2e test config for manila codes: only run the other e2e zuul task when the manila related codes change

Change-Id: Ia6d0e232ade38e7f4123a11e7cb4c677a53c961f
2022-07-26 10:35:38 +08:00

29 lines
998 B
YAML

---
- hosts: controller
vars:
- devstack_base_dir: /opt/stack
tasks:
- name: Run e2e tests
shell:
executable: /bin/bash
cmd: |
# use nvm
. $HOME/.nvm/nvm.sh
# make e2e
config_file="test/e2e/config/local_config.yaml"
cp test/e2e/config/config-other.yaml $config_file
sed -i "s#baseUrl.*#baseUrl: https://127.0.0.1:9999#" $config_file
sed -i "s/- heat/# - heat/" $config_file
sed -i "s/- zun/# - zun/" $config_file
sed -i "s/- manila/# - manila/" $config_file
sed -i "s#username:.*#username: admin#" $config_file
sed -i "s#password:.*#password: secretadmin#" $config_file
sed -i "s#usernameAdmin:.*#usernameAdmin: admin#" $config_file
sed -i "s#passwordAdmin:.*#passwordAdmin: secretadmin#" $config_file
make e2e
args:
chdir: "{{ devstack_base_dir }}/skyline-console"
become_user: stack
become: yes