Skip to content

Commit

Permalink
nixosTests.mongodb-ce: init
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaskorz committed Jan 21, 2025
1 parent 3385b3a commit 547097b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ in {
monetdb = handleTest ./monetdb.nix {};
monica = handleTest ./web-apps/monica.nix {};
mongodb = runTest ./mongodb.nix;
mongodb-ce = runTest ({ config, ... }: {
imports = [ ./mongodb.nix ];
defaults.services.mongodb.package = config.node.pkgs.mongodb-ce;
});
moodle = handleTest ./moodle.nix {};
moonraker = handleTest ./moonraker.nix {};
mopidy = handleTest ./mopidy.nix {};
Expand Down
10 changes: 7 additions & 3 deletions pkgs/by-name/mo/mongodb-ce/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
nix-update,
gitMinimal,
pup,
nixosTests,
}:

let
Expand Down Expand Up @@ -102,9 +103,12 @@ stdenv.mkDerivation (finalAttrs: {
command = lib.getExe script;
};

tests.version = testers.testVersion {
package = mongodb-ce;
command = "mongod --version";
tests = {
inherit (nixosTests) mongodb-ce;
version = testers.testVersion {
package = mongodb-ce;
command = "mongod --version";
};
};
};

Expand Down

0 comments on commit 547097b

Please sign in to comment.