skyline-console/playbooks/devstack/compute/run-e2etests.yaml
zhu.boxiang f7e4b18413 feat: Support devstack integrated e2e tests
1. add skyline-console-devstack-e2etests-compute into check and gate job
2. add skyline-console-devstack-e2etests-network into check and gate job
3. add skyline-console-devstack-e2etests-other into check and gate job
4. add skyline-console-devstack-e2etests-storage into check and gate job
5. add e2e into Makefile

Change-Id: Ida9542129231f7a61d796495d826fc05ddee0abf
2021-10-25 18:34:48 +08:00

29 lines
1014 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-compute.yaml $config_file
sed -i "s#baseUrl.*#baseUrl: https://127.0.0.1:9999#" $config_file
sed -i "s/- ironic/# - ironic/" $config_file
# TODO
sed -i "s#- pages/compute/image.spec.js#\#- pages/compute/image.spec.js#" $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