Added gerrit change Verification validation

Change-Id: I731826f0723a682395fb65231e87315e2954f6c0
diff --git a/test-salt-models-pipeline.groovy b/test-salt-models-pipeline.groovy
index c6f1a71..ed698d9 100644
--- a/test-salt-models-pipeline.groovy
+++ b/test-salt-models-pipeline.groovy
@@ -44,9 +44,12 @@
       if (gerritRef) {
         // job is triggered by Gerrit
         // test if change aren't already merged
-        def gerritChange = gerrit.getGerritChange(GERRIT_NAME, GERRIT_HOST, GERRIT_CHANGE_NUMBER, CREDENTIALS_ID)
+        def gerritChange = gerrit.getGerritChange(GERRIT_NAME, GERRIT_HOST, GERRIT_CHANGE_NUMBER, CREDENTIALS_ID, true)
+        // test if gerrit change is already Verified
+        if(gerrit.patchsetHasApproval(gerritChange.currentPatchSet,"Verified")){
+          common.successMsg("Gerrit change ${GERRIT_CHANGE_NUMBER} patchset ${GERRIT_PATCHSET_NUMBER} already has Verified, skipping tests") // do nothing
         // test WIP contains in commit message
-        if (gerritChange.commitMessage.contains("WIP")) {
+        }else if (gerritChange.commitMessage.contains("WIP")) {
           common.successMsg("Commit message contains WIP, skipping tests") // do nothing
         } else {
           def merged = gerritChange.status == "MERGED"