diff options
Diffstat (limited to 'nixos/tests/glance.nix')
-rw-r--r-- | nixos/tests/glance.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixos/tests/glance.nix b/nixos/tests/glance.nix new file mode 100644 index 0000000000000..daa3d9a4a8160 --- /dev/null +++ b/nixos/tests/glance.nix @@ -0,0 +1,36 @@ +{ lib, ... }: + +{ + name = "glance"; + + nodes = { + machine_default = + { pkgs, ... }: + { + services.glance = { + enable = true; + }; + }; + + machine_custom_port = + { pkgs, ... }: + { + services.glance = { + enable = true; + settings.server.port = 5678; + }; + }; + }; + + testScript = '' + machine_default.start() + machine_default.wait_for_unit("glance.service") + machine_default.wait_for_open_port(8080) + + machine_custom_port.start() + machine_custom_port.wait_for_unit("glance.service") + machine_custom_port.wait_for_open_port(5678) + ''; + + meta.maintainers = [ lib.maintainers.drupol ]; +} |