Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/corelib/Providers/Rackspace/ProviderBase`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,12 @@ protected Response StreamRESTRequest(CloudIdentity identity, Uri absoluteUri, Ht
/// The base implementation returns a <see cref="JsonRequestSettings"/> object initialized with the following values.
///
/// <list type="bullet">
/// <item>The <see cref="RequestSettings.RetryCount"/> is 2.</item>
/// <item>The <see cref="RequestSettings.RetryCount"/> is 0.</item>
/// <item>The <see cref="RequestSettings.RetryDelay"/> is 200 milliseconds.</item>
/// <item>The <see cref="RequestSettings.Non200SuccessCodes"/> contains <see cref="HttpStatusCode.Unauthorized"/> and <see cref="HttpStatusCode.Conflict"/>, along with the values in <paramref name="non200SuccessCodes"/> (if any).</item>
/// <item>The <see cref="RequestSettings.UserAgent"/> is set to <see cref="UserAgentGenerator.UserAgent"/>.</item>
/// <item>The <see cref="RequestSettings.AllowZeroContentLength"/> is set to <see langword="true"/>.</item>
/// <item>The <see cref="RequestSettings.ConnectionLimit"/> is set to <see cref="ConnectionLimit"/>.</item>
/// <item>Other properties are set to the default values for <see cref="JsonRequestSettings"/>.</item>
/// </list>
///
Expand All @@ -629,6 +631,7 @@ protected virtual RequestSettings BuildDefaultRequestSettings(IEnumerable<HttpSt
RetryDelay = TimeSpan.FromMilliseconds(200),
Non200SuccessCodes = non200SuccessCodesAggregate,
UserAgent = UserAgentGenerator.UserAgent,
AllowZeroContentLength = true,
ConnectionLimit = ConnectionLimit,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ public void TestCreateObjectWithMetadata()
[TestMethod]
[TestCategory(TestCategories.User)]
[TestCategory(TestCategories.ObjectStorage)]
[DeploymentItem("DarkKnightRises.jpg")]
[DeploymentItem("Providers/Rackspace/CloudFiles/DarkKnightRises.jpg")]
public void TestCreateLargeObject()
{
IObjectStorageProvider provider = Bootstrapper.CreateObjectStorageProvider();
Expand Down Expand Up @@ -1648,7 +1648,7 @@ public void TestCreateLargeObject()
[TestMethod]
[TestCategory(TestCategories.User)]
[TestCategory(TestCategories.ObjectStorage)]
[DeploymentItem("DarkKnightRises.jpg")]
[DeploymentItem("Providers/Rackspace/CloudFiles/DarkKnightRises.jpg")]
public void TestVerifyLargeObjectETag()
{
IObjectStorageProvider provider = Bootstrapper.CreateObjectStorageProvider();
Expand Down Expand Up @@ -1698,7 +1698,7 @@ public void TestVerifyLargeObjectETag()
[TestMethod]
[TestCategory(TestCategories.User)]
[TestCategory(TestCategories.ObjectStorage)]
[DeploymentItem("DarkKnightRises.jpg")]
[DeploymentItem("Providers/Rackspace/CloudFiles/DarkKnightRises.jpg")]
public void TestExtractArchiveTar()
{
CloudFilesProvider provider = (CloudFilesProvider)Bootstrapper.CreateObjectStorageProvider();
Expand Down Expand Up @@ -1750,7 +1750,7 @@ public void TestExtractArchiveTar()
[TestMethod]
[TestCategory(TestCategories.User)]
[TestCategory(TestCategories.ObjectStorage)]
[DeploymentItem("DarkKnightRises.jpg")]
[DeploymentItem("Providers/Rackspace/CloudFiles/DarkKnightRises.jpg")]
public void TestExtractArchiveTarGz()
{
CloudFilesProvider provider = (CloudFilesProvider)Bootstrapper.CreateObjectStorageProvider();
Expand Down Expand Up @@ -1807,7 +1807,7 @@ public void TestExtractArchiveTarGz()
[TestMethod]
[TestCategory(TestCategories.User)]
[TestCategory(TestCategories.ObjectStorage)]
[DeploymentItem("DarkKnightRises.jpg")]
[DeploymentItem("Providers/Rackspace/CloudFiles/DarkKnightRises.jpg")]
public void TestExtractArchiveTarBz2()
{
CloudFilesProvider provider = (CloudFilesProvider)Bootstrapper.CreateObjectStorageProvider();
Expand Down Expand Up @@ -1863,7 +1863,7 @@ public void TestExtractArchiveTarBz2()
[TestMethod]
[TestCategory(TestCategories.User)]
[TestCategory(TestCategories.ObjectStorage)]
[DeploymentItem("DarkKnightRises.jpg")]
[DeploymentItem("Providers/Rackspace/CloudFiles/DarkKnightRises.jpg")]
public void TestExtractArchiveTarGzCreateContainer()
{
CloudFilesProvider provider = (CloudFilesProvider)Bootstrapper.CreateObjectStorageProvider();
Expand Down
2 changes: 1 addition & 1 deletion src/testing/integration/integration.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="Providers\Rackspace\CloudFiles\DarkKnightRises.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down