Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit f120364

Browse files
committed
Adding test resources
1 parent 0df1fa5 commit f120364

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

test.retry

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost

test.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
- hosts: localhost
2+
gather_facts: no
3+
vars:
4+
keycloak_url: http://keycloak
5+
meta:
6+
namespace: microcks-operator-test
7+
pre_tasks:
8+
- debug:
9+
var: test
10+
vars:
11+
test: "{{ lookup('template', './k8s/microcks-deployment.yml') | from_yaml }}"
12+
13+
- fail:
14+
15+
- name: Get information about the cluster
16+
set_fact:
17+
api_groups: "{{ lookup('k8s', cluster_info='api_groups') }}"
18+
19+
- name: The Microcks Deployment is present
20+
k8s:
21+
state: present
22+
definition: "{{ lookup('template', './k8s/microcks-deployment.yml') | from_yaml }}"
23+
24+
- debug:
25+
var: res
26+
vars:
27+
res: Result
28+
29+
- fail:
30+
roles:
31+
- microcks

0 commit comments

Comments
 (0)