Skip to content

Commit 56ccde1

Browse files
author
Gustavo Muniz do Carmo
committed
assertion
1 parent 25072c3 commit 56ccde1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22
- hosts: containers
33
gather_facts: no
44
roles:
5-
- oracle_java8
5+
- oracle_java8
6+
tasks:
7+
- name: Get Java version
8+
shell: java -version
9+
register: java_version_result
10+
- name: Assert Java version
11+
assert:
12+
that: java_version_result.stderr_lines[0] | regex_search('^java version "1.8.0_\d*"$') != ''
13+
msg: "Failure on Oracle Java 8 installation"

0 commit comments

Comments
 (0)