nixosTests.podgrab: fix failing test

defaultPort and customPort aren't python variables causing the test to
fail. We instead use the nix variables with string interpolation.

authored by kilianar and committed by Bjørn Forsman 2133278f 7eeaecfa

+2 -2
+2 -2
nixos/tests/podgrab.nix
··· 22 start_all() 23 24 default.wait_for_unit("podgrab") 25 - default.wait_for_open_port(defaultPort) 26 default.succeed("curl --fail http://localhost:${toString defaultPort}") 27 28 customized.wait_for_unit("podgrab") 29 - customized.wait_for_open_port(customPort) 30 customized.succeed("curl --fail http://localhost:${toString customPort}") 31 ''; 32
··· 22 start_all() 23 24 default.wait_for_unit("podgrab") 25 + default.wait_for_open_port(${toString defaultPort}) 26 default.succeed("curl --fail http://localhost:${toString defaultPort}") 27 28 customized.wait_for_unit("podgrab") 29 + customized.wait_for_open_port(${toString customPort}) 30 customized.succeed("curl --fail http://localhost:${toString customPort}") 31 ''; 32