summary refs log tree commit diff
path: root/nixos/tests/nitter.nix
diff options
context:
space:
mode:
authorAlexandre Iooss <erdnaxe@crans.org>2021-07-26 12:00:05 +0200
committerAlexandre Iooss <erdnaxe@crans.org>2021-07-30 15:19:49 +0200
commit534dbcb28f654c770a6e226e66c4299182494904 (patch)
treeeaa91e85f06c977ddf78afeb0fce3043172f349b /nixos/tests/nitter.nix
parentc5e0a9980b4f92c2a47bf44e507bdb7450037f8c (diff)
downloadnixpkgs-534dbcb28f654c770a6e226e66c4299182494904.tar
nixpkgs-534dbcb28f654c770a6e226e66c4299182494904.tar.gz
nixpkgs-534dbcb28f654c770a6e226e66c4299182494904.tar.bz2
nixpkgs-534dbcb28f654c770a6e226e66c4299182494904.tar.lz
nixpkgs-534dbcb28f654c770a6e226e66c4299182494904.tar.xz
nixpkgs-534dbcb28f654c770a6e226e66c4299182494904.tar.zst
nixpkgs-534dbcb28f654c770a6e226e66c4299182494904.zip
nixos/nitter: init module and test
Diffstat (limited to 'nixos/tests/nitter.nix')
-rw-r--r--nixos/tests/nitter.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/tests/nitter.nix b/nixos/tests/nitter.nix
new file mode 100644
index 00000000000..e17f1c47343
--- /dev/null
+++ b/nixos/tests/nitter.nix
@@ -0,0 +1,16 @@
+import ./make-test-python.nix ({ pkgs, ... }:
+
+{
+  name = "nitter";
+  meta.maintainers = with pkgs.lib.maintainers; [ erdnaxe ];
+
+  nodes.machine = {
+    services.nitter.enable = true;
+  };
+
+  testScript = ''
+    machine.wait_for_unit("nitter.service")
+    machine.wait_for_open_port("8080")
+    machine.succeed("curl --fail http://localhost:8080/")
+  '';
+})