Ejemplo n.º 1
0
        public async Task DeleteMarker()
        {
            await UploadAsync(nameof(DeleteMarker)).ConfigureAwait(false);

            DeleteObjectResponse resp = await ObjectClient.DeleteObjectAsync(BucketName, nameof(DeleteMarker)).ConfigureAwait(false);

            Assert.True(resp.IsDeleteMarker);
        }
Ejemplo n.º 2
0
        public async Task DeleteObjectRequestPayer()
        {
            PutObjectResponse putResp = await ObjectClient.PutObjectAsync(BucketName, nameof(DeleteObjectRequestPayer), null, req => req.RequestPayer = Payer.Requester).ConfigureAwait(false);

            Assert.True(putResp.RequestCharged);

            DeleteObjectResponse delResp = await ObjectClient.DeleteObjectAsync(BucketName, nameof(DeleteObjectRequestPayer), req => req.RequestPayer = Payer.Requester).ConfigureAwait(false);

            Assert.True(delResp.RequestCharged);
        }
Ejemplo n.º 3
0
        public async Task BasicCRDTest()
        {
            PutObjectResponse pResp = await UploadAsync(nameof(BasicCRDTest)).ConfigureAwait(false);

            Assert.Equal(200, pResp.StatusCode);

            await AssertAsync(nameof(BasicCRDTest)).ConfigureAwait(false);

            DeleteObjectResponse dResp = await ObjectClient.DeleteObjectAsync(BucketName, nameof(BasicCRDTest)).ConfigureAwait(false);

            Assert.Equal(204, dResp.StatusCode);
        }