Unverified Commit 503a6ed7 authored by Sizhe Zhao's avatar Sizhe Zhao
Browse files

nixosTests.gemstash: handleTest -> runTest

parent bc32ab80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -580,7 +580,7 @@ in
  };
  gatus = runTest ./gatus.nix;
  getaddrinfo = runTest ./getaddrinfo.nix;
  gemstash = handleTest ./gemstash.nix { };
  gemstash = import ./gemstash.nix { inherit pkgs runTest; };
  geoclue2 = runTest ./geoclue2.nix;
  geoserver = runTest ./geoserver.nix;
  gerrit = runTest ./gerrit.nix;
+16 −32
Original line number Diff line number Diff line
{
  system ? builtins.currentSystem,
  config ? { },
  pkgs ? import ../.. { inherit system config; },
}:

with import ../lib/testing-python.nix { inherit system pkgs; };
with pkgs.lib;

{ runTest, pkgs }:
let
  common_meta = {
    maintainers = [ maintainers.viraptor ];
  };
  inherit (pkgs) lib;
in
{
  gemstash_works = makeTest {
  gemstash_works = runTest {
    name = "gemstash-works";
    meta = common_meta;
    meta.maintainers = with lib.maintainers; [ viraptor ];

    nodes.machine =
      { config, pkgs, ... }:
      {
        services.gemstash = {
          enable = true;
        };
    nodes.machine = {
      services.gemstash.enable = true;
    };

    # gemstash responds to http requests
@@ -34,13 +20,11 @@ in
    '';
  };

  gemstash_custom_port = makeTest {
  gemstash_custom_port = runTest {
    name = "gemstash-custom-port";
    meta = common_meta;
    meta.maintainers = with lib.maintainers; [ viraptor ];

    nodes.machine =
      { config, pkgs, ... }:
      {
    nodes.machine = {
      services.gemstash = {
        enable = true;
        openFirewall = true;