Serve testing
# spicedb
m
does it not require any preshared keys?
v
That's they way. And no, it does not require preshared keys: each test should use a random generated key to achieve test isolation. In serve testing mode each preshaped keys becomes like its own isolated spicedb
There is also a spiceDB GitHub action that spins serve testing for you
m
@vroldanbet we have load the schema only once for all the tests?
and that would not need any secret_key? right?
v
No. Each preshared key is an isolated environment, so you'd have to write the schema and relationships again
m
Ok so the only thing is that it can be done on a single spice-db image on docker
v
I don't understand what you mean
m
i am talking about : spicedb serve-testing
i only bring up a single spicedb docker right?
v
Yes. You only need one container, then each test used a different randomly generated preshared key to achieve test isolation
7 Views