Open dejan-kosak opened 1 month ago
Hi @dejan-kosak
Thanks for reaching out.
Would you mind sharing a code sample of how you're mocking the batch response. I'm thinking it should be possible to build a Response
using the returned request IDs but would be curious to see your implementation.
Hi, thanks for quick response.
The thing is that I have a testing tool which is based on wiremock with static resource files, mocking the responses from msgraph.
As ids are provided (randomized) by the code without having an option to set id on my own, I cannot match it with my sample responses.
It would be beneficial if there would be possibility to set id
for RequestInformation
, which could be later used in addBatchRequestStep
to provide id
. Randomization of id
could still be in place if not provided.
Hi! I have problem testing my code because of implementation detail of
BatchRequestContent
.Method addBatchRequestStep, which is adding
RequestInformation
intoBatchRequestContent
, internally generates new UUID. That id is returned fromaddBatchRequestStep
method for furter reference.All is fine, until you have to mock batch response for testing. That response will contain id which is predefined and unable to match with the one that is generated by the code in runtime.
Greetings!