File tree Expand file tree Collapse file tree 2 files changed +53
-55
lines changed Expand file tree Collapse file tree 2 files changed +53
-55
lines changed Original file line number Diff line number Diff line change 511511 gemstash = handleTest ./gemstash.nix { } ;
512512 geoclue2 = runTest ./geoclue2.nix ;
513513 geoserver = runTest ./geoserver.nix ;
514- gerrit = handleTest ./gerrit.nix { } ;
514+ gerrit = runTest ./gerrit.nix ;
515515 geth = handleTest ./geth.nix { } ;
516516 ghostunnel = handleTest ./ghostunnel.nix { } ;
517517 gitdaemon = handleTest ./gitdaemon.nix { } ;
Original file line number Diff line number Diff line change 1- import ./make-test-python.nix (
2- { pkgs , ... } :
3-
4- {
5- name = "gerrit" ;
6-
7- meta = with pkgs . lib . maintainers ; {
8- maintainers = [
9- flokli
10- zimbatm
11- ] ;
12- } ;
13-
14- nodes = {
15- server =
16- { config , pkgs , ... } :
17- {
18- networking . firewall . allowedTCPPorts = [
19- 80
20- 2222
1+ { pkgs , ... } :
2+
3+ {
4+ name = "gerrit" ;
5+
6+ meta = with pkgs . lib . maintainers ; {
7+ maintainers = [
8+ flokli
9+ zimbatm
10+ ] ;
11+ } ;
12+
13+ nodes = {
14+ server =
15+ { config , pkgs , ... } :
16+ {
17+ networking . firewall . allowedTCPPorts = [
18+ 80
19+ 2222
20+ ] ;
21+
22+ services . gerrit = {
23+ enable = true ;
24+ serverId = "aa76c84b-50b0-4711-a0a0-1ee30e45bbd0" ;
25+ listenAddress = "[::]:80" ;
26+ jvmHeapLimit = "1g" ;
27+
28+ builtinPlugins = [
29+ "hooks"
30+ "webhooks"
2131 ] ;
22-
23- services . gerrit = {
24- enable = true ;
25- serverId = "aa76c84b-50b0-4711-a0a0-1ee30e45bbd0" ;
26- listenAddress = "[::]:80" ;
27- jvmHeapLimit = "1g" ;
28-
29- builtinPlugins = [
30- "hooks"
31- "webhooks"
32- ] ;
33- settings = {
34- gerrit . canonicalWebUrl = "http://server" ;
35- sshd . listenAddress = "[::]:2222" ;
36- sshd . advertisedAddress = "[::]:2222" ;
37- } ;
32+ settings = {
33+ gerrit . canonicalWebUrl = "http://server" ;
34+ sshd . listenAddress = "[::]:2222" ;
35+ sshd . advertisedAddress = "[::]:2222" ;
3836 } ;
3937 } ;
40-
41- client =
42- { ... } :
43- {
44- } ;
45- } ;
46-
47- testScript = ''
48- start_all()
49- server.wait_for_unit("gerrit.service" )
50- server.wait_for_open_port(80 )
51- client.succeed("curl http://server" )
52-
53- server.wait_for_open_port(2222)
54- client.succeed("nc -z server 2222" )
55- '' ;
56- }
57- )
38+ } ;
39+
40+ client =
41+ { ... } :
42+ {
43+ } ;
44+ } ;
45+
46+ testScript = ''
47+ start_all( )
48+ server.wait_for_unit("gerrit.service" )
49+ server.wait_for_open_port(80 )
50+ client.succeed("curl http://server")
51+
52+ server.wait_for_open_port( 2222)
53+ client.succeed("nc -z server 2222")
54+ '' ;
55+ }
You can’t perform that action at this time.
0 commit comments