Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Vasily Kolesnikov
    @v-kolesnikov
    Alexey Nikitin
    @tank-bohr
    New list clojure-like syntax tank-bohr/bookish_spork#32
    Sebastian Boccardi
    @sebasb21_gitlab
    hi, Sebastian here, been using bookish in ct tests for a short time now, very useful indeed
    i have one thing i would like to be able to configure in bookish_server, and i wanted to get an opinion about it, that is: if the response queue is empty then just reply with an error, or a default response. Right now if you request with and empty response queue bookish server crashes
    ok, let me know what you think, thanks!
    Alexey Nikitin
    @tank-bohr

    Hello Sebastian!

    if you request with and empty response queue bookish server crashes

    But why is this a problem? It is unexpected request. This is exactly what we want to check

    Sebastian Boccardi
    @sebasb21_gitlab
    I totally agree, just thought it could be good to have an option to add a default response to unexpected requests. I can do this with a fun that adds another response..... But it seemed more clear to have that option.
    Alexey Nikitin
    @tank-bohr
    then you could do request without stub_request. I'm afraid it's contrary to the main idea

    I can do this with a fun that adds another response..... But it seemed more clear to have that option.

    Now you should do as many stubs as the number of request. Thus you cannot do this even with fun

    Alexey Nikitin
    @tank-bohr
    It could be useful to add feature to stub many requests with one stub_request call. But I cannot come up with a good interface
    Thus your issue would be solved
    Alexey Nikitin
    @tank-bohr
    partly at least...
    Alexey Nikitin
    @tank-bohr
    Sebastian Boccardi
    @sebasb21_gitlab
    nice
    Alexey Nikitin
    @tank-bohr
    v0.3.3 :tada:
    • elixir struct interface for request
    • logo