tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
logstash-*-oss: Add passthru.tests
Robert Hensing
5 years ago
9011d597
05f8f9ac
+23
-4
3 changed files
expand all
collapse all
unified
split
nixos
tests
elk.nix
pkgs
tools
misc
logstash
6.x.nix
7.x.nix
+1
nixos/tests/elk.nix
···
120
120
};
121
121
};
122
122
123
123
+
passthru.elkPackages = elk;
123
124
testScript = ''
124
125
import json
125
126
+11
-2
pkgs/tools/misc/logstash/6.x.nix
···
3
3
, lib, stdenv
4
4
, fetchurl
5
5
, makeWrapper
6
6
+
, nixosTests
6
7
, jre
7
8
}:
8
9
9
10
with lib;
10
11
11
11
-
stdenv.mkDerivation rec {
12
12
+
let this = stdenv.mkDerivation rec {
12
13
version = elk6Version;
13
14
name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
14
15
···
52
53
platforms = platforms.unix;
53
54
maintainers = with maintainers; [ wjlroe offline basvandijk ];
54
55
};
55
55
-
}
56
56
+
passthru.tests =
57
57
+
optionalAttrs (!enableUnfree) (
58
58
+
assert this.drvPath == nixosTests.elk.ELK-6.elkPackages.logstash.drvPath;
59
59
+
{
60
60
+
elk = nixosTests.elk.ELK-6;
61
61
+
}
62
62
+
);
63
63
+
};
64
64
+
in this
+11
-2
pkgs/tools/misc/logstash/7.x.nix
···
3
3
, lib, stdenv
4
4
, fetchurl
5
5
, makeWrapper
6
6
+
, nixosTests
6
7
, jre
7
8
}:
8
9
9
10
with lib;
10
11
11
11
-
stdenv.mkDerivation rec {
12
12
+
let this = stdenv.mkDerivation rec {
12
13
version = elk7Version;
13
14
name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
14
15
···
52
53
platforms = platforms.unix;
53
54
maintainers = with maintainers; [ wjlroe offline basvandijk ];
54
55
};
55
55
-
}
56
56
+
passthru.tests =
57
57
+
optionalAttrs (!enableUnfree) (
58
58
+
assert this.drvPath == nixosTests.elk.ELK-7.elkPackages.logstash.drvPath;
59
59
+
{
60
60
+
elk = nixosTests.elk.ELK-7;
61
61
+
}
62
62
+
);
63
63
+
};
64
64
+
in this