-
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add unit tests for facts.efibootmgr.EFIBootMgr
- Loading branch information
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"command": "efibootmgr", | ||
"requires_command": "efibootmgr", | ||
"output": [ | ||
"BootCurrent: 0002", | ||
"BootOrder: 0002", | ||
"Boot0002* debian" | ||
], | ||
"fact": { | ||
"BootNext": null, | ||
"BootCurrent": 2, | ||
"Timeout": null, | ||
"BootOrder": [2], | ||
"Entries": { | ||
"2": [true, "debian"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"command": "efibootmgr", | ||
"requires_command": "efibootmgr", | ||
"output": [ | ||
"BootCurrent: 0000", | ||
"BootOrder: 0000,0003", | ||
"Boot0000* debian", | ||
"Boot0003* EFI Fixed Disk Boot Device 1" | ||
], | ||
"fact": { | ||
"BootNext": null, | ||
"BootCurrent": 0, | ||
"Timeout": null, | ||
"BootOrder": [0,3], | ||
"Entries": { | ||
"0": [true, "debian"], | ||
"3": [true, "EFI Fixed Disk Boot Device 1"] | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
tests/facts/efibootmgr.EFIBootMgr/boot_entries_complex.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"command": "efibootmgr", | ||
"requires_command": "efibootmgr", | ||
"output": [ | ||
"BootNext: 0006", | ||
"BootCurrent: 0006", | ||
"Timeout: 2 seconds", | ||
"BootOrder: 0006,0001,0002,0003,0007,0000", | ||
"Boot0000* Diagnostic Program", | ||
"Boot0001* Windows Boot Manager", | ||
"Boot0002* UEFI: PXE IP4 Realtek PCIe GBE Family Controller", | ||
"Boot0003* UEFI: PXE IP6 Realtek PCIe GBE Family Controller", | ||
"Boot0006* debian", | ||
"Boot0007* debian" | ||
], | ||
"fact": { | ||
"BootNext": 6, | ||
"BootCurrent": 6, | ||
"Timeout": 2, | ||
"BootOrder": [6,1,2,3,7,0], | ||
"Entries": { | ||
"0": [true, "Diagnostic Program"], | ||
"1": [true, "Windows Boot Manager"], | ||
"2": [true, "UEFI: PXE IP4 Realtek PCIe GBE Family Controller"], | ||
"3": [true, "UEFI: PXE IP6 Realtek PCIe GBE Family Controller"], | ||
"6": [true, "debian"], | ||
"7": [true, "debian"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"command": "efibootmgr", | ||
"requires_command": "efibootmgr", | ||
"output": [ | ||
"EFI variables are not supported on this system." | ||
], | ||
"fact": null | ||
} |