diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-01-30 16:45:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 16:45:47 +0100 |
commit | 2118cddc82da367ef71b002f34b05a4c3e513a37 (patch) | |
tree | cdce020dc38ad9f12ad92a7e12a676a2b51e0d93 /nixos/tests | |
parent | b5da8e879cbbc850a9010b4b62355840ad08bdce (diff) | |
parent | 0a43e431ca85b4f8e6bdcb4c164e68e986930c2f (diff) | |
download | nixlib-2118cddc82da367ef71b002f34b05a4c3e513a37.tar nixlib-2118cddc82da367ef71b002f34b05a4c3e513a37.tar.gz nixlib-2118cddc82da367ef71b002f34b05a4c3e513a37.tar.bz2 nixlib-2118cddc82da367ef71b002f34b05a4c3e513a37.tar.lz nixlib-2118cddc82da367ef71b002f34b05a4c3e513a37.tar.xz nixlib-2118cddc82da367ef71b002f34b05a4c3e513a37.tar.zst nixlib-2118cddc82da367ef71b002f34b05a4c3e513a37.zip |
nixos/freeswitch: init (#76821)
nixos/freeswitch: init
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/freeswitch.nix | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 89426865e1ac..2f26bb782c91 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -94,6 +94,7 @@ in flannel = handleTestOn ["x86_64-linux"] ./flannel.nix {}; fluentd = handleTest ./fluentd.nix {}; fontconfig-default-fonts = handleTest ./fontconfig-default-fonts.nix {}; + freeswitch = handleTest ./freeswitch.nix {}; fsck = handleTest ./fsck.nix {}; gotify-server = handleTest ./gotify-server.nix {}; gitea = handleTest ./gitea.nix {}; diff --git a/nixos/tests/freeswitch.nix b/nixos/tests/freeswitch.nix new file mode 100644 index 000000000000..349d0e7bc6f0 --- /dev/null +++ b/nixos/tests/freeswitch.nix @@ -0,0 +1,29 @@ +import ./make-test-python.nix ({ pkgs, ...} : { + name = "freeswitch"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ misuzu ]; + }; + nodes = { + node0 = { config, lib, ... }: { + networking.useDHCP = false; + networking.interfaces.eth1 = { + ipv4.addresses = [ + { + address = "192.168.0.1"; + prefixLength = 24; + } + ]; + }; + services.freeswitch = { + enable = true; + enableReload = true; + configTemplate = "${config.services.freeswitch.package}/share/freeswitch/conf/minimal"; + }; + }; + }; + testScript = '' + node0.wait_for_unit("freeswitch.service") + # Wait for SIP port to be open + node0.wait_for_open_port("5060") + ''; +}) |