isRespUseRevTreeIDInstead returns true if the response indicates that a RevTree ID should be used instead of a CV for modifying a document in conflict.
(resp *TestResponse)
| 196 | |
| 197 | // isRespUseRevTreeIDInstead returns true if the response indicates that a RevTree ID should be used instead of a CV for modifying a document in conflict. |
| 198 | func isRespUseRevTreeIDInstead(resp *TestResponse) bool { |
| 199 | return resp.Code == http.StatusBadRequest && strings.Contains(resp.BodyString(), "Cannot use CV to modify a document in conflict - resolve first with RevTree ID") |
| 200 | } |
| 201 | |
| 202 | func (rt *RestTester) GetDatabaseRoot(dbname string) DatabaseRoot { |
| 203 | var dbroot DatabaseRoot |
no test coverage detected