Statistics
| Branch: | Revision:

root / trunk / Pithos.Network.Test / CloudFilesClientTest.cs @ 1caef52e

History | View | Annotate | Download (826 Bytes)

1
using System;
2
using System.Collections.Generic;
3
using System.IO;
4
using System.Linq;
5
using System.Text;
6
using NUnit.Framework;
7

    
8
namespace Pithos.Network.Test
9
{
10
    [TestFixture]
11
    class CloudFilesClientTest
12
    {
13
        [Test]
14
        public void TestPutHashMap()
15
        {
16
            CloudFilesClient client=new CloudFilesClient();
17
            client.AuthenticationUrl = @"https://pithos.dev.grnet.gr";
18
            client.Authenticate("890329@vho.grnet.gr","24989dce4e0fcb072f8cb60c8922be19");
19
            var fileName = @"Long Dark Tea Time of the Soul, The.txt";
20
            var treeHash=Signature.CalculateTreeHash(Path.Combine(@"e:\pithos\" ,fileName), 4*1024*1024 , "sha256");
21
            var result=client.PutHashMap("PITHOS", fileName, treeHash).Result;
22

    
23
            Assert.IsNotEmpty(result);
24
        }
25
    }
26
}