Esempio n. 1
0
        public void AbortMultipartUploadTest()
        {
            var           entity   = ufile.InitiateMultipartUpload(bigfilePath);
            FileResponse  response = new FileResponse();
            List <string> etags    = new List <string>();

            for (int i = 0; i < 100000; i++)
            {
                if (i == 1)
                {
                    response = ufile.AbortMultipartUpload(entity);
                    break;
                }

                var result = ufile.UploadPart(bigfilePath, i, entity);
                etags.Add(result.ETag);
            }

            Assert.AreEqual(response.RetCode, 0);
        }