コード例 #1
0
ファイル: KeyNameTests.cs プロジェクト: andyhopp/aws-sdk-net
        public void TestKeyNameWithAwkwardChars_AWS4Signing()
        {
            var original = AWSConfigsS3.UseSignatureVersion4;

            AWSConfigsS3.UseSignatureVersion4 = true;
            try
            {
                IAmazonS3 s3Client = new AmazonS3Client();

                foreach (var k in AwkwardKeyNameBases)
                {
                    var keyName = k + ".SigV4.AWS2.CLRv" + Environment.Version;
                    S3TestUtils.PutAndGetObjectTestHelper(s3Client, bucketName, keyName);
                }
            }
            finally
            {
                AWSConfigsS3.UseSignatureVersion4 = original;
            }
        }
コード例 #2
0
 public void PutObjectChunked()
 {
     S3TestUtils.PutAndGetObjectTestHelper(Client, _mrapArn, "dotnet-sdk-test-chunked");
 }
コード例 #3
0
        public void PutAndGetQuestionableKeys(string keyVariant)
        {
            var keyName = "dotnet-sdk-test-" + keyVariant;

            S3TestUtils.PutAndGetObjectTestHelper(Client, _mrapArn, keyName, false);
        }
コード例 #4
0
 public void PutObjectUnchunkedAndUnsigned()
 {
     S3TestUtils.PutAndGetObjectTestHelper(Client, _mrapArn, "dotnet-sdk-test-unchunked-unsigned", false, true);
 }