lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nixosTests.moodle: migrate to runTest

Part of #386873

+22 -24
+1 -1
nixos/tests/all-tests.nix
··· 795 795 defaults.services.mongodb.package = config.node.pkgs.mongodb-ce; 796 796 } 797 797 ); 798 - moodle = handleTest ./moodle.nix { }; 798 + moodle = runTest ./moodle.nix; 799 799 moonraker = handleTest ./moonraker.nix { }; 800 800 mopidy = handleTest ./mopidy.nix { }; 801 801 morph-browser = runTest ./morph-browser.nix;
+21 -23
nixos/tests/moodle.nix
··· 1 - import ./make-test-python.nix ( 2 - { pkgs, lib, ... }: 3 - { 4 - name = "moodle"; 5 - meta.maintainers = [ lib.maintainers.aanderse ]; 1 + { lib, ... }: 2 + { 3 + name = "moodle"; 4 + meta.maintainers = [ lib.maintainers.aanderse ]; 6 5 7 - nodes.machine = 8 - { ... }: 9 - { 10 - services.moodle.enable = true; 11 - services.moodle.virtualHost.hostName = "localhost"; 12 - services.moodle.virtualHost.adminAddr = "root@example.com"; 13 - services.moodle.initialPassword = "correcthorsebatterystaple"; 6 + nodes.machine = 7 + { ... }: 8 + { 9 + services.moodle.enable = true; 10 + services.moodle.virtualHost.hostName = "localhost"; 11 + services.moodle.virtualHost.adminAddr = "root@example.com"; 12 + services.moodle.initialPassword = "correcthorsebatterystaple"; 14 13 15 - # Ensure the virtual machine has enough memory to avoid errors like: 16 - # Fatal error: Out of memory (allocated 152047616) (tried to allocate 33554440 bytes) 17 - virtualisation.memorySize = 2000; 18 - }; 14 + # Ensure the virtual machine has enough memory to avoid errors like: 15 + # Fatal error: Out of memory (allocated 152047616) (tried to allocate 33554440 bytes) 16 + virtualisation.memorySize = 2000; 17 + }; 19 18 20 - testScript = '' 21 - start_all() 22 - machine.wait_for_unit("phpfpm-moodle.service", timeout=1800) 23 - machine.wait_until_succeeds("curl http://localhost/ | grep 'You are not logged in'") 24 - ''; 25 - } 26 - ) 19 + testScript = '' 20 + start_all() 21 + machine.wait_for_unit("phpfpm-moodle.service", timeout=1800) 22 + machine.wait_until_succeeds("curl http://localhost/ | grep 'You are not logged in'") 23 + ''; 24 + }