Add basic validation for zuul services
Move our testing into an ansible roles. Change-Id: I723de9603e8d6ef3ecf3e6177eb2bc72abf4fe55 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
9e5daf7a22
commit
90103145e0
|
@ -2,4 +2,3 @@
|
|||
AUTHORS
|
||||
ChangeLog
|
||||
doc/build/
|
||||
playbooks/roles
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright 2016 Red Hat, Inc.
|
||||
#
|
||||
# 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.
|
||||
---
|
||||
- name: Register /opt/venv/zuul-launcher
|
||||
stat:
|
||||
path: /opt/venv/zuul-launcher
|
||||
register: test_zuul_pip_virtualenv_stat
|
||||
|
||||
- name: Assert /opt/venv/zuul-launcher tests
|
||||
assert:
|
||||
that:
|
||||
- test_zuul_pip_virtualenv_stat.stat.exists
|
||||
- test_zuul_pip_virtualenv_stat.stat.isdir
|
||||
|
||||
- name: Ensure zuul-launcher is running
|
||||
shell: /usr/sbin/service zuul-launcher status
|
||||
tags: skip_ansible_lint
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright 2016 Red Hat, Inc.
|
||||
#
|
||||
# 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.
|
||||
---
|
||||
- name: Register /opt/venv/zuul-merger
|
||||
stat:
|
||||
path: /opt/venv/zuul-merger
|
||||
register: test_zuul_pip_virtualenv_stat
|
||||
|
||||
- name: Assert /opt/venv/zuul-merger tests
|
||||
assert:
|
||||
that:
|
||||
- test_zuul_pip_virtualenv_stat.stat.exists
|
||||
- test_zuul_pip_virtualenv_stat.stat.isdir
|
||||
|
||||
- name: Ensure zuul-merger is running
|
||||
shell: /usr/sbin/service zuul-merger status
|
||||
tags: skip_ansible_lint
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright 2016 Red Hat, Inc.
|
||||
#
|
||||
# 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.
|
||||
---
|
||||
- name: Register /opt/venv/zuul-server
|
||||
stat:
|
||||
path: /opt/venv/zuul-server
|
||||
register: test_zuul_pip_virtualenv_stat
|
||||
|
||||
- name: Assert /opt/venv/zuul-server tests
|
||||
assert:
|
||||
that:
|
||||
- test_zuul_pip_virtualenv_stat.stat.exists
|
||||
- test_zuul_pip_virtualenv_stat.stat.isdir
|
||||
|
||||
- name: Ensure zuul-server is running
|
||||
shell: /usr/sbin/service zuul-server status
|
||||
tags: skip_ansible_lint
|
|
@ -18,18 +18,7 @@
|
|||
roles:
|
||||
- windmill.jenkins-job-builder
|
||||
- windmill.zuul
|
||||
|
||||
post_tasks:
|
||||
- name: Register /opt/venv/zuul-launcher
|
||||
stat:
|
||||
path: /opt/venv/zuul-launcher
|
||||
register: test_zuul_pip_virtualenv_stat
|
||||
|
||||
- name: Assert /opt/venv/zuul-launcher tests
|
||||
assert:
|
||||
that:
|
||||
- test_zuul_pip_virtualenv_stat.stat.exists
|
||||
- test_zuul_pip_virtualenv_stat.stat.isdir
|
||||
- test.zuul-launcher
|
||||
|
||||
vars_files:
|
||||
- vars/zuul.yaml
|
||||
|
|
|
@ -17,18 +17,7 @@
|
|||
|
||||
roles:
|
||||
- windmill.zuul
|
||||
|
||||
post_tasks:
|
||||
- name: Register /opt/venv/zuul-merger
|
||||
stat:
|
||||
path: /opt/venv/zuul-merger
|
||||
register: test_zuul_pip_virtualenv_stat
|
||||
|
||||
- name: Assert /opt/venv/zuul-merger tests
|
||||
assert:
|
||||
that:
|
||||
- test_zuul_pip_virtualenv_stat.stat.exists
|
||||
- test_zuul_pip_virtualenv_stat.stat.isdir
|
||||
- test.zuul-merger
|
||||
|
||||
vars_files:
|
||||
- vars/zuul.yaml
|
||||
|
|
|
@ -18,18 +18,7 @@
|
|||
roles:
|
||||
- windmill.zuul
|
||||
- windmill.ssh
|
||||
|
||||
post_tasks:
|
||||
- name: Register /opt/venv/zuul-server
|
||||
stat:
|
||||
path: /opt/venv/zuul-server
|
||||
register: test_zuul_pip_virtualenv_stat
|
||||
|
||||
- name: Assert /opt/venv/zuul-server-env tests
|
||||
assert:
|
||||
that:
|
||||
- test_zuul_pip_virtualenv_stat.stat.exists
|
||||
- test_zuul_pip_virtualenv_stat.stat.isdir
|
||||
- test.zuul-server
|
||||
|
||||
vars_files:
|
||||
- vars/zuul.yaml
|
||||
|
|
Loading…
Reference in New Issue