Append 3 more punt path protection TCs
[integration/test.git] / csit / variables / coe / coe_play.yaml
index ea95db4bbbb349118ff71f2fa81a7f37b96498bc..bf00bbcbfa5ce3d17b0a7044d2dd93f1e27e346f 100644 (file)
@@ -1,6 +1,6 @@
 ---
 
-- hosts: coe-master:coe-minion1:coe-minion2
+- hosts: coe-hosts
   vars:
     gopath: "{{ ansible_env.HOME }}/go"
     coe_path: "{{ gopath }}/src/git.opendaylight.org/gerrit/p/coe.git"
       shell: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
       args:
         creates: "{{ gopath }}/bin/dep"
+    - name: Show gerrit details
+      run_once: true
+      debug:
+        msg:
+          - "Fetch COE git repository https://git.opendaylight.org/gerrit/p/coe.git"
+          - "gerrit_branch {{ gerrit_branch }}"
+          - "gerrit_refspec {{ gerrit_refspec }}"
     - name: Fetch COE git repository
       git:
-        repo: 'https://git.opendaylight.org/gerrit/p/coe.git'
+        repo: "https://git.opendaylight.org/gerrit/p/coe.git"
+        version: "{{ gerrit_branch }}"
+        refspec: "{{ gerrit_refspec }}"
         dest: "{{ coe_path }}"
-    - name: Fetch COE dep patch
-      shell: git config --add user.name "vagrant" && git config --add user.email "coe@local" && git fetch https://git.opendaylight.org/gerrit/coe refs/changes/55/72855/4 && git cherry-pick FETCH_HEAD && touch /tmp/coe-patched
+    - name: List COE git repository recent patches
+      run_once: true
+      shell: "git --no-pager log --pretty=format:'%h %<(30)%ad %<(30)%cd %<(20,trunc)%an%d %s' -n10"
       args:
         chdir: "{{ coe_path }}"
-        creates: /tmp/coe-patched
+      register: git_log_output
+    - name: git log header
+      run_once: true
+      debug:
+        msg="Hash    Author Date                    Commit Date                    Author               Subject"
+    - name: git log output
+      run_once: true
+      debug:
+        var=git_log_output.stdout_lines
     - name: Fetch odl-cni dependencies with dep
       shell: dep ensure -vendor-only
       args:
         remote_src: true
       become: true
 
-- hosts: coe-master:coe-minion1:coe-minion2
+- hosts: coe-hosts
   tasks:
     - name: Set OVS Manager
       shell: ovs-vsctl set-manager tcp:{{ manager_ip }}:{{ manager_port }} && touch /tmp/ovs-set-manager
       args:
         creates: /tmp/watcher.out
 
-- hosts: coe-minion1:coe-minion2
+- hosts: coe-minions
   tasks:
     - name: Disable swapfile
       shell: swapoff -a