nixos/tests/victorialogs: init
This commit is contained in:
parent
ebfbc036ef
commit
3f9e587d44
@ -1469,6 +1469,7 @@ in
|
|||||||
vector = import ./vector { inherit runTest; };
|
vector = import ./vector { inherit runTest; };
|
||||||
velocity = runTest ./velocity.nix;
|
velocity = runTest ./velocity.nix;
|
||||||
vengi-tools = runTest ./vengi-tools.nix;
|
vengi-tools = runTest ./vengi-tools.nix;
|
||||||
|
victorialogs = runTest ./victorialogs.nix;
|
||||||
victoriametrics = handleTest ./victoriametrics { };
|
victoriametrics = handleTest ./victoriametrics { };
|
||||||
vikunja = runTest ./vikunja.nix;
|
vikunja = runTest ./vikunja.nix;
|
||||||
virtualbox = handleTestOn [ "x86_64-linux" ] ./virtualbox.nix { };
|
virtualbox = handleTestOn [ "x86_64-linux" ] ./virtualbox.nix { };
|
||||||
|
26
nixos/tests/victorialogs.nix
Normal file
26
nixos/tests/victorialogs.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
name = "victorialogs";
|
||||||
|
meta.maintainers = with lib.maintainers; [ marie ];
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.victorialogs.enable = true;
|
||||||
|
|
||||||
|
services.journald.upload = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
Upload.URL = "http://localhost:9428/insert/journald";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
environment.systemPackages = [ pkgs.curl ];
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
machine.wait_for_unit("victorialogs.service")
|
||||||
|
|
||||||
|
machine.succeed("echo 'meow' | systemd-cat -p info")
|
||||||
|
machine.wait_until_succeeds("curl --fail http://localhost:9428/select/logsql/query -d 'query=\"meow\"' | grep meow")
|
||||||
|
'';
|
||||||
|
}
|
@ -56,6 +56,11 @@ buildGoModule (finalAttrs: {
|
|||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
tests = {
|
||||||
|
inherit (nixosTests)
|
||||||
|
victorialogs
|
||||||
|
;
|
||||||
|
};
|
||||||
updateScript = nix-update-script {
|
updateScript = nix-update-script {
|
||||||
extraArgs = [ "--version-regex=(.*)-victorialogs" ];
|
extraArgs = [ "--version-regex=(.*)-victorialogs" ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user