From d12951b9c7874ee3daba721ee2c410d9d2b441aa Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 4 Jan 2021 13:22:17 +0530 Subject: [PATCH] Re-enable nomad tests (#1582) Signed-off-by: Abhijeet Kasurde --- tests/integration/targets/nomad/aliases | 1 - .../targets/nomad/tasks/nomad_job.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/integration/targets/nomad/aliases b/tests/integration/targets/nomad/aliases index 82c6f51606..3141aee60b 100644 --- a/tests/integration/targets/nomad/aliases +++ b/tests/integration/targets/nomad/aliases @@ -4,4 +4,3 @@ destructive skip/aix skip/centos6 skip/freebsd -disabled # FIXME diff --git a/tests/integration/targets/nomad/tasks/nomad_job.yml b/tests/integration/targets/nomad/tasks/nomad_job.yml index ed8ef2590d..f2137f4eff 100644 --- a/tests/integration/targets/nomad/tasks/nomad_job.yml +++ b/tests/integration/targets/nomad/tasks/nomad_job.yml @@ -56,6 +56,15 @@ content: "{{ lookup('file', 'job.hcl') }}" register: job_deployed_idempotence +- name: get list of nomad jobs + nomad_job_info: + host: localhost + use_ssl: false + register: list_nomad_jobs + +- debug: + msg: "{{ list_nomad_jobs }}" + - name: run check delete nomad job nomad_job: host: localhost @@ -80,6 +89,15 @@ name: example register: get_job_delete +- name: get list of nomad jobs + nomad_job_info: + host: localhost + use_ssl: false + register: list_nomad_jobs + +- debug: + msg: "{{ list_nomad_jobs }}" + - name: assert idempotence assert: that: