mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
nixosTests.oddjobd: init
This commit is contained in:
parent
274e6aa01f
commit
b0f78fba37
2 changed files with 24 additions and 0 deletions
|
@ -652,6 +652,7 @@ in {
|
||||||
nzbget = handleTest ./nzbget.nix {};
|
nzbget = handleTest ./nzbget.nix {};
|
||||||
nzbhydra2 = handleTest ./nzbhydra2.nix {};
|
nzbhydra2 = handleTest ./nzbhydra2.nix {};
|
||||||
ocis = handleTest ./ocis.nix {};
|
ocis = handleTest ./ocis.nix {};
|
||||||
|
oddjobd = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./oddjobd.nix {};
|
||||||
oh-my-zsh = handleTest ./oh-my-zsh.nix {};
|
oh-my-zsh = handleTest ./oh-my-zsh.nix {};
|
||||||
ollama = handleTest ./ollama.nix {};
|
ollama = handleTest ./ollama.nix {};
|
||||||
ombi = handleTest ./ombi.nix {};
|
ombi = handleTest ./ombi.nix {};
|
||||||
|
|
23
nixos/tests/oddjobd.nix
Normal file
23
nixos/tests/oddjobd.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
||||||
|
name = "oddjobd";
|
||||||
|
meta.maintainers = [ lib.maintainers.anthonyroussel ];
|
||||||
|
|
||||||
|
nodes.machine = { ... } : {
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.oddjob
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.oddjobd.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
start_all()
|
||||||
|
|
||||||
|
machine.wait_for_unit("oddjobd.service")
|
||||||
|
machine.wait_for_file("/run/oddjobd.pid")
|
||||||
|
|
||||||
|
with subtest("send oddjob listall request"):
|
||||||
|
result = machine.succeed("oddjob_request -s com.redhat.oddjob -o /com/redhat/oddjob -i com.redhat.oddjob listall")
|
||||||
|
assert ('(service="com.redhat.oddjob",object="/com/redhat/oddjob",interface="com.redhat.oddjob",method="listall")' in result)
|
||||||
|
'';
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue