Skip to content

Instantly share code, notes, and snippets.

@rnewson
Created May 15, 2016 19:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rnewson/4c809057c9099f6de5e75c05a2c6eb12 to your computer and use it in GitHub Desktop.
admin_local test
; everyone
➜ ~ curl foo:bar@localhost:15984/db1/_security; curl foo:bar@localhost:15986/db1/_security
{}
{}
; admin_only
➜ ~ curl foo:bar@localhost:15984/db1/_security; curl foo:bar@localhost:15986/db1/_security
{"members":{"roles":["_admin"]},"admins":{"roles":["_admin"]}}
{"members":{"roles":["_admin"]},"admins":{"roles":["_admin"]}}
; admin_local
➜ ~ curl foo:bar@localhost:15984/db1/_security; curl foo:bar@localhost:15986/db1/_security
{}
{"members":{"roles":["_admin"]},"admins":{"roles":["_admin"]}}
➜ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment