-
Notifications
You must be signed in to change notification settings - Fork 910
Added missing clientRequestToken to TransactWriteItemsEnhancedRequest #1891
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
Conversation
...n/java/software/amazon/awssdk/enhanced/dynamodb/model/TransactWriteItemsEnhancedRequest.java
Outdated
Show resolved
Hide resolved
...n/java/software/amazon/awssdk/enhanced/dynamodb/model/TransactWriteItemsEnhancedRequest.java
Outdated
Show resolved
Hide resolved
...n/java/software/amazon/awssdk/enhanced/dynamodb/model/TransactWriteItemsEnhancedRequest.java
Outdated
Show resolved
Hide resolved
2c55c2d
to
57f0e2b
Compare
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 changelog entry?
...n/java/software/amazon/awssdk/enhanced/dynamodb/model/TransactWriteItemsEnhancedRequest.java
Show resolved
Hide resolved
...n/java/software/amazon/awssdk/enhanced/dynamodb/model/TransactWriteItemsEnhancedRequest.java
Show resolved
Hide resolved
@@ -167,6 +174,17 @@ public void builder_maximal_builder_style() { | |||
assertThat(builtObject.transactWriteItems().get(3).conditionCheck().key().get("id").s(), is(fakeItem.getId())); | |||
} | |||
|
|||
@Test | |||
public void setClientRequestTokenTest() { |
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.
nit, the naming pattern for most of our unit tests is something like: given_when_then,
so maybe builder_passRequestToken_shouldWork
?
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.
I was trying to figure out a name in this pattern but I failed so I just used the current simple one lol. Will change it.
Codecov Report
@@ Coverage Diff @@
## master #1891 +/- ##
============================================
- Coverage 76.24% 76.20% -0.05%
Complexity 187 187
============================================
Files 1076 1076
Lines 32568 32507 -61
Branches 2569 2546 -23
============================================
- Hits 24833 24773 -60
Misses 6476 6476
+ Partials 1259 1258 -1
Continue to review full report at Codecov.
|
Kudos, SonarCloud Quality Gate passed!
|
…677f6c45d Pull request: release <- staging/8b839efa-873f-406b-a601-070677f6c45d
Added missing clientRequestToken to TransactWriteItemsEnhancedRequest class to align usage of TransactWriteItems in v1 client.
Description
Motivation and Context
This pr is to solve issue #1808
Testing
One unit test is added, testing if TransactWriteItemsRequest has the clientRequestToken passed by the enhanced request.
Screenshots (if appropriate)
Types of changes
License