about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2018-12-17 19:23:59 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2018-12-17 19:24:44 +0100
commit58db4c1a7e821d153ac0e1826a653498af83708d (patch)
treef13cac8a27a552347b85071b34f7eb0bf29568ec /nixos
parent19dd528b35a934a2d25cbb8eaf57c47ad379245b (diff)
downloadnixlib-58db4c1a7e821d153ac0e1826a653498af83708d.tar
nixlib-58db4c1a7e821d153ac0e1826a653498af83708d.tar.gz
nixlib-58db4c1a7e821d153ac0e1826a653498af83708d.tar.bz2
nixlib-58db4c1a7e821d153ac0e1826a653498af83708d.tar.lz
nixlib-58db4c1a7e821d153ac0e1826a653498af83708d.tar.xz
nixlib-58db4c1a7e821d153ac0e1826a653498af83708d.tar.zst
nixlib-58db4c1a7e821d153ac0e1826a653498af83708d.zip
Revert "nixos/tests: add clamav test"
This reverts commit 6433f3b13b11c403065b86d43bb1d3ccceba6b71.

Fixes #52446.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/clamav.nix37
2 files changed, 0 insertions, 38 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index ab1d32b911ef..ca5015ded3e8 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -39,7 +39,6 @@ in
   cfssl = handleTestOn ["x86_64-linux"] ./cfssl.nix {};
   chromium = (handleTestOn ["x86_64-linux"] ./chromium.nix {}).stable or {};
   cjdns = handleTest ./cjdns.nix {};
-  clamav = handleTest ./clamav.nix {};
   cloud-init = handleTest ./cloud-init.nix {};
   codimd = handleTest ./codimd.nix {};
   containers-bridge = handleTest ./containers-bridge.nix {};
diff --git a/nixos/tests/clamav.nix b/nixos/tests/clamav.nix
deleted file mode 100644
index 84a08bcc49f3..000000000000
--- a/nixos/tests/clamav.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-import ./make-test.nix ({ pkgs, ... }: let
-
-  eicarTestFile = pkgs.fetchurl {
-    url = "http://2016.eicar.org/download/eicar.com.txt";
-    sha256 = "03zxa7vap2jkqjif4bzcjp33yrnip5yrz2bisia9wj5npwdh4ni7";
-  };
-
-  clamavMain = builtins.fetchurl "http://database.clamav.net/main.cvd";
-  clamavDaily = builtins.fetchurl "http://database.clamav.net/daily.cvd";
-  clamavBytecode = builtins.fetchurl "http://database.clamav.net/bytecode.cvd";
-
-in {
-  name = "clamav";
-  meta = with pkgs.stdenv.lib.maintainers; {
-    maintainers = [ fpletz ];
-  };
-
-  nodes.machine = { ... }: {
-    virtualisation.memorySize = 1024;
-
-    services.clamav.daemon.enable = true;
-    systemd.services.clamav-daemon.preStart = ''
-      mkdir -p /var/lib/clamav
-      ln -sf ${clamavMain} /var/lib/clamav/main.cvd
-      ln -sf ${clamavDaily} /var/lib/clamav/daily.cvd
-      ln -sf ${clamavBytecode} /var/lib/clamav/bytecode.cvd
-    '';
-  };
-
-  testScript = ''
-    startAll;
-    $machine->waitForUnit("multi-user.target");
-    $machine->waitForUnit("clamav-daemon.service");
-    $machine->waitForFile("/run/clamav/clamd.ctl");
-    $machine->fail("clamdscan ${eicarTestFile}");
-  '';
-})