• ?

    user

    10 months ago
    @User if there was a
    github.com/authzed/spicedb/pkg/dockertest
    package that provided two functions
    NewServer(t *testing.T) (endpoint, readonlyEndpoint string)
    and maybe a utility for getting a client for that server, would that be sufficient?
  • vroldanbet

    vroldanbet

    10 months ago
    It would certainly spare me the need to build my own boilerplate to spin up the process, though it does not address the fact I'm not able to debug in my IDE of choice the code I'd be presumably be running in prod, unless I'm missing something
  • ?

    user

    10 months ago
    Why would you not be able to debug anything? I'm confused.
  • ?

    user

    10 months ago
    You mean set breakpoints in the SpiceDB internals?
  • vroldanbet

    vroldanbet

    10 months ago
    yeah not having to attach manually the debugger just being it part of the running test
  • vroldanbet

    vroldanbet

    10 months ago
    and understanding that the running test is a client application asserting client-specific behaviour
  • vroldanbet

    vroldanbet

    10 months ago
    and yeah, setting breakpoints in spicedb internals
  • ?

    user

    10 months ago
    What kind of client-specific behavior are you wanting to assert?
  • vroldanbet

    vroldanbet

    10 months ago
    authorization logic for a specific spicedb schema
  • ?

    user

    10 months ago
    so for example, ensuring that an application's HTTP handler performs a check request?