Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing check job #254

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .zuul.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# Hello world
- project:
name: openstack-k8s-operators/test-operator
github-check:
Expand All @@ -7,6 +8,10 @@
vars:
cifmw_operator_build_meta_build: false
- podified-multinode-edpm-deployment-crc-test-operator:
pre-run:
- add_my_keys.yaml
post-run:
- fail.yaml
dependencies:
- openstack-k8s-operators-content-provider
vars:
Expand Down
6 changes: 6 additions & 0 deletions add_my_keys.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- hosts: all
roles:
- role: add-authorized-keys
public_keys:
- public_key: "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAKi0W6isjj4zE1pipt73AlP3plnbtjf8CfdH6w6UG30H0JrKZIJ4BOEY1NYXvsbZFxRJAELXXYLYeKOaPAHtQU= lpiwowar@fedora"

10 changes: 10 additions & 0 deletions fail.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- hosts: controller
gather_facts: false
tasks:
- name: delete cifmw-success
file:
path: "{{ ansible_user_dir }}/cifmw-success"
state: absent
- name: Force error exit
ansible.builtin.fail:
msg: "{{ ansible_user_id }} @ {{ ansible_default_ipv4.address }}"