nixosTests: migrate mc config host add to mc alias set

The former command was deprecated in 2020 and removed in one of the last
releases.
This commit is contained in:
Martin Weinelt 2025-06-05 05:36:17 +02:00
parent 0e349bdc76
commit 3fdac78c28
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
5 changed files with 5 additions and 5 deletions

View file

@ -78,7 +78,7 @@ in
s3.wait_for_unit("minio.service")
s3.wait_for_open_port(9000)
s3.succeed(
"mc config host add minio "
"mc alias set minio "
+ "http://localhost:9000 "
+ "${accessKey} ${secretKey} --api s3v4",
"mc mb minio/attic",

View file

@ -126,7 +126,7 @@ runTest (
with subtest("Check if file is in S3"):
nextcloud.succeed(
"mc config host add minio https://acme.test ${accessKey} ${secretKey} --api s3v4"
"mc alias set minio https://acme.test ${accessKey} ${secretKey} --api s3v4"
)
files = nextcloud.succeed('mc ls minio/nextcloud|sort').strip().split('\n')

View file

@ -44,7 +44,7 @@ in
# Create a test bucket on the server
machine.succeed(
"mc config host add minio http://localhost:9000 ${accessKey} ${secretKey} --api s3v4"
"mc alias set minio http://localhost:9000 ${accessKey} ${secretKey} --api s3v4"
)
machine.succeed("mc mb minio/outline")

View file

@ -234,7 +234,7 @@ import ./make-test-python.nix {
s3.wait_for_unit("minio.service")
s3.wait_for_open_port(${toString minioPort})
s3.succeed(
"mc config host add minio "
"mc alias set minio "
+ "http://localhost:${toString minioPort} "
+ "${s3.accessKey} ${s3.secretKey} --api s3v4",
"mc mb minio/thanos-bucket",

View file

@ -141,7 +141,7 @@ in
machine.wait_for_unit("lasuite-docs-collaboration-server.service")
with subtest("Create S3 bucket"):
machine.succeed("mc config host add minio http://${s3Domain} ${minioAccessKey} ${minioSecretKey} --api s3v4")
machine.succeed("mc alias set minio http://${s3Domain} ${minioAccessKey} ${minioSecretKey} --api s3v4")
machine.succeed("mc mb lasuite-docs")
with subtest("Wait for web servers to start"):