cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Using the embedded database for unit and integration tests (need help with security model)

bobrich
Node Link

Hi all,

We're running 3.5 and are trying to use the embedded instance to run some of our unit and integration tests (springboot data services). We'd like to be able to enable security on this instance (via dbms.security.auth_enabled=true) and exercise some tests on various roles.

Right now we're trying to add users to this instance with the withConfig() option sending in statements like '.withConfig('dbms.security.createUser','someuser,somepass,false')'. This doesn't seem to work. Just wondering if there is a way to add users to the embedded instance and how we might do that.

Thanks in advance.

2 REPLIES 2

jggomez
Graph Voyager

I prefer install a central version on a server. However You have seen this

https://neo4j.github.io/sdn-rx/current/#dataneo4jtest

Thanks.

bobrich
Node Link

Hi there, thanks for the reply. I don't know that we would be able to quickly deploy/undeploy a centralized server for integration testing.

Will take a look at the sdn-rx test capabilities. Thanks for the heads up!