nixos/clickhouse: Migrate tests from handleTest to runTest

This commit is contained in:
Jonathan Davies 2025-06-15 12:35:59 +00:00
parent 4d60b8f537
commit 2723c76503
No known key found for this signature in database
6 changed files with 450 additions and 462 deletions

View File

@ -306,7 +306,7 @@ in
cinnamon-wayland = runTest ./cinnamon-wayland.nix; cinnamon-wayland = runTest ./cinnamon-wayland.nix;
cjdns = runTest ./cjdns.nix; cjdns = runTest ./cjdns.nix;
clatd = runTest ./clatd.nix; clatd = runTest ./clatd.nix;
clickhouse = handleTest ./clickhouse { }; clickhouse = import ./clickhouse { inherit runTest; };
cloud-init = handleTest ./cloud-init.nix { }; cloud-init = handleTest ./cloud-init.nix { };
cloud-init-hostname = handleTest ./cloud-init-hostname.nix { }; cloud-init-hostname = handleTest ./cloud-init-hostname.nix { };
cloudlog = runTest ./cloudlog.nix; cloudlog = runTest ./cloudlog.nix;

View File

@ -1,4 +1,3 @@
import ../make-test-python.nix (
{ pkgs, ... }: { pkgs, ... }:
{ {
name = "clickhouse"; name = "clickhouse";
@ -32,4 +31,3 @@ import ../make-test-python.nix (
) )
''; '';
} }
)

View File

@ -1,12 +1,8 @@
{ { runTest }:
system ? builtins.currentSystem,
config ? { },
pkgs ? import ../../.. { inherit system config; },
}:
{ {
base = import ./base.nix { inherit system pkgs; }; base = runTest ./base.nix;
kafka = import ./kafka.nix { inherit system pkgs; }; kafka = runTest ./kafka.nix;
keeper = import ./keeper.nix { inherit system pkgs; }; keeper = runTest ./keeper.nix;
s3 = import ./s3.nix { inherit system pkgs; }; s3 = runTest ./s3.nix;
} }

View File

@ -1,4 +1,3 @@
import ../make-test-python.nix (
{ pkgs, ... }: { pkgs, ... }:
let let
@ -171,4 +170,3 @@ import ../make-test-python.nix (
) )
''; '';
} }
)

View File

@ -1,4 +1,3 @@
import ../make-test-python.nix (
{ lib, pkgs, ... }: { lib, pkgs, ... }:
rec { rec {
name = "clickhouse-keeper"; name = "clickhouse-keeper";
@ -182,4 +181,3 @@ import ../make-test-python.nix (
) )
''; '';
} }
)

View File

@ -1,4 +1,3 @@
import ../make-test-python.nix (
{ pkgs, ... }: { pkgs, ... }:
let let
@ -120,4 +119,3 @@ import ../make-test-python.nix (
)) ))
''; '';
} }
)