Skip to content

Commit 397fff3

Browse files
committed
Add test for encoding
1 parent caa8cd1 commit 397fff3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Genbox.ProviderTests.Code;
2+
using Genbox.SimpleS3.Core.Abstracts;
3+
using Genbox.SimpleS3.Core.Extensions;
4+
using Genbox.SimpleS3.Utility.Shared;
5+
6+
namespace Genbox.ProviderTests.Misc;
7+
8+
public class MiscTests : TestBase
9+
{
10+
[Theory]
11+
[MultipleProviders(S3Provider.AmazonS3)]
12+
public async Task IsEncodingCorrect(S3Provider _, string bucket, ISimpleClient client)
13+
{
14+
//This tests if '=' is NOT encoded. S3 does not use encoding of paths in signed requests, but all other AWS APIs do
15+
var putResp = await client.PutObjectStringAsync(bucket, "a=a", "hello");
16+
Assert.Equal(200, putResp.StatusCode);
17+
}
18+
}

0 commit comments

Comments
 (0)