Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Feder <[email protected]>
  • Loading branch information
matofeder committed Dec 1, 2023
1 parent 2eca13e commit 0dc3026
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 43 deletions.
48 changes: 5 additions & 43 deletions .zuul.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,13 @@
---
- job:
name: k8s-cluster-api-provider-e2e-abstract
abstract: true
parent: openstack-access-base
description: |
An abstract job for e2e testing of k8s-cluster-api-provider project.
This job is not intended to be run directly, but instead must be inherited from it.
pre-run: playbooks/dependencies.yaml
run: playbooks/e2e.yaml
cleanup-run: playbooks/cleanup.yaml # executed also when the job is canceled
vars:
wait_for_cluster: 600 # 10min

- job:
name: k8s-cluster-api-provider-e2e-conformance
parent: k8s-cluster-api-provider-e2e-abstract
description: |
Run e2e tests of k8s-cluster-api-provider project using
[sonobuoy](https://sonobuoy.io/) with mode conformance meaning
it will test if the Kubernetes cluster is conformant to the CNCF.
timeout: 10800 # 3h
vars:
sonobouy_mode: conformance

- job:
name: k8s-cluster-api-provider-e2e-quick
parent: k8s-cluster-api-provider-e2e-abstract
description: |
Run e2e tests of k8s-cluster-api-provider project using
[sonobuoy](https://sonobuoy.io/) with mode quick.
timeout: 3600 # 1h
vars:
sonobouy_mode: quick
name: mqtt-matrix-bridge-test
parent: base
run: playbooks/test.yaml

- project:
name: matofederorg/k8s-cluster-api-provider
default-branch: main
merge-mode: "squash-merge"
e2e-test:
jobs:
- k8s-cluster-api-provider-e2e-conformance
unlabel-on-update-e2e-test:
jobs:
- noop
e2e-quick-test:
jobs:
- k8s-cluster-api-provider-e2e-quick
unlabel-on-update-e2e-quick-test:
periodic-hourly:
jobs:
- noop
- mqtt-matrix-bridge-test

Check failure on line 13 in .zuul.yaml

View workflow job for this annotation

GitHub Actions / check-yaml-syntax

13:32 [new-line-at-end-of-file] no new line character at the end of file

Check failure on line 13 in .zuul.yaml

View workflow job for this annotation

GitHub Actions / check-yaml-syntax

13:32 [new-line-at-end-of-file] no new line character at the end of file
12 changes: 12 additions & 0 deletions playbooks/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Run mqtt-matrix bridge test
hosts: all
tasks:
- name: Print a test message
ansible.builtin.debug:
msg: "Hello from zuul!"

Check failure on line 7 in playbooks/test.yaml

View workflow job for this annotation

GitHub Actions / check-yaml-syntax

7:8 [indentation] wrong indentation: expected 6 but found 7

Check failure on line 7 in playbooks/test.yaml

View workflow job for this annotation

GitHub Actions / check-yaml-syntax

7:8 [indentation] wrong indentation: expected 6 but found 7
- name: Force a failure >:-)

Check failure on line 8 in playbooks/test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

no-changed-when

Commands should not change things if nothing needs doing.
ansible.builtin.command: /bin/false
- name: Never print this
ansible.builtin.debug:
msg: "I never execute, due to the above task failing, :-("

Check failure on line 12 in playbooks/test.yaml

View workflow job for this annotation

GitHub Actions / check-yaml-syntax

12:8 [indentation] wrong indentation: expected 6 but found 7

Check failure on line 12 in playbooks/test.yaml

View workflow job for this annotation

GitHub Actions / check-yaml-syntax

12:8 [indentation] wrong indentation: expected 6 but found 7

0 comments on commit 0dc3026

Please sign in to comment.