diff options
| author | Michael Hoang <Enzime@users.noreply.github.com> | 2024-10-04 09:44:43 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-04 09:44:43 +1000 |
| commit | c266b57bbea24083de4aaedd0921da1e46b2bd9f (patch) | |
| tree | f8cd427346216ac4735b3cd1f555e6535ed0d7bd /tests | |
| parent | f61d5f2051a387a15817007220e9fb3bbead57b3 (diff) | |
| parent | 239d802869a30bb45d4403e8f63a57a61f6910d9 (diff) | |
Merge pull request #1077 from rsrohitsingh682/add-netadata
feat: add netdata service
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/services-netdata.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/services-netdata.nix b/tests/services-netdata.nix new file mode 100644 index 0000000..6759677 --- /dev/null +++ b/tests/services-netdata.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + netdata = pkgs.runCommand "netdata-0.0.0" {} "mkdir $out"; +in +{ + services.netdata = { + enable = true; + package = netdata; + }; + + test = '' + echo >&2 "checking netdata service in launchd daemons" + grep "netdata" ${config.out}/Library/LaunchDaemons/netdata.plist + grep "${netdata}/bin/netdata" ${config.out}/Library/LaunchDaemons/netdata.plist + ''; +} |
