Revision c53aa229 trunk/Pithos.Network.Test/SignatureTest.cs
b/trunk/Pithos.Network.Test/SignatureTest.cs | ||
---|---|---|
100 | 100 |
public void TestHashMapsEqual() |
101 | 101 |
{ |
102 | 102 |
|
103 |
CloudFilesClient client = new CloudFilesClient(); |
|
104 |
client.AuthenticationUrl = @"https://pithos.dev.grnet.gr"; |
|
105 |
client.UsePithos = true; |
|
106 | 103 |
var account = "890329@vho.grnet.gr"; |
107 |
client.Authenticate(account, "24989dce4e0fcb072f8cb60c8922be19"); |
|
104 |
var apiKey = "24989dce4e0fcb072f8cb60c8922be19"; |
|
105 |
var client = new CloudFilesClient(account, apiKey); |
|
106 |
client.AuthenticationUrl = @"https://pithos.dev.grnet.gr"; |
|
107 |
client.UsePithos = true; |
|
108 |
client.Authenticate(); |
|
108 | 109 |
var fileName = @"vlc-1.1.11-win32.exe"; |
109 | 110 |
var localHash= Signature.CalculateTreeHashAsync(Path.Combine(@"e:\pithos\", fileName), 4 * 1024 * 1024, "sha256").Result; |
110 | 111 |
var upHash= client.GetHashMap(fileName, account, "pithos").Result; |
Also available in: Unified diff