Revision 2b0ec5b8 trunk/Pithos.Network.Test/CloudFilesClientTest.cs
b/trunk/Pithos.Network.Test/CloudFilesClientTest.cs | ||
---|---|---|
77 | 77 |
} |
78 | 78 |
|
79 | 79 |
|
80 |
[Test] |
|
81 |
public void TestBlockRange() |
|
82 |
{ |
|
83 |
var account = "--"; |
|
84 |
var apiKey = "--"; |
|
85 |
|
|
86 |
var client = new CloudFilesClient(account, apiKey) |
|
87 |
{ |
|
88 |
AuthenticationUrl = @"https://pithos.dev.grnet.gr", |
|
89 |
UsePithos = true |
|
90 |
}; |
|
91 |
|
|
92 |
var blockSize = 4*1024*1024L; |
|
93 |
|
|
94 |
long endBlock = 512*blockSize; |
|
95 |
//ulong endBlokcL = 512*blockSize; |
|
96 |
|
|
97 |
Assert.That(endBlock,Is.GreaterThan(0)); |
|
98 |
/* |
|
99 |
client.GetBlock(account,"Pithos",new Uri("somefile"),) |
|
100 |
//var accountInfo = client.Authenticate(); |
|
101 |
var containers = client.ListContainers(accountInfo.UserName); |
|
102 |
*/ |
|
103 |
} |
|
104 |
|
|
80 | 105 |
|
81 | 106 |
|
82 | 107 |
} |
Also available in: Unified diff