diff options
author | Minijackson <minijackson@riseup.net> | 2023-09-24 09:51:26 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-09-24 10:13:05 +0200 |
commit | 6c7e768420039f5757c6ef4999f267ec18492c90 (patch) | |
tree | 21f170eb594eaf4d73231b468f5b35b042fa3662 /nixos/tests/web-apps | |
parent | 397b1733f45dc601e82ab9e13d5d427167fc284e (diff) |
netbox_3_5: introduce alias
clears up ambiguity use that alias in tests Co-authored-by: Raito Bezarius <masterancpp@gmail.com>
Diffstat (limited to 'nixos/tests/web-apps')
-rw-r--r-- | nixos/tests/web-apps/netbox-upgrade.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/tests/web-apps/netbox-upgrade.nix b/nixos/tests/web-apps/netbox-upgrade.nix index 602cf8d889d4f..6b61d14d32caa 100644 --- a/nixos/tests/web-apps/netbox-upgrade.nix +++ b/nixos/tests/web-apps/netbox-upgrade.nix @@ -1,10 +1,11 @@ import ../make-test-python.nix ({ lib, pkgs, ... }: let oldNetbox = pkgs.netbox_3_3; + newNetbox = pkgs.netbox_3_5; in { name = "netbox-upgrade"; meta = with lib.maintainers; { - maintainers = [ minijackson ]; + maintainers = [ minijackson raitobezarius ]; }; nodes.machine = { config, ... }: { @@ -32,7 +33,7 @@ in { networking.firewall.allowedTCPPorts = [ 80 ]; - specialisation.upgrade.configuration.services.netbox.package = lib.mkForce pkgs.netbox; + specialisation.upgrade.configuration.services.netbox.package = lib.mkForce newNetbox; }; testScript = { nodes, ... }: @@ -43,7 +44,7 @@ in { (lib.concatStringsSep ".") ]; oldApiVersion = apiVersion oldNetbox.version; - newApiVersion = apiVersion pkgs.netbox.version; + newApiVersion = apiVersion newNetbox.version; in '' start_all() |