nixosTests.ceph-single-node-bluestore-dmcrypt: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-06-07 19:25:34 +08:00
parent 644443d59a
commit 4db8ad5fa6
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F
2 changed files with 249 additions and 253 deletions

View File

@ -301,10 +301,10 @@ in
"aarch64-linux"
"x86_64-linux"
] ./ceph-single-node-bluestore.nix;
ceph-single-node-bluestore-dmcrypt = handleTestOn [
ceph-single-node-bluestore-dmcrypt = runTestOn [
"aarch64-linux"
"x86_64-linux"
] ./ceph-single-node-bluestore-dmcrypt.nix { };
] ./ceph-single-node-bluestore-dmcrypt.nix;
certmgr = handleTest ./certmgr.nix { };
cfssl = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./cfssl.nix { };
cgit = runTest ./cgit.nix;

View File

@ -1,5 +1,4 @@
import ./make-test-python.nix (
{ pkgs, lib, ... }:
{ lib, ... }:
let
# the single node ipv6 address
@ -12,20 +11,21 @@ import ./make-test-python.nix (
"1" = "bd5a6f49-69d5-428c-ac25-a99f0c44375c";
"2" = "c90de6c7-86c6-41da-9694-e794096dfc5c";
};
in
{
name = "basic-single-node-ceph-cluster-bluestore-dmcrypt";
meta = {
maintainers = with lib.maintainers; [
meta.maintainers = with lib.maintainers; [
benaryorg
nh2
];
};
nodes = {
ceph =
{ pkgs, config, ... }:
nodes.ceph =
{
lib,
pkgs,
config,
...
}:
{
# disks for bluestore
virtualisation.emptyDiskImages = [
@ -143,11 +143,8 @@ import ./make-test-python.nix (
builtins.listToAttrs
];
};
};
testScript =
{ ... }:
''
testScript = ''
start_all()
ceph.wait_for_unit("default.target")
@ -270,4 +267,3 @@ import ./make-test-python.nix (
ceph.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
'';
}
)