mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Refactor S3 and Azure common code into ObjectRepository
This commit is contained in:
@@ -18,7 +18,7 @@ public abstract class AzureCommandTests<T> : BaseCommandTests<T>
|
||||
Assert.Equal("account-name", command.Account);
|
||||
Assert.Equal("shhhh", command.Key);
|
||||
Assert.Equal("https://endpoint/", command.Endpoint);
|
||||
Assert.Equal("mycontainer", command.Container);
|
||||
Assert.Equal("mycontainer", command.ContainerName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public abstract class S3CommandTests<T> : BaseCommandTests<T>
|
||||
Assert.Equal("some key", command.KeyId);
|
||||
Assert.Equal("shhhh", command.Secret);
|
||||
Assert.Equal("http://endpoint/", command.Endpoint);
|
||||
Assert.Equal("a-bucket", command.Bucket);
|
||||
Assert.Equal("a-bucket", command.ContainerName);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -33,7 +33,7 @@ public abstract class S3CommandTests<T> : BaseCommandTests<T>
|
||||
Assert.Equal("some key", command.KeyId);
|
||||
Assert.Equal("shhhh", command.Secret);
|
||||
Assert.Equal("us-west-1", command.Region);
|
||||
Assert.Equal("a-bucket", command.Bucket);
|
||||
Assert.Equal("a-bucket", command.ContainerName);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -47,7 +47,7 @@ public class AzureDeploymentTests
|
||||
var repo = new AzureRepository(logger);
|
||||
var options = new AzureUploadOptions {
|
||||
ReleaseDir = new DirectoryInfo(releaseDir),
|
||||
Container = B2_BUCKET,
|
||||
ContainerName = B2_BUCKET,
|
||||
Channel = channel,
|
||||
Endpoint = "https://" + B2_ENDPOINT,
|
||||
Account = B2_KEYID,
|
||||
|
||||
@@ -47,7 +47,7 @@ public class S3DeploymentTests
|
||||
var repo = new S3Repository(logger);
|
||||
var options = new S3UploadOptions {
|
||||
ReleaseDir = new DirectoryInfo(releaseDir),
|
||||
Bucket = B2_BUCKET,
|
||||
ContainerName = B2_BUCKET,
|
||||
Channel = channel,
|
||||
Endpoint = "https://" + B2_ENDPOINT,
|
||||
KeyId = B2_KEYID,
|
||||
|
||||
Reference in New Issue
Block a user