-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk: Adds SessionToken and ActivityId to item responses #2739
Conversation
@@ -56,6 +56,7 @@ public async Task CreateItemStream_WithBulk() | |||
ResponseMessage result = await task; | |||
Assert.AreEqual(HttpStatusCode.Created, result.StatusCode); | |||
Assert.IsTrue(result.Headers.RequestCharge > 0); | |||
Assert.IsNotNull(result.Headers.Session); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test that does CRUD operations with and without bulk. Then compare the headers and make sure that both have the same headers filled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the headers would have different values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just validate that it has the same keys in the headers. To avoid any missing headers in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They will never have the exact same headers, we are not copying the collection of headers, but individual values that make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should still have a test to validate and prevent any new headers from getting lost. If we have known headers that we are excluding then we can just skip those headers.
Bulk operations, when un-packed from the Bulk response, were not wiring the Session Token and ActivityId into the respective resulting operations.
All the operations included in a Bulk response contain the same Session Token and ActivityId as they were all committed in the same transaction.
Closes #2738