I am writing a custom procedure which calls the procedure dbms.security.listUsers()
(db.execute("CALL dbms.security.listUsers()")) but when I try to write an integration test
for the procedure I get the following error:
There is no procedure with the name dbms.security.listUsers registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
How do I add the dbms.security procedures to the Neo4j test harness, so that I can test my procedure?
But now I get the following exception and don't know how to continue
org.neo4j.kernel.api.exceptions.ComponentInjectionException: Unable to set up injection for procedure UserManagementProcedures, the field securityContexthas typeclass org.neo4j.kernel.enterprise.api.security.EnterpriseSecurityContext which is not a known injectable component.