gerrit: test reviewed flag add/delete/add cycle

A suggested follow-on to Ifaee5981e0977d7d1135275e7d8a0790075f670b

Change-Id: Ied549d90f9f8e336f1c6661d101480ed4d561b1b
This commit is contained in:
Ian Wienand 2021-11-10 06:50:49 +11:00
parent 75e160180b
commit db182ec017
1 changed files with 9 additions and 2 deletions

View File

@ -252,13 +252,20 @@
- 2
- 3
# NOTE(ianw) we do an add/delete/add cycle as we've seen issues
# with duplicate updates causing problems before; e.g.
# https://gerrit-review.googlesource.com/c/gerrit/+/312602
- name: Post a file review to confirm accountPatchDb connection
uri:
url: 'http://localhost:8081/a/changes/y%2Ftestproject~1/revisions/1/files/file-1.txt/reviewed'
method: PUT
method: '{{ item[0] }}'
user: admin
password: secret
status_code: 201
status_code: '{{ item[1] }}'
loop:
- [ PUT, 201 ]
- [ DELETE, 204 ]
- [ PUT, 201 ]
- name: Run selenium container
include_role: