retry loop refactor with Mr @nicl
Merge branch 'master' of github.com:gidsg/content-api-sanity-tests