mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
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:
parent
0e349bdc76
commit
3fdac78c28
5 changed files with 5 additions and 5 deletions
|
@ -78,7 +78,7 @@ in
|
||||||
s3.wait_for_unit("minio.service")
|
s3.wait_for_unit("minio.service")
|
||||||
s3.wait_for_open_port(9000)
|
s3.wait_for_open_port(9000)
|
||||||
s3.succeed(
|
s3.succeed(
|
||||||
"mc config host add minio "
|
"mc alias set minio "
|
||||||
+ "http://localhost:9000 "
|
+ "http://localhost:9000 "
|
||||||
+ "${accessKey} ${secretKey} --api s3v4",
|
+ "${accessKey} ${secretKey} --api s3v4",
|
||||||
"mc mb minio/attic",
|
"mc mb minio/attic",
|
||||||
|
|
|
@ -126,7 +126,7 @@ runTest (
|
||||||
|
|
||||||
with subtest("Check if file is in S3"):
|
with subtest("Check if file is in S3"):
|
||||||
nextcloud.succeed(
|
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')
|
files = nextcloud.succeed('mc ls minio/nextcloud|sort').strip().split('\n')
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ in
|
||||||
|
|
||||||
# Create a test bucket on the server
|
# Create a test bucket on the server
|
||||||
machine.succeed(
|
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")
|
machine.succeed("mc mb minio/outline")
|
||||||
|
|
||||||
|
|
|
@ -234,7 +234,7 @@ import ./make-test-python.nix {
|
||||||
s3.wait_for_unit("minio.service")
|
s3.wait_for_unit("minio.service")
|
||||||
s3.wait_for_open_port(${toString minioPort})
|
s3.wait_for_open_port(${toString minioPort})
|
||||||
s3.succeed(
|
s3.succeed(
|
||||||
"mc config host add minio "
|
"mc alias set minio "
|
||||||
+ "http://localhost:${toString minioPort} "
|
+ "http://localhost:${toString minioPort} "
|
||||||
+ "${s3.accessKey} ${s3.secretKey} --api s3v4",
|
+ "${s3.accessKey} ${s3.secretKey} --api s3v4",
|
||||||
"mc mb minio/thanos-bucket",
|
"mc mb minio/thanos-bucket",
|
||||||
|
|
|
@ -141,7 +141,7 @@ in
|
||||||
machine.wait_for_unit("lasuite-docs-collaboration-server.service")
|
machine.wait_for_unit("lasuite-docs-collaboration-server.service")
|
||||||
|
|
||||||
with subtest("Create S3 bucket"):
|
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")
|
machine.succeed("mc mb lasuite-docs")
|
||||||
|
|
||||||
with subtest("Wait for web servers to start"):
|
with subtest("Wait for web servers to start"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue