mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
nixos/tests/envoy: migrate to runTests
This commit is contained in:
parent
d237b5096b
commit
6ac38abf29
2 changed files with 57 additions and 56 deletions
|
@ -407,7 +407,10 @@ in
|
|||
enlightenment = handleTest ./enlightenment.nix { };
|
||||
env = handleTest ./env.nix { };
|
||||
envfs = handleTest ./envfs.nix { };
|
||||
envoy = handleTest ./envoy.nix { };
|
||||
envoy = runTest {
|
||||
imports = [ ./envoy.nix ];
|
||||
_module.args.envoyPackage = pkgs.envoy;
|
||||
};
|
||||
ergo = handleTest ./ergo.nix { };
|
||||
ergochat = handleTest ./ergochat.nix { };
|
||||
eris-server = handleTest ./eris-server.nix { };
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
import ./make-test-python.nix (
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
name = "envoy";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
{ envoyPackage, lib, ... }:
|
||||
{
|
||||
name = envoyPackage.pname;
|
||||
|
||||
meta = with lib.maintainers; {
|
||||
maintainers = [ cameronnemo ];
|
||||
};
|
||||
|
||||
nodes.machine =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
nodes.machine = {
|
||||
services.envoy.enable = true;
|
||||
services.envoy.package = envoyPackage;
|
||||
services.envoy.settings = {
|
||||
admin = {
|
||||
access_log_path = "/dev/null";
|
||||
|
@ -58,5 +57,4 @@ import ./make-test-python.nix (
|
|||
machine.wait_until_succeeds("curl -fsS localhost:80/ready")
|
||||
machine.succeed('test -f /var/log/envoy/access.log')
|
||||
'';
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue