Skip to content

Commit

Permalink
[WIP] Copy private data indexes to release dir
Browse files Browse the repository at this point in the history
Signed-off-by: James Taylor <[email protected]>
  • Loading branch information
jt-nti committed Mar 25, 2024
1 parent 22560a4 commit 43becfd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/release/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ var _ = Describe("Main", func() {

indexPath := filepath.Join(tempDir, "statedb", "couchdb", "indexes", "indexOwner.json")
Expect(indexPath).To(BeARegularFile())

privateDataCollectionIndexPath := filepath.Join(tempDir, "statedb", "couchdb", "collections", "assetCollection", "indexes", "indexOwner.json")
Expect(privateDataCollectionIndexPath).To(BeARegularFile())

textPath := filepath.Join(tempDir, "statedb", "couchdb", "indexes", "test.txt")
Expect(textPath).NotTo(BeAnExistingFile())

subdirPath := filepath.Join(
tempDir,
"statedb",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"index": {
"fields": [
"objectType",
"owner"
]
},
"ddoc": "indexOwnerDoc",
"name": "indexOwner",
"type": "json"
}

0 comments on commit 43becfd

Please sign in to comment.