From ba084b355a7f08b82bdda5e027b61b89901495e4 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Mon, 15 Sep 2014 06:57:12 -0500 Subject: [PATCH 1/3] Updated documentation for BuildDefaultRequestSettings to correctly reflect the default values --- src/corelib/Providers/Rackspace/ProviderBase`1.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/corelib/Providers/Rackspace/ProviderBase`1.cs b/src/corelib/Providers/Rackspace/ProviderBase`1.cs index cbe497257..9cd04aede 100644 --- a/src/corelib/Providers/Rackspace/ProviderBase`1.cs +++ b/src/corelib/Providers/Rackspace/ProviderBase`1.cs @@ -606,10 +606,11 @@ protected Response StreamRESTRequest(CloudIdentity identity, Uri absoluteUri, Ht /// The base implementation returns a object initialized with the following values. /// /// - /// The is 2. + /// The is 0. /// The is 200 milliseconds. /// The contains and , along with the values in (if any). /// The is set to . + /// The is set to . /// Other properties are set to the default values for . /// /// From 7bdfadd55cb507886fa712a159ebf373f4828450 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Mon, 15 Sep 2014 06:57:48 -0500 Subject: [PATCH 2/3] Include a Content-Length header with PUT/POST requests that do not include a body (fixes #422) --- src/corelib/Providers/Rackspace/ProviderBase`1.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/Providers/Rackspace/ProviderBase`1.cs b/src/corelib/Providers/Rackspace/ProviderBase`1.cs index 9cd04aede..597f64182 100644 --- a/src/corelib/Providers/Rackspace/ProviderBase`1.cs +++ b/src/corelib/Providers/Rackspace/ProviderBase`1.cs @@ -610,6 +610,7 @@ protected Response StreamRESTRequest(CloudIdentity identity, Uri absoluteUri, Ht /// The is 200 milliseconds. /// The contains and , along with the values in (if any). /// The is set to . + /// The is set to . /// The is set to . /// Other properties are set to the default values for . /// @@ -630,6 +631,7 @@ protected virtual RequestSettings BuildDefaultRequestSettings(IEnumerable Date: Mon, 15 Sep 2014 07:12:43 -0500 Subject: [PATCH 3/3] Fix paths in DeploymentItem attributes in UserObjectStorageTests --- .../Providers/Rackspace/UserObjectStorageTests.cs | 12 ++++++------ src/testing/integration/integration.csproj | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/testing/integration/Providers/Rackspace/UserObjectStorageTests.cs b/src/testing/integration/Providers/Rackspace/UserObjectStorageTests.cs index aecc71202..4b8e959e3 100644 --- a/src/testing/integration/Providers/Rackspace/UserObjectStorageTests.cs +++ b/src/testing/integration/Providers/Rackspace/UserObjectStorageTests.cs @@ -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(); @@ -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(); @@ -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(); @@ -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(); @@ -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(); @@ -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(); diff --git a/src/testing/integration/integration.csproj b/src/testing/integration/integration.csproj index 7ff6b02ae..86de092f8 100644 --- a/src/testing/integration/integration.csproj +++ b/src/testing/integration/integration.csproj @@ -137,7 +137,7 @@ - Always + PreserveNewest