# FIXTURE_ONLY test table: want_rc|args|expected substring (shared by the bash and Pester tests)
0|--version 8.0.1|PATCHED: input (fortimanager, 8.0.1): at or above 8.0.1, Fortinet's fix for FortiManager 8.0 (CVE-2026-126261).
0|--version 8.0.2|PATCHED: input (fortimanager, 8.0.2)
0|--version 7.6.8|PATCHED: input (fortimanager, 7.6.8): at or above 7.6.8, Fortinet's fix for FortiManager 7.6
0|--version 7.6.8.3788|PATCHED: input (fortimanager, 7.6.8.3788)
0|--version 7.4.6|PATCHED: input (fortimanager, 7.4.6): at or above 7.4.6
0|--version v7.4.6-build2588|PATCHED: input (fortimanager, v7.4.6-build2588)
0|--version 7.4.10|PATCHED: input (fortimanager, 7.4.10)
0|--version 7.2.9|PATCHED: input (fortimanager, 7.2.9): at or above 7.2.9
0|--version 7.2.11 --product FMG|PATCHED: input (fortimanager, 7.2.11)
0|--version 07.06.08 --product FortiManager-VM64|PATCHED: input (fortimanager, 07.06.08)
0|--inventory tests/fixtures/inv_patched.csv|RESULT: PATCHED (5 checked: 5 PATCHED, 0 VULNERABLE, 0 OUT OF RANGE, 0 UNKNOWN)
1|--version 8.0.0|VULNERABLE: input (fortimanager, 8.0.0): FortiManager 8.0.0 is listed as affected by CVE-2026-126261 (FG-IR-26-275). Upgrade to 8.0.1 or above.
1|--version 7.6.7|VULNERABLE: input (fortimanager, 7.6.7): in Fortinet's affected range FortiManager 7.6.0 through 7.6.7 for CVE-2026-126261 (FG-IR-26-275). Upgrade to 7.6.8 or above.
1|--version 7.6.0|VULNERABLE: input (fortimanager, 7.6.0)
1|--version 7.4.5|VULNERABLE: input (fortimanager, 7.4.5): in Fortinet's affected range FortiManager 7.4.0 through 7.4.5
1|--version 7.4.0|VULNERABLE: input (fortimanager, 7.4.0)
1|--version 7.2.8|VULNERABLE: input (fortimanager, 7.2.8): in Fortinet's affected range FortiManager 7.2.0 through 7.2.8
1|--version 7.2.0|VULNERABLE: input (fortimanager, 7.2.0)
1|--version 7.6.7.99999|VULNERABLE: input (fortimanager, 7.6.7.99999)
1|--version v7.4.5-build2550|VULNERABLE: input (fortimanager, v7.4.5-build2550)
1|--version 7.4.3 --name fmg-fx-91|VULNERABLE: fmg-fx-91 (fortimanager, 7.4.3)
1|--inventory tests/fixtures/inv_mixed.csv|RESULT: VULNERABLE (6 checked: 2 PATCHED, 2 VULNERABLE, 1 OUT OF RANGE, 1 UNKNOWN)
1|--inventory tests/fixtures/inv_mixed.csv|VULNERABLE: 198.51.100.21 (fortimanager, v7.6.7-build3700)
1|--inventory tests/fixtures/inv_mixed.csv|UNKNOWN: fmg-fx-05 (fortianalyzer, 7.4.5)
1|--inventory tests/fixtures/inv_crlf.csv|RESULT: VULNERABLE (2 checked: 1 PATCHED, 1 VULNERABLE, 0 OUT OF RANGE, 0 UNKNOWN)
1|--inventory tests/fixtures/inv_edges.csv|RESULT: VULNERABLE (10 checked: 2 PATCHED, 6 VULNERABLE, 1 OUT OF RANGE, 1 UNKNOWN)
1|--inventory tests/fixtures/inv_edges.csv|VULNERABLE: name not given (fortimanager, 7.4.0)
1|--inventory tests/fixtures/inv_edges.csv|PATCHED: fmg-fx-54 (fortimanager, V7.2.9 build1638)
2|--version 7.0.13|OUT OF RANGE: input (fortimanager, 7.0.13): branch 7.0 is not listed in FG-IR-26-275. Fortinet makes no statement about it for CVE-2026-126261 and neither does this pack. Check with Fortinet.
2|--version 6.4.15|OUT OF RANGE: input (fortimanager, 6.4.15): branch 6.4 is not listed
2|--version 8.2.0|OUT OF RANGE: input (fortimanager, 8.2.0): branch 8.2 is not listed
2|--inventory tests/fixtures/inv_outofrange.csv|RESULT: OUT OF RANGE (5 checked: 1 PATCHED, 0 VULNERABLE, 3 OUT OF RANGE, 1 UNKNOWN)
3|--version 7.4.5 --product fortianalyzer|UNKNOWN: input (fortianalyzer, 7.4.5): FG-IR-26-275 lists only FortiManager. It does not list FortiManager Cloud, FortiAnalyzer or any other product, and this pack makes no claim about them.
3|--version 7.6.7 --product fortimanager-cloud|UNKNOWN: input (fortimanager-cloud, 7.6.7)
3|--version 7.4.5 --product fortigate|UNKNOWN: input (fortigate, 7.4.5)
3|--version 7.4|UNKNOWN: input (fortimanager, 7.4): not a FortiManager version this pack can judge
3|--version 7.4.x|UNKNOWN: input (fortimanager, 7.4.x)
3|--inventory tests/fixtures/inv_unknown.csv|RESULT: UNKNOWN (7 checked: 1 PATCHED, 0 VULNERABLE, 0 OUT OF RANGE, 6 UNKNOWN)
3|--inventory tests/fixtures/inv_unknown.csv|UNKNOWN: fmg-fx-26 (no product, 7.4.3): no product given.
3|--inventory tests/fixtures/inv_unknown.csv|UNKNOWN: fmg-fx-22 (fortimanager cloud, 7.6.7)
4||Usage: check-fortimanager.sh
4|--version|Usage: check-fortimanager.sh
4|--product fortimanager|Usage: check-fortimanager.sh
4|--inventory tests/fixtures/inv_mixed.csv --version 7.4.5|Usage: check-fortimanager.sh
4|--inventory tests/fixtures/inv_mixed.csv --product fmg|Usage: check-fortimanager.sh
4|--bogus 1|Usage: check-fortimanager.sh
4|--inventory tests/fixtures/inv_bad_header.csv|ERROR: CSV header must be: name,product,version
4|--inventory tests/fixtures/inv_header_only.csv|ERROR: inventory has no data rows
4|--inventory tests/fixtures/does_not_exist.csv|ERROR: cannot read inventory file
