diff options
author | Pascal Bach <pascal.bach@nextrem.ch> | 2017-06-25 18:43:10 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-06-26 04:07:37 +0200 |
commit | aa66c9ad372448277ff113bd78039e6a30034662 (patch) | |
tree | 1fc60c55a9484cf4821b58f17e454f08deaac12b /nixos/tests/minio.nix | |
parent | e5def4442e6d4ce66bf66716dc85c97481fce156 (diff) | |
download | nixpkgs-aa66c9ad372448277ff113bd78039e6a30034662.tar nixpkgs-aa66c9ad372448277ff113bd78039e6a30034662.tar.gz nixpkgs-aa66c9ad372448277ff113bd78039e6a30034662.tar.bz2 nixpkgs-aa66c9ad372448277ff113bd78039e6a30034662.tar.lz nixpkgs-aa66c9ad372448277ff113bd78039e6a30034662.tar.xz nixpkgs-aa66c9ad372448277ff113bd78039e6a30034662.tar.zst nixpkgs-aa66c9ad372448277ff113bd78039e6a30034662.zip |
minio service: add inital service
features: - change listen port and address - configure config and data directory - basic test to check if minio server starts
Diffstat (limited to 'nixos/tests/minio.nix')
-rw-r--r-- | nixos/tests/minio.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/minio.nix b/nixos/tests/minio.nix new file mode 100644 index 00000000000..462a3bc4768 --- /dev/null +++ b/nixos/tests/minio.nix @@ -0,0 +1,19 @@ +import ./make-test.nix ({ pkgs, ...} : { + name = "minio"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ bachp ]; + }; + + machine = { config, pkgs, ... }: { + services.minio.enable = true; + }; + + testScript = + '' + startAll; + $machine->waitForUnit("minio.service"); + $machine->waitForOpenPort(9000); + $machine->succeed("curl --fail http://localhost:9000/minio/index.html"); + $machine->shutdown; + ''; +}) |