-
Notifications
You must be signed in to change notification settings - Fork 867
CBOR requests protocol test and extensions tests #3890
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
CBOR requests protocol test and extensions tests #3890
Conversation
…hy Version 1.58.0
...t-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/HttpProtocolTestGenerator.java
Outdated
Show resolved
Hide resolved
...t-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/HttpProtocolTestGenerator.java
Outdated
Show resolved
Hide resolved
...t-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/HttpProtocolTestGenerator.java
Outdated
Show resolved
Hide resolved
sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.csproj
Outdated
Show resolved
Hide resolved
generator/ServiceClientGeneratorLib/Generators/Marshallers/CborResponseUnmarshaller.tt
Show resolved
Hide resolved
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.
Approving, made sure the protocol tests run succesfully and am aware that the unmarshaller.tt files are just placeholders for now
0007326
to
3f79895
Compare
[InlineData("2025-06-19T20:15:28.468Z", 1750364128.468, CborReaderState.DoublePrecisionFloat, 10)] | ||
public void WriteDateTime_EncodesCorrectly(string isoDate, double expectedUnixEpoch, CborReaderState expectedState, int expectedTotalBytes) | ||
{ | ||
var dt = DateTime.Parse(isoDate).ToUniversalTime(); |
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.
isoDate is already in UTC. You can parse it as such using:
DateTime.Parse(isoDate, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal | DateTimeStyles.AdjustToUniversal)
@@ -137,7 +150,7 @@ private void arrangeResponseTestBlock(HttpResponseTestCase httpResponseTestCase) | |||
for (var header : httpResponseTestCase.getHeaders().keySet()) { | |||
writer.write("webResponseData.Headers[$S] = $S;", header, httpResponseTestCase.getHeaders().get(header)); | |||
} | |||
writer.write("byte[] bytes = Encoding.ASCII.GetBytes($S);", httpResponseTestCase.getBody()); | |||
writer.write("byte[] bytes = Encoding.ASCII.GetBytes($S);", httpResponseTestCase.getBody()); |
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.
Incorrect whitespace change / indentation.
…and Smithy v1.58.0
3f79895
to
ecde7e6
Compare
Description
Motivation and Context
DOTNET-8157
DOTNET-8158
Testing
DRY_RUN-e6b2cf96-b7e0-438b-b2a4-9df1826a5628
Screenshots (if appropriate)
Types of changes
Checklist
License