nixosTests.porxie: init

This commit is contained in:
Lyna
2026-04-12 17:30:21 +01:00
parent 612363033c
commit f8658cdda3
3 changed files with 32 additions and 1 deletions

View File

@@ -1303,6 +1303,7 @@ in
polaris = runTest ./polaris.nix;
pomerium = handleTestOn [ "x86_64-linux" ] ./pomerium.nix { };
portunus = runTest ./portunus.nix;
porxie = runTest ./porxie.nix;
postfix = handleTest ./postfix.nix { };
postfix-raise-smtpd-tls-security-level =
handleTest ./postfix-raise-smtpd-tls-security-level.nix

23
nixos/tests/porxie.nix Normal file
View File

@@ -0,0 +1,23 @@
{ lib, ... }:
{
name = "porxie";
nodes.machine =
{ pkgs, ... }:
{
services.porxie = {
enable = true;
settings = {
PORXIE_SERVER_ADDRESS = "ip:127.0.0.1:6453";
};
};
};
testScript = ''
machine.wait_for_unit("porxie.service")
machine.wait_for_open_port(6453)
machine.succeed("curl --fail http://localhost:6453")
'';
meta.maintainers = [ lib.maintainers.blooym ];
}

View File

@@ -2,6 +2,8 @@
lib,
fetchFromCodeberg,
rustPlatform,
nixosTests,
stdenvNoCC,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -18,7 +20,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
};
cargoHash = "sha256-a0Ps8SvheQoX+Ai8EYgEpyTFwNvB7E3J6MfGiyEvMzM=";
passthru.updateScript = nix-update-script { };
passthru = {
updateScript = nix-update-script { };
tests = lib.optionalAttrs stdenvNoCC.hostPlatform.isLinux {
porxie = nixosTests.porxie;
};
};
meta = {
description = "Porxie, an ATProto blob proxy for secure content delivery";