Skip to content

Commit

Permalink
OSPRH-9659
Browse files Browse the repository at this point in the history
Add service tests to the logging job

adding the tasks from #123 into a spearate PR
  • Loading branch information
myadla committed Sep 27, 2024
1 parent 3161148 commit a728912
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@
label: "{{ item }}"
vars:
container_name: "{{ item }}"

---
- name: "[TEST] Verify service for logging"
ansible.builtin.include_tasks:
file: service_tests.yml
tags: test
7 changes: 7 additions & 0 deletions roles/common/tasks/service_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Verify service is running
ansible.builtin.shell:
cmd: |
oc get service -n "{{ service_nspace }}" "{{ service_name }}"
changed_when: false
register: output

0 comments on commit a728912

Please sign in to comment.