Skip to content

Commit 600cc37

Browse files
Merge pull request #401 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 9397332 + b18238e commit 600cc37

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/Products/ProductsIntegrationTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ await Assert.ThrowsAsync<NotFoundException>(async () =>
5151
});
5252
});
5353
}
54-
54+
5555
[Fact]
5656
public async Task HeadNotFoundReturnsDefault()
5757
{
@@ -76,7 +76,7 @@ await Assert.ThrowsAsync<NotFoundException>(async () =>
7676
{
7777
await apiRoot.Products().WithKey(product.Key + "-unknown").Get().ExecuteAsync();
7878
});
79-
79+
8080
var sendProduct = await apiRoot.Products().WithKey(product.Key).Get().SendAsync();
8181
Assert.True(sendProduct.IsSuccess());
8282
Assert.Equal(HttpStatusCode.OK, sendProduct.StatusCode);
@@ -96,14 +96,14 @@ await Assert.ThrowsAsync<NotFoundException>(async () =>
9696
Assert.True(sendHead.IsSuccess());
9797
Assert.Equal(HttpStatusCode.OK, sendHead.StatusCode);
9898
Assert.Equal("", sendHead.Body);
99-
99+
100100
var sendUnknownHead = await apiRoot.Products().WithKey(product.Key + "-unknown").Head().SendAsync();
101101
Assert.False(sendUnknownHead.IsSuccess());
102102
Assert.Equal(HttpStatusCode.NotFound, sendUnknownHead.StatusCode);
103103
Assert.Equal("", sendUnknownHead.Body);
104104
});
105105
}
106-
106+
107107
[Fact]
108108
public async Task NotFoundReturnsDefault()
109109
{
@@ -147,7 +147,7 @@ await WithProduct(apiRoot, async product =>
147147
Assert.True(sendHead.IsSuccess());
148148
Assert.Equal(HttpStatusCode.OK, sendHead.StatusCode);
149149
Assert.Equal("", sendHead.Body);
150-
150+
151151
var sendUnknownHead = await apiRoot.Products().WithKey(product.Key + "-unknown").Head().SendAsync();
152152
Assert.False(sendUnknownHead.IsSuccess());
153153
Assert.Equal(HttpStatusCode.NotFound, sendUnknownHead.StatusCode);

commercetools.Sdk/commercetools.Base.Client/ClientOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class ClientOptions
99
DecompressionMethods.Deflate | DecompressionMethods.GZip;
1010

1111
public bool ReadResponseAsStream { get; set; } = true;
12-
12+
1313
public bool NotFoundReturnsDefault { get; set; } = false;
1414
public bool HeadNotFoundReturnsDefault { get; set; } = false;
1515

commercetools.Sdk/commercetools.Base.Client/ErrorHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
2727
if (response is { IsSuccessStatusCode: true })
2828
return response;
2929

30-
if (response.StatusCode == HttpStatusCode.NotFound && (_notFoundReturnsEmpty || (_headNotFoundReturnsEmpty && request.Method == HttpMethod.Head) ))
30+
if (response.StatusCode == HttpStatusCode.NotFound && (_notFoundReturnsEmpty || (_headNotFoundReturnsEmpty && request.Method == HttpMethod.Head)))
3131
{
3232
response.Content = new EmptyContent();
3333
return response;

reference.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cae10cdd02689459b68469d567db1eacc1e4f60e

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,4 @@ e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a
310310
f28a1461a4122eed74c423156f1969ba204e6948
311311
e18cd8073ea975fe92c1bad4dea957b16ee0b1c4
312312
bfbd1780852675d9974bf71bea4afff569a4cc00
313+
ad99469046af42aaf1e65fe1a82a2188ba6a3a3f

0 commit comments

Comments
 (0)