Add integration test for zuul_stream
Actually run a playbook against a second node with the plugins enabled,
then fetch the output so we can look at it.
Takes advantage of the fact that zuul_console will already be running on
the second node.
Change-Id: I75bcbc46ffbbb49f0689584fbdb1c62ac2e91737
diff --git a/playbooks/zuul-stream/post.yaml b/playbooks/zuul-stream/post.yaml
new file mode 100644
index 0000000..f3d4f9c
--- /dev/null
+++ b/playbooks/zuul-stream/post.yaml
@@ -0,0 +1,26 @@
+- hosts: controller
+ tasks:
+
+ - set_fact:
+ output_dir: "{{ zuul.executor.log_root }}/stream-files"
+
+ - name: Make log subdir
+ file:
+ path: "{{ output_dir }}"
+ state: directory
+ delegate_to: localhost
+
+ - name: Rename job-output.txt
+ command: mv job-output.txt stream-job-output.txt
+
+ - name: Fetch files
+ synchronize:
+ src: "{{ ansible_user_dir }}/{{ item }}"
+ dest: "{{ output_dir }}"
+ mode: pull
+ with_items:
+ - logging.json
+ - ansible.cfg
+ - stream-job-output.txt
+ - job-output.json
+ - ara-output