From aa66c9ad372448277ff113bd78039e6a30034662 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Sun, 25 Jun 2017 18:43:10 +0200 Subject: minio service: add inital service features: - change listen port and address - configure config and data directory - basic test to check if minio server starts --- nixos/tests/minio.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nixos/tests/minio.nix (limited to 'nixos/tests') 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; + ''; +}) -- cgit 1.4.1