fix: azure tests and add azure ci test

This commit is contained in:
Ben McClelland
2024-09-23 09:10:52 -07:00
parent 9f9f895522
commit 3a9cbfcbd6
11 changed files with 133 additions and 36 deletions
+10
View File
@@ -37,6 +37,7 @@ var (
pathStyle bool
checksumDisable bool
versioningEnabled bool
azureTests bool
)
func testCommand() *cli.Command {
@@ -95,6 +96,12 @@ func initTestCommands() []*cli.Command {
Destination: &versioningEnabled,
Aliases: []string{"vs"},
},
&cli.BoolFlag{
Name: "azure-test-mode",
Usage: "Skips tests that are not supported by Azure",
Destination: &azureTests,
Aliases: []string{"azure"},
},
},
},
{
@@ -288,6 +295,9 @@ func getAction(tf testFunc) func(*cli.Context) error {
if versioningEnabled {
opts = append(opts, integration.WithVersioningEnabled())
}
if azureTests {
opts = append(opts, integration.WithAzureMode())
}
s := integration.NewS3Conf(opts...)
tf(s)