mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/pingvin-share: add nixos test
This commit is contained in:
parent
924437f5de
commit
712a04c693
@ -763,6 +763,7 @@ in {
|
|||||||
php83 = handleTest ./php { php = pkgs.php83; };
|
php83 = handleTest ./php { php = pkgs.php83; };
|
||||||
phylactery = handleTest ./web-apps/phylactery.nix {};
|
phylactery = handleTest ./web-apps/phylactery.nix {};
|
||||||
pict-rs = handleTest ./pict-rs.nix {};
|
pict-rs = handleTest ./pict-rs.nix {};
|
||||||
|
pingvin-share = handleTest ./pingvin-share.nix {} ;
|
||||||
pinnwand = handleTest ./pinnwand.nix {};
|
pinnwand = handleTest ./pinnwand.nix {};
|
||||||
plantuml-server = handleTest ./plantuml-server.nix {};
|
plantuml-server = handleTest ./plantuml-server.nix {};
|
||||||
plasma-bigscreen = handleTest ./plasma-bigscreen.nix {};
|
plasma-bigscreen = handleTest ./plasma-bigscreen.nix {};
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
import ./make-test-python.nix (
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
name = "pingvin-share";
|
name = "pingvin-share";
|
||||||
meta.maintainers = with lib.maintainers; [ ratcornu ];
|
meta.maintainers = with lib.maintainers; [ ratcornu ];
|
||||||
|
|
||||||
nodes.machine = { pkgs, ... }: {
|
nodes.machine =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
services.pingvin-share = {
|
services.pingvin-share = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@ -13,8 +17,10 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
|||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
machine.wait_for_unit("pingvin-share-frontend.service")
|
machine.wait_for_unit("pingvin-share-frontend.service")
|
||||||
|
machine.wait_for_open_port(9010)
|
||||||
machine.wait_for_open_port(9011)
|
machine.wait_for_open_port(9011)
|
||||||
machine.succeed("curl --fail http://127.0.0.1:9010/")
|
machine.succeed("curl --fail http://127.0.0.1:9010/api/configs")
|
||||||
machine.succeed("curl --fail http://127.0.0.1:9011/")
|
machine.succeed("curl --fail http://127.0.0.1:9011/")
|
||||||
'';
|
'';
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
nodePackages,
|
nodePackages,
|
||||||
src,
|
src,
|
||||||
version,
|
version,
|
||||||
|
nixosTests,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildNpmPackage {
|
buildNpmPackage {
|
||||||
@ -34,6 +35,10 @@ buildNpmPackage {
|
|||||||
makeCacheWritable = true;
|
makeCacheWritable = true;
|
||||||
npmFlags = [ "--legacy-peer-deps" ];
|
npmFlags = [ "--legacy-peer-deps" ];
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
pingvin-share = nixosTests.pingvin-share;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Backend of pingvin-share, a self-hosted file sharing platform";
|
description = "Backend of pingvin-share, a self-hosted file sharing platform";
|
||||||
homepage = "https://github.com/stonith404/pingvin-share";
|
homepage = "https://github.com/stonith404/pingvin-share";
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
pkg-config,
|
pkg-config,
|
||||||
src,
|
src,
|
||||||
version,
|
version,
|
||||||
|
nixosTests,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildNpmPackage {
|
buildNpmPackage {
|
||||||
@ -26,6 +27,10 @@ buildNpmPackage {
|
|||||||
makeCacheWritable = true;
|
makeCacheWritable = true;
|
||||||
npmFlags = [ "--legacy-peer-deps" ];
|
npmFlags = [ "--legacy-peer-deps" ];
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
pingvin-share = nixosTests.pingvin-share;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Frontend of pingvin-share, a self-hosted file sharing platform";
|
description = "Frontend of pingvin-share, a self-hosted file sharing platform";
|
||||||
homepage = "https://github.com/stonith404/pingvin-share";
|
homepage = "https://github.com/stonith404/pingvin-share";
|
||||||
|
Loading…
Reference in New Issue
Block a user