Standalone ACL runner


(Barry Kaplan) #1

:bulb: Standalone ACL runner

Rather than update readonlyrest.yml (or via the UI) and take the risk of screwing up the permissions, it would be really nice to write “unit tests”. Maybe this would be using a bit the es-plugin to write junit tests.

:rocket: Let’s do this?

  • 1
  • 2
  • 3
  • 4
  • 5

0 voters


(Simone Scarduzio) #2

what do you mean practically? Maybe a test mode for the save button of 60s that you have to “really apply” ?


(Barry Kaplan) #3

No, really I want a jar file where I can write real unit tests for rules. Of course I can fire up a es node in docker and run tests against that. A bit slower, but certainly workable. So I would rate this very low priority.

But I haven’t looked at your tests and mocks in the code, so maybe what I want is already there.


(Simone Scarduzio) #4

Yeah we use testcontainers-java and a bunch of glue code to make it easier to have HTTP based unit tests given a ROR YAML setting.