Native dashboard-integration test

The test is failing right now, but apart the increased time
at least the tests are executed.

Story: 2001686
Task: 8662

Change-Id: I311203779bd3e6c6660cfe1b84e89c7dc0825c98
This commit is contained in:
Luigi Toscano 2018-09-03 15:20:08 +02:00
parent 07823ed09a
commit 62f5bec972
10 changed files with 105 additions and 1 deletions

View File

@ -9,7 +9,7 @@
jobs:
- sahara-dashboard-tox-py35dj20:
voting: false
- legacy-sahara-dashboard-dsvm-integration:
- sahara-dashboard-integration:
voting: false
- job:
@ -28,3 +28,28 @@
parent: sahara-dashboard-tox-base
vars:
tox_envlist: py35dj20
- job:
name: sahara-dashboard-integration
parent: devstack
required-projects:
- openstack/heat
- openstack/horizon
- openstack/sahara
- openstack/sahara-dashboard
roles:
- zuul: openstack/horizon
vars:
devstack_plugins:
sahara: 'git://git.openstack.org/openstack/sahara'
sahara-dashboard: 'git://git.openstack.org/openstack/sahara-dashboard'
heat: 'git://git.openstack.org/openstack/heat'
devstack_services:
horizon: true
tls-proxy: false
pre-run: playbooks/sahara-dashboard-integration/pre.yaml
run: playbooks/sahara-dashboard-integration/run.yaml
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- ^releasenotes/.*$

View File

@ -34,3 +34,11 @@ python3.5 [platform:ubuntu-xenial]
uuid-dev [platform:dpkg]
zlib-devel [platform:rpm]
zlib1g-dev [platform:dpkg]
# integration tests
firefox [integrationtests]
dbus [integrationtests platform:redhat]
dbus-1 [integrationtests platform:suse]
xvfb [integrationtests platform:dpkg]
# already part of xorg-x11-server on openSUSE
xorg-x11-server-Xvfb [integrationtests platform:redhat]

View File

@ -0,0 +1,8 @@
---
- hosts: controller
roles:
- role: bindep
bindep_profile: integrationtests
become: true
- setup-selenium-tests
- setup-sahara-ui-integration

View File

@ -0,0 +1,11 @@
---
- hosts: all
strategy: linear
roles:
- orchestrate-devstack
- hosts: controller
roles:
- post-devstack-sahara-ui-integration
- role: tox
tox_envlist: py27integration

View File

@ -0,0 +1,4 @@
---
devstack_base_dir: "/opt/stack"
sahara_cloud_admin: "devstack-admin"
sahara_cloud_demo: "devstack"

View File

@ -0,0 +1,7 @@
{
"plugin_labels": {
"hidden": {
"status": false
}
}
}

View File

@ -0,0 +1,10 @@
---
- name: copy the updated config snipped which enables the fake plugin
copy:
src: fake_config.json
dest: /tmp/sahara_fake_config.json
- name: change the config of the fake plugin
shell: |
openstack --os-cloud {{ sahara_cloud_admin }} --os-project-name demo \
dataprocessing plugin update fake /tmp/sahara_fake_config.json

View File

@ -0,0 +1,5 @@
---
devstack_base_dir: "/opt/stack"
sahara_cloud_image: "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img"
# TODO: if the following option is changed, it should also be specified in tempest.conf
sahara_cloud_image_remote_path: "/tmp/xenial-server-cloudimg-amd64-disk1.img"

View File

@ -0,0 +1,5 @@
[image]
panel_type=legacy
[flavors]
panel_type=legacy

View File

@ -0,0 +1,21 @@
---
- name: download the ubuntu image file
get_url:
url: "{{ sahara_cloud_image }}"
dest: "{{ sahara_cloud_image_remote_path }}"
# enable legacy panels (two files in local/local_settings.d and a new setting file
# for the integration tests)
- name: setup the old behavior of tables for testing purposes
copy:
src: "{{ devstack_base_dir }}/horizon/openstack_dashboard/local/local_settings.d/{{ item }}.example"
dest: "{{ devstack_base_dir }}/horizon/openstack_dashboard/local/local_settings.d/{{ item }}"
remote_src: yes
with_items:
- '_20_integration_tests_scaffolds.py'
- '_2010_integration_tests_deprecated.py'
- name: setup the old behavior of panels for testing purposes
copy:
src: legacy_panels.conf
dest: "{{ devstack_base_dir }}/horizon/openstack_dashboard/test/integration_tests/local-horizon.conf"