Restore TripleO CI jobs using new Tobiko role

Run faults and scenario test cases using Tobiko role

Change-Id: I551969bdea7cdebbc1914c5f1753c4fd9ae1dfad
This commit is contained in:
Federico Ressi 2019-11-15 17:45:06 +01:00
parent 1d6ee9e318
commit 16c32e366b
5 changed files with 99 additions and 28 deletions

View File

@ -0,0 +1,10 @@
---
- hosts: all
roles:
- name: collect tobiko test case results
role: tobiko
vars:
tobiko_pre_run: false
tobiko_run: false
tobiko_post_run: true

View File

@ -0,0 +1,21 @@
---
- hosts:
- primary
roles:
- name: install python3-devel and other requirements
role: bindep
- name: import tripleo-ci common role
role: common
- name: install tripleo
role: run-test
- name: prepare environment to run Tobiko test cases
role: tobiko
vars:
tobiko_pre_run: true
tobiko_run: false
tobiko_post_run: false

View File

@ -0,0 +1,26 @@
# Copyright 2020 Red Hat
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
---
- hosts:
- primary
roles:
- name: run Tobiko test cases
role: tobiko
vars:
tobiko_pre_run: false
tobiko_run: true
tobiko_post_run: false

View File

@ -21,9 +21,13 @@
- tobiko-devstack-faults-centos-7 - tobiko-devstack-faults-centos-7
- tobiko-devstack-faults-ubuntu-bionic - tobiko-devstack-faults-ubuntu-bionic
- tobiko-tox-infrared-centos-7 - tobiko-tox-infrared-centos-7
- tobiko-tripleo-functional
- tobiko-tripleo-faults
gate: gate:
jobs: jobs:
- tobiko-devstack-functional - tobiko-devstack-functional
- tobiko-tripleo-functional
experimental: experimental:
jobs: jobs:

View File

@ -2,27 +2,51 @@
name: tobiko-tripleo name: tobiko-tripleo
abstract: true abstract: true
description: Base Tobiko TripleO job description: Base Tobiko TripleO job
parent: tripleo-ci-base-standalone parent: tripleo-ci-centos-7-standalone
nodeset: single-centos-7-node
required-projects: required-projects:
- opendev.org/x/tobiko - openstack/tripleo-ci
voting: false - x/tobiko
branches: ^(?!stable/(newton|ocata|pike|queens)).*$
pre-run: playbooks/tripleo/pre.yaml
run: playbooks/tripleo/run.yaml
post-run: playbooks/tripleo/post.yaml
vars: vars:
tobiko_conf:
keystone:
cloud_name: standalone
featureset: '052' featureset: '052'
featureset_override: featureset_override:
run_tempest: false run_tempest: false
# Tempest variable to provide cloud name is also used by use_os_tempest: false
# Tobiko's playbook
tempest_cloud_name: "standalone"
standalone_environment_files: standalone_environment_files:
- 'environments/low-memory-usage.yaml' - 'environments/low-memory-usage.yaml'
- 'ci/environments/scenario002-standalone.yaml' - 'ci/environments/scenario002-standalone.yaml'
playbooks: playbooks:
- quickstart.yml - quickstart.yml
- multinode-standalone.yml - multinode-standalone.yml
- tobiko.yml run_test_role_vars:
build_test_packages: false
artg_skipped_projects:
- openstack/puppet-openstack-integration
- openstack/puppet-watcher
- openstack/tripleo-quickstart
- openstack/tripleo-quickstart-extras
- openstack/tripleo-upgrade
- x/browbeat
- openstack/tripleo-ha-utils
- openstack/grenade
- openstack/project-config
- openstack/tripleo-ci
- zuul/zuul-jobs
- openstack/openstack-virtual-baremetal
- openstack/openstack-ansible-os_tempest
- openstack/ansible-role-python_venv_build
- openstack/ansible-config_template
- openstack/ansible-role-collect-logs
- openstack/tripleo-ci-internal-jobs
- openstack/tripleo-ci-internal-config
- tripleo-environments
- x/tobiko
- job: - job:
name: tobiko-tripleo-functional name: tobiko-tripleo-functional
@ -37,29 +61,15 @@
name: tobiko-tripleo-scenario name: tobiko-tripleo-scenario
description: Scenario testing Tobiko TripleO job description: Scenario testing Tobiko TripleO job
parent: tobiko-tripleo parent: tobiko-tripleo
voting: true abstract: true
vars: vars:
tox_envlist: scenario tox_envlist: scenario
- job: - job:
name: tobiko-tripleo-upgrade name: tobiko-tripleo-faults
description: Scenario testing Tobiko TripleO upgrade job description: OS faults and scenario testing Tobiko TripleO job
parent: tobiko-tripleo-scenario parent: tobiko-tripleo-scenario
voting: false voting: false
vars: vars:
playbooks: tobiko_run_faults: true
- quickstart.yml
- multinode-standalone.yml
- tobiko.yml
- multinode-standalone-upgrade.yml
- tobiko.yml
- job:
name: tobiko-tripleo-faults
description: OS faults and scenario testing Tobiko TripleO job
parent: tobiko-tripleo
voting: false
vars:
tox_envlist: scenario,faults