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-ubuntu-bionic
- tobiko-tox-infrared-centos-7
- tobiko-tripleo-functional
- tobiko-tripleo-faults
gate:
jobs:
- tobiko-devstack-functional
- tobiko-tripleo-functional
experimental:
jobs:

View File

@ -2,27 +2,51 @@
name: tobiko-tripleo
abstract: true
description: Base Tobiko TripleO job
parent: tripleo-ci-base-standalone
nodeset: single-centos-7-node
parent: tripleo-ci-centos-7-standalone
required-projects:
- opendev.org/x/tobiko
voting: false
branches: ^(?!stable/(newton|ocata|pike|queens)).*$
- openstack/tripleo-ci
- x/tobiko
pre-run: playbooks/tripleo/pre.yaml
run: playbooks/tripleo/run.yaml
post-run: playbooks/tripleo/post.yaml
vars:
tobiko_conf:
keystone:
cloud_name: standalone
featureset: '052'
featureset_override:
run_tempest: false
# Tempest variable to provide cloud name is also used by
# Tobiko's playbook
tempest_cloud_name: "standalone"
use_os_tempest: false
standalone_environment_files:
- 'environments/low-memory-usage.yaml'
- 'ci/environments/scenario002-standalone.yaml'
playbooks:
- quickstart.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:
name: tobiko-tripleo-functional
@ -37,29 +61,15 @@
name: tobiko-tripleo-scenario
description: Scenario testing Tobiko TripleO job
parent: tobiko-tripleo
voting: true
abstract: true
vars:
tox_envlist: scenario
- job:
name: tobiko-tripleo-upgrade
description: Scenario testing Tobiko TripleO upgrade job
name: tobiko-tripleo-faults
description: OS faults and scenario testing Tobiko TripleO job
parent: tobiko-tripleo-scenario
voting: false
vars:
playbooks:
- 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
tobiko_run_faults: true