Skip to content

Commit

Permalink
Merge pull request apache#266 from liu-sheng/ansible-support
Browse files Browse the repository at this point in the history
Add ansible functional testing jobs against shade or openstacksdk
  • Loading branch information
kiwik authored Jul 11, 2018
2 parents 2d07aea + 181f8c3 commit bdfc7a8
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 10 deletions.
11 changes: 11 additions & 0 deletions playbooks/ansible-functional-devstack/run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- hosts: all
become: yes
roles:
- clone-devstack-gate-to-workspace
- install-devstack
- ensure-tox
- role: tox
vars:
tox_install_siblings: true
zuul_work_dir: '{{ ansible_user_dir }}/{{ (zuul.projects.values() | selectattr("short_name", "equalto", os_sdk) | list)[0].src_dir }}'
tox_envlist: ansible
42 changes: 42 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,45 @@
vars:
global_env:
OS_BRANCH: stable/newton

- job:
name: openstacksdk-ansible-devel-functional-devstack
parent: init-test
description: |
Run openstacksdk ansible functional tests against a master devstack
using git devel branch version of ansible.
run: playbooks/ansible-functional-devstack/run.yaml
required-projects:
- name: ansible/ansible
override-checkout: devel
- openstack/openstacksdk
vars:
os_sdk: openstacksdk

- job:
name: openstacksdk-ansible-stable-2.6-functional-devstack
parent: init-test
description: |
Run openstacksdk ansible functional tests against a master devstack
using git stable-2.6 branch version of ansible.
run: playbooks/ansible-functional-devstack/run.yaml
required-projects:
- name: ansible/ansible
override-checkout: stable-2.6
- openstack/openstacksdk
vars:
os_sdk: openstacksdk

- job:
name: shade-ansible-stable-2.5-functional-devstack
parent: init-test
description: |
Run shade ansible functional tests against a master devstack
using git stable-2.5 branch version of ansible.
run: playbooks/ansible-functional-devstack/run.yaml
required-projects:
- name: ansible/ansible
override-checkout: stable-2.5
- openstack-infra/shade
vars:
os_sdk: shade
10 changes: 0 additions & 10 deletions zuul.d/project.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions zuul.d/projects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
- project:
check:
jobs:
- openlab-zuul-jobs-check

- project:
name: cloudfoundry-incubator/bosh-openstack-cpi-release
recheck-newton:
jobs:
- bosh-openstack-cpi-release-acceptance-test-newton

- project:
name: ansible/ansible
check:
jobs:
- openstacksdk-ansible-devel-functional-devstack:
branches: devel
files:
- ^lib/ansible/modules/cloud/openstack/.*
- ^contrib/inventory/openstack_inventory.py
- ^lib/ansible/plugins/inventory/openstack.py
- ^lib/ansible/module_utils/openstack.py
- ^lib/ansible/utils/module_docs_fragments/openstack.py
- openstacksdk-ansible-stable-2.6-functional-devstack:
branches: stable-2.6
files:
- ^lib/ansible/modules/cloud/openstack/.*
- ^contrib/inventory/openstack_inventory.py
- ^lib/ansible/plugins/inventory/openstack.py
- ^lib/ansible/module_utils/openstack.py
- ^lib/ansible/utils/module_docs_fragments/openstack.py
- shade-ansible-stable-2.5-functional-devstack:
branches: stable-2.5
files:
- ^lib/ansible/modules/cloud/openstack/.*
- ^contrib/inventory/openstack.py
- ^lib/ansible/plugins/inventory/openstack.py
- ^lib/ansible/module_utils/openstack.py
- ^lib/ansible/utils/module_docs_fragments/openstack.py

0 comments on commit bdfc7a8

Please sign in to comment.