AshJsonApi.Test post function does not allow change host
Hi, sorry, I think the
AshJsonApi.Test
post function dose not allow to overwrite the host as a header, is it bug? or i am writing host in bad place?
like:
it always return host example.com
Thank you in advance6 Replies
I think that's showing you how to set the host
That seems like a Phoenix thing not an Ash thing
Although I guess what you're saying is we don't give you access to the conn to modify it before the request?
Hmmm 🤔, I just want to change it or force to change because this my project uses multi tendency and i want to test multi host in my test
for example with conn test i use like this
Solution
You can pass a tenant option
Thank you and Sorry i will test it ♥️🙏🏻, but before that i think the Ash Json testing
post
function circumvents the api router pipe line , So my custom plug is not called; Am i right?
You are correct
IIRC
So for testing some part of my app i need to use
instead of ash json testing
Thank you sorry for disrupting