(t *testing.T)
| 1002 | } |
| 1003 | |
| 1004 | func TestCreateLegacyRevDoc(t *testing.T) { |
| 1005 | rt := NewRestTester(t, nil) |
| 1006 | defer rt.Close() |
| 1007 | |
| 1008 | // create legacy rev (without CV) |
| 1009 | dbc, ctx := rt.GetSingleTestDatabaseCollectionWithUser() |
| 1010 | _, _ = dbc.CreateDocNoHLV(t, ctx, "legacydoc", db.Body{"foo": "bar"}) |
| 1011 | |
| 1012 | // fetch doc and assert that no _vv is present |
| 1013 | ds := dbc.GetCollectionDatastore() |
| 1014 | _, _, err := ds.GetXattrs(ctx, "legacydoc", []string{base.VvXattrName}) |
| 1015 | require.Error(t, err) // should error as xattr not found |
| 1016 | base.RequireXattrNotFoundError(t, err) |
| 1017 | } |
| 1018 | |
| 1019 | // TestBulkDocsNoEdits verifies that POSTing /_bulk_docs with new_edits=false stores |
| 1020 | // the provided revisions verbatim, and subsequent posts append the given history without generating new rev IDs. |
nothing calls this directly
no test coverage detected