public void FolderFileParameters() { var queryParams = new Dictionary <string, string>() { { "marker", "1" }, { "max-keys", "100" } }; string uri = S3V4URLHelpers.CreateURIString("us-west-2", "dxw", "MyFolder/MyFile1.txt", queryParams); Assert.AreEqual("https://dxw.s3-us-west-2.amazonaws.com/MyFolder/MyFile1.txt?marker=1&max-keys=100", uri); }
public void FolderFileParametersEncoding() { var queryParams = new Dictionary <string, string>() { { "delimiter", "/" } }; string uri = S3V4URLHelpers.CreateURIString("us-west-2", "dxw", "MyFolder/", queryParams); Assert.AreEqual("https://dxw.s3-us-west-2.amazonaws.com/MyFolder/?delimiter=%2F", uri); }
public void FolderFileParameterEmpty() { var queryParams = new Dictionary <string, string>() { { "acl", "" } }; string uri = S3V4URLHelpers.CreateURIString("us-west-2", "dxw", "MyFolder/MyFile1.txt", queryParams); Assert.AreEqual("https://dxw.s3-us-west-2.amazonaws.com/MyFolder/MyFile1.txt?acl=", uri); }
public void FolderFile() { string uri = S3V4URLHelpers.CreateURIString("us-west-2", "dxw", "MyFolder/MyFile1.txt"); Assert.AreEqual("https://dxw.s3-us-west-2.amazonaws.com/MyFolder/MyFile1.txt", uri); }
public void BucketRoot() { string uri = S3V4URLHelpers.CreateURIString("us-west-2", "dxw"); Assert.AreEqual("https://dxw.s3-us-west-2.amazonaws.com/", uri); }
public void EmptyRegion() { string uri = S3V4URLHelpers.CreateURIString(); Assert.AreEqual("https://s3.amazonaws.com/", uri); }
public void FolderRoot() { string uri = S3V4URLHelpers.CreateURIString("us-west-2", "dxw", "MyFolder/"); Aver.AreEqual("https://dxw.s3-us-west-2.amazonaws.com/MyFolder/", uri); }