Refactor S3 and Azure common code into ObjectRepository

This commit is contained in:
Caelan Sayler
2024-03-27 20:39:01 +00:00
parent 47007c8a2a
commit d098cc5a7f
10 changed files with 206 additions and 247 deletions

View File

@@ -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);
}
}

View File

@@ -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]

View File

@@ -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,

View File

@@ -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,