3
0
Fork 0
forked from mirrors/nixpkgs

nixosTests.minio: update minio-client command

This commit is contained in:
Mario Rodas 2020-05-02 04:20:00 -05:00
parent d7e1e8467a
commit bb7b63ac0b
No known key found for this signature in database
GPG key ID: 325649BCA6D53027
2 changed files with 4 additions and 2 deletions

View file

@ -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} S3v4" "mc config host add minio http://localhost:9000 ${accessKey} ${secretKey} --api s3v4"
) )
machine.succeed("mc mb minio/test-bucket") machine.succeed("mc mb minio/test-bucket")
machine.succeed("${minioPythonScript}") machine.succeed("${minioPythonScript}")

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }: { stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec { buildGoModule rec {
pname = "minio"; pname = "minio";
@ -19,6 +19,8 @@ buildGoModule rec {
-s -w -X github.com/minio/minio/cmd.Version=${version} -s -w -X github.com/minio/minio/cmd.Version=${version}
'']; ''];
passthru.tests.minio = nixosTests.minio;
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://www.minio.io/"; homepage = "https://www.minio.io/";
description = "An S3-compatible object storage server"; description = "An S3-compatible object storage server";