diff options
author | Robert Hensing <robert@roberthensing.nl> | 2020-12-09 13:01:56 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2020-12-09 13:24:48 +0100 |
commit | a298710dd197273d45208fb572e328abad5ed6a9 (patch) | |
tree | 67372496e616ec4fee280be27e7d7da2aec69915 /nixos/tests/cassandra.nix | |
parent | 72a53016101c2cd8e43fe27cbd270aeaecfc6a41 (diff) |
cassandra: Add passthru.tests
Diffstat (limited to 'nixos/tests/cassandra.nix')
-rw-r--r-- | nixos/tests/cassandra.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/tests/cassandra.nix b/nixos/tests/cassandra.nix index 05607956a9d6..bef3105f0a9e 100644 --- a/nixos/tests/cassandra.nix +++ b/nixos/tests/cassandra.nix @@ -1,7 +1,5 @@ -import ./make-test-python.nix ({ pkgs, lib, ... }: +import ./make-test-python.nix ({ pkgs, lib, testPackage ? pkgs.cassandra, ... }: let - # Change this to test a different version of Cassandra: - testPackage = pkgs.cassandra; clusterName = "NixOS Automated-Test Cluster"; testRemoteAuth = lib.versionAtLeast testPackage.version "3.11"; @@ -47,7 +45,7 @@ let }; in { - name = "cassandra"; + name = "cassandra-${testPackage.version}"; meta = { maintainers = with lib.maintainers; [ johnazoidberg ]; }; @@ -128,4 +126,8 @@ in "nodetool status -p ${jmxPortStr} --resolve-ip | egrep '^UN[[:space:]]+cass2'" ) ''; + + passthru = { + inherit testPackage; + }; }) |