···1# This test runs influxdb and checks if influxdb is up and running
23import ./make-test.nix {
004 nodes = {
5 one = { config, pkgs, ... }: {
6 services.influxdb.enable = true;
···1# This test runs influxdb and checks if influxdb is up and running
23import ./make-test.nix {
4+ name = "influxdb";
5+6 nodes = {
7 one = { config, pkgs, ... }: {
8 services.influxdb.enable = true;
+9-7
nixos/tests/installer.nix
···215 '';
216217218- makeInstallerTest =
219 { createPartitions, testChannel ? false, useEFI ? false, grubVersion ? 2, grubDevice ? "/dev/vda" }:
220 makeTest {
221 inherit iso;
0222 nodes = if testChannel then { inherit webserver; } else { };
223 testScript = testScriptFun {
224 inherit createPartitions testChannel useEFI grubVersion grubDevice;
···233234 # The (almost) simplest partitioning scheme: a swap partition and
235 # one big filesystem partition.
236- simple = makeInstallerTest
237 { createPartitions =
238 ''
239 $machine->succeed(
···251 };
252253 # Same as the previous, but now with a separate /boot partition.
254- separateBoot = makeInstallerTest
255 { createPartitions =
256 ''
257 $machine->succeed(
···273274 # Create two physical LVM partitions combined into one volume group
275 # that contains the logical swap and root partitions.
276- lvm = makeInstallerTest
277 { createPartitions =
278 ''
279 $machine->succeed(
···295 '';
296 };
297298- swraid = makeInstallerTest
299 { createPartitions =
300 ''
301 $machine->succeed(
···328 };
329330 # Test a basic install using GRUB 1.
331- grub1 = makeInstallerTest
332 { createPartitions =
333 ''
334 $machine->succeed(
···348 };
349350 # Test an EFI install.
351- efi = makeInstallerTest
352 { createPartitions =
353 ''
354 $machine->succeed(
···369 # Rebuild the CD configuration with a little modification.
370 rebuildCD = makeTest
371 { inherit iso;
0372 nodes = { };
373 testScript =
374 ''
···215 '';
216217218+ makeInstallerTest = name:
219 { createPartitions, testChannel ? false, useEFI ? false, grubVersion ? 2, grubDevice ? "/dev/vda" }:
220 makeTest {
221 inherit iso;
222+ name = "installer-" + name;
223 nodes = if testChannel then { inherit webserver; } else { };
224 testScript = testScriptFun {
225 inherit createPartitions testChannel useEFI grubVersion grubDevice;
···234235 # The (almost) simplest partitioning scheme: a swap partition and
236 # one big filesystem partition.
237+ simple = makeInstallerTest "simple"
238 { createPartitions =
239 ''
240 $machine->succeed(
···252 };
253254 # Same as the previous, but now with a separate /boot partition.
255+ separateBoot = makeInstallerTest "separateBoot"
256 { createPartitions =
257 ''
258 $machine->succeed(
···274275 # Create two physical LVM partitions combined into one volume group
276 # that contains the logical swap and root partitions.
277+ lvm = makeInstallerTest "lvm"
278 { createPartitions =
279 ''
280 $machine->succeed(
···296 '';
297 };
298299+ swraid = makeInstallerTest "swraid"
300 { createPartitions =
301 ''
302 $machine->succeed(
···329 };
330331 # Test a basic install using GRUB 1.
332+ grub1 = makeInstallerTest "grub1"
333 { createPartitions =
334 ''
335 $machine->succeed(
···349 };
350351 # Test an EFI install.
352+ efi = makeInstallerTest "efi"
353 { createPartitions =
354 ''
355 $machine->succeed(
···370 # Rebuild the CD configuration with a little modification.
371 rebuildCD = makeTest
372 { inherit iso;
373+ name = "rebuild-CD";
374 nodes = { };
375 testScript =
376 ''
···2# elasticsearch is started.
34import ./make-test.nix {
056 nodes = {
7 one =
···2# elasticsearch is started.
34import ./make-test.nix {
5+ name = "logstash";
67 nodes = {
8 one =
+1
nixos/tests/misc.nix
···1# Miscellaneous small tests that don't warrant their own VM run.
23import ./make-test.nix {
045 machine =
6 { config, lib, pkgs, ... }:
···1# Miscellaneous small tests that don't warrant their own VM run.
23import ./make-test.nix {
4+ name = "misc";
56 machine =
7 { config, lib, pkgs, ... }:
+2
nixos/tests/mpich.nix
···1# Simple example to showcase distributed tests using NixOS VMs.
23import ./make-test.nix {
004 nodes = {
5 master =
6 { config, pkgs, ... }: {
···1# Simple example to showcase distributed tests using NixOS VMs.
23import ./make-test.nix {
4+ name = "mpich";
5+6 nodes = {
7 master =
8 { config, pkgs, ... }: {
···1# This test runs rabbitmq and checks if rabbitmq is up and running.
23import ./make-test.nix ({ pkgs, ... }: {
045 nodes = {
6 one = { config, pkgs, ... }: {
···1# This test runs rabbitmq and checks if rabbitmq is up and running.
23import ./make-test.nix ({ pkgs, ... }: {
4+ name = "rabbitmq";
56 nodes = {
7 one = { config, pkgs, ... }: {