<commit_before># verifies:
#   1. GoCD server starts
#   2. GoCD server responds

import ./make-test.nix ({ pkgs, ...} :

{
  name = "gocd-server";
  meta = with pkgs.stdenv.lib.maintainers; {
    maintainers = [ swarren83 ];
  };

nodes = {
  gocd_server =
    { ... }:
    {
      virtualisation.memorySize = 2046;
      services.gocd-server.enable = true;
    };
};

  testScript = ''
    $gocd_server->start;
    $gocd_server->waitForUnit("gocd-server");
    $gocd_server->waitForOpenPort("8153");
    $gocd_server->waitUntilSucceeds("curl -s -f localhost:8153/go");
  '';
})<commit_msg>nixosTests.gocd-server: port to python<commit_after># verifies:
#   1. GoCD server starts
#   2. GoCD server responds

import ./make-test-python.nix ({ pkgs, ...} :

{
  name = "gocd-server";
  meta = with pkgs.stdenv.lib.maintainers; {
    maintainers = [ swarren83 ];
  };

  nodes = {
    server =
      { ... }:
      {
        virtualisation.memorySize = 2046;
        services.gocd-server.enable = true;
      };
  };

  testScript = ''
    server.start()
    server.wait_for_unit("gocd-server")
    server.wait_for_open_port(8153)
    server.wait_until_succeeds("curl -s -f localhost:8153/go")
  '';
})
{'fraction_non_alphanumeric': 0.16333333333333333, 'fraction_numerical': 0.02666666666666667, 'mean_word_length': 2.650455927051672, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2199670', 'n_tokens_mistral': 493, 'n_tokens_neox': 459, 'n_words': 71}