Skip to content

Conversation

@cskeefer
Copy link
Contributor

When using test:load-test-file (in test-helper.xqy), my next statements are always setting permissions/collections. This pull request adds versions of test:load-test-file that more mirror xdmp:document-insert by adding the ability to specify permissions and collections.

I see the function supports inserting documents into a database that is using the filesystem so the collections/permissions would be ignored in that case which is kind of ugly. I'm assuming that would be used to insert .xqy/.sjs into the modules database?

I see that you can call test:get-test-file and then do the xdmp:document-insert with any perms/collections, just thought it might be handy to save that step (if you don't need to alter the doc before inserting or something).

Note: I added tests for the changes as well

@cskeefer cskeefer changed the title added ability to specify permissions and collections when calling loa… Specify permissions and collections in test:load-test-file Jan 21, 2019
@jamesagardner jamesagardner merged commit 6e3304a into marklogic:develop Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants