0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixosTests.cadvisor: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-06-07 18:50:53 +08:00
parent 4e792f525e
commit 2e4fac6dfd
No known key found for this signature in database
GPG key ID: ED1807251A7DA08F
2 changed files with 28 additions and 34 deletions

View file

@ -283,7 +283,7 @@ in
buildkite-agents = runTest ./buildkite-agents.nix;
c2fmzq = runTest ./c2fmzq.nix;
caddy = runTest ./caddy.nix;
cadvisor = handleTestOn [ "x86_64-linux" ] ./cadvisor.nix { };
cadvisor = runTestOn [ "x86_64-linux" ] ./cadvisor.nix;
cage = runTest ./cage.nix;
cagebreak = runTest ./cagebreak.nix;
calibre-web = runTest ./calibre-web.nix;

View file

@ -1,19 +1,14 @@
import ./make-test-python.nix (
{ lib, pkgs, ... }:
{
{ lib, ... }:
{
name = "cadvisor";
meta.maintainers = with lib.maintainers; [ offline ];
nodes = {
machine =
{ ... }:
{
machine = {
services.cadvisor.enable = true;
};
influxdb =
{ lib, ... }:
{
influxdb = {
services.cadvisor.enable = true;
services.cadvisor.storageDriver = "influxdb";
services.influxdb.enable = true;
@ -35,5 +30,4 @@ import ./make-test-python.nix (
influxdb.wait_for_unit("cadvisor.service")
influxdb.succeed("curl -f http://localhost:8080/containers/")
'';
}
)
}