lower dhparam bits, for faster tests
Make a tests/lib/config.nix file that is imported into the configuration of all testing VMs.
This commit is contained in:
parent
4e8fbac580
commit
05d963e751
4 changed files with 13 additions and 0 deletions
|
@ -34,6 +34,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../default.nix
|
../default.nix
|
||||||
|
./lib/config.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.memorySize = 1500;
|
virtualisation.memorySize = 1500;
|
||||||
|
@ -103,6 +104,10 @@ import <nixpkgs/nixos/tests/make-test.nix> {
|
||||||
exec grep '${clientIP}' "$@"
|
exec grep '${clientIP}' "$@"
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
imports = [
|
||||||
|
./lib/config.nix
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
fetchmail msmtp procmail findutils grep-ip
|
fetchmail msmtp procmail findutils grep-ip
|
||||||
];
|
];
|
||||||
|
|
|
@ -21,6 +21,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../default.nix
|
../default.nix
|
||||||
|
./lib/config.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.rsyslogd = {
|
services.rsyslogd = {
|
||||||
|
@ -134,6 +135,9 @@ import <nixpkgs/nixos/tests/make-test.nix> {
|
||||||
imap.close()
|
imap.close()
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
imports = [
|
||||||
|
./lib/config.nix
|
||||||
|
];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
fetchmail msmtp procmail findutils grep-ip check-mail-id test-imap-spam test-imap-ham
|
fetchmail msmtp procmail findutils grep-ip check-mail-id test-imap-spam test-imap-ham
|
||||||
];
|
];
|
||||||
|
|
|
@ -21,6 +21,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./../default.nix
|
./../default.nix
|
||||||
|
./lib/config.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
mailserver = {
|
mailserver = {
|
||||||
|
|
3
tests/lib/config.nix
Normal file
3
tests/lib/config.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
security.dhparams.defaultBitSize = 16; # really low for quicker tests
|
||||||
|
}
|
Loading…
Reference in a new issue