Skip to content

Commit

Permalink
use single vm with more mem
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Jul 27, 2024
1 parent 19ad58d commit 1fc1feb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions nixos-tests/monitoring-auth.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{
name = "monitoring-auth";

nodes.server = {
nodes.server = { pkgs, ... }: {
_module.args.mkAuthentikScope = inputs.authentik-nix.lib.mkAuthentikScope;

virtualisation = {
cores = 3;
memorySize = 4096;
memorySize = 6144;
};

imports = [
Expand Down Expand Up @@ -85,9 +85,7 @@
api_url = "http://server:9000/application/o/userinfo/";
};
};
};

nodes.client = { pkgs, ... }: {
environment.sessionVariables = {
PLAYWRIGHT_BROWSERS_PATH = pkgs.playwright-driver.browsers;
};
Expand Down Expand Up @@ -148,9 +146,8 @@
with subtest("Wait for Authentik blueprints to be applied"):
server.wait_until_succeeds("curl -f http://localhost:9000/application/o/grafana/.well-known/openid-configuration >&2")
client.start()
with subtest("Test oauth"):
print(client.succeed("test_auth"))
print(server.succeed("test_auth"))
'';
}

0 comments on commit 1fc1feb

Please sign in to comment.