# FIXTURE_ONLY test table: want_rc|args|expected substring (shared by the bash and Pester tests)
0|--version 2.4.0p40.cre|PATCHED: input (2.4.0p40.cre): at or above 2.4.0p40, Checkmk's fix. CVE-2026-118965 PATCHED; CVE-2026-120495 NOT AFFECTED (werk 22624 lists commercial editions only); CVE-2026-121374 PATCHED.
0|--version 2.4.0p40|PATCHED: input (2.4.0p40): at or above 2.4.0p40, Checkmk's fix. CVE-2026-118965 PATCHED; CVE-2026-120495 PATCHED; CVE-2026-121374 PATCHED.
0|--version 2.4.0p41.cee|PATCHED: input (2.4.0p41.cee)
0|--version 2.4.0p100.cme|PATCHED: input (2.4.0p100.cme)
0|--version 2.5.0p19.community|CVE-2026-120495 NOT AFFECTED (werk 22624 lists commercial editions only)
0|--version 2.5.0p19.pro|PATCHED: input (2.5.0p19.pro): at or above 2.5.0p19, Checkmk's fix. CVE-2026-118965 PATCHED; CVE-2026-120495 PATCHED; CVE-2026-121374 PATCHED.
0|--version 2.5.0p20.ultimate|PATCHED: input (2.5.0p20.ultimate)
0|--version 2.5.0p19.cloud --name cmk-fx-91|PATCHED: cmk-fx-91 (2.5.0p19.cloud)
0|--inventory tests/fixtures/inv_patched.csv|RESULT: PATCHED (5 checked: 5 PATCHED, 0 VULNERABLE, 0 OUT OF RANGE, 0 UNKNOWN)
0|--inventory tests/fixtures/inv_crlf.csv|PATCHED: cmk-fx-52 (2.5.0p19.pro)
1|--version 2.4.0p39.cre|VULNERABLE: input (2.4.0p39.cre): below 2.4.0p40, in Checkmk's affected range. Upgrade to 2.4.0p40 or above. CVE-2026-118965 VULNERABLE; CVE-2026-120495 NOT AFFECTED (werk 22624 lists commercial editions only); CVE-2026-121374 VULNERABLE.
1|--version 2.4.0p39.cee|CVE-2026-118965 VULNERABLE; CVE-2026-120495 VULNERABLE; CVE-2026-121374 VULNERABLE.
1|--version 2.4.0p39|CVE-2026-120495 UNKNOWN (edition not given or not recognised; VULNERABLE if commercial)
1|--version 2.4.0|VULNERABLE: input (2.4.0): below 2.4.0p40
1|--version 2.4.0p1.cre|VULNERABLE: input (2.4.0p1.cre)
1|--version 2.4.0p4.cre|VULNERABLE: input (2.4.0p4.cre)
1|--version 2.5.0p18.pro|VULNERABLE: input (2.5.0p18.pro): below 2.5.0p19, in Checkmk's affected range. Upgrade to 2.5.0p19 or above.
1|--version 2.5.0p18.community|CVE-2026-120495 NOT AFFECTED (werk 22624 lists commercial editions only)
1|--version 2.5.0p9.ultimatemt|VULNERABLE: input (2.5.0p9.ultimatemt)
1|--version 2.5.0|VULNERABLE: input (2.5.0): below 2.5.0p19
1|--version 2.5.0p18.cre|CVE-2026-120495 UNKNOWN (edition not given or not recognised; VULNERABLE if commercial)
1|--version 2.4.0p39.pro|CVE-2026-120495 UNKNOWN (edition not given or not recognised; VULNERABLE if commercial)
1|--version 2.3.0p42.cee|VULNERABLE: input (2.3.0p42.cee): Checkmk lists 2.3.0 (EOL) as affected and will not fix it. Upgrade to 2.4.0p40 or 2.5.0p19 or above.
1|--version 2.3.0p99.cre|Checkmk lists 2.3.0 (EOL) as affected and will not fix it.
1|--version 2.3.0|VULNERABLE: input (2.3.0)
1|--inventory tests/fixtures/inv_mixed.csv|RESULT: VULNERABLE (6 checked: 1 PATCHED, 3 VULNERABLE, 1 OUT OF RANGE, 1 UNKNOWN)
1|--inventory tests/fixtures/inv_eol.csv|RESULT: VULNERABLE (2 checked: 0 PATCHED, 2 VULNERABLE, 0 OUT OF RANGE, 0 UNKNOWN)
2|--version 2.2.0p30.cre|OUT OF RANGE: input (2.2.0p30.cre): branch 2.2.0 is not listed in werks 22120, 22624 or 17994.
2|--version 1.6.0p30|OUT OF RANGE: input (1.6.0p30)
2|--version 2.6.0p1|OUT OF RANGE: input (2.6.0p1)
2|--version 3.0.0|OUT OF RANGE: input (3.0.0)
2|--version 2.4.1p1|OUT OF RANGE: input (2.4.1p1)
2|--inventory tests/fixtures/inv_outofrange.csv|RESULT: OUT OF RANGE (3 checked: 1 PATCHED, 0 VULNERABLE, 1 OUT OF RANGE, 1 UNKNOWN)
3|--version 2.5.0b3|UNKNOWN: input (2.5.0b3): pre-release build (b3). Checkmk's tables list stable patch releases only.
3|--version 2.5.0i2.pro|UNKNOWN: input (2.5.0i2.pro): pre-release build (i2)
3|--version 3.0.0b1|UNKNOWN: input (3.0.0b1): pre-release build (b1)
3|--version 2.3.0b1|UNKNOWN: input (2.3.0b1)
3|--version 2026.11.11|UNKNOWN: input (2026.11.11): not a Checkmk release version this pack can judge
3|--version 2.4.0-2026.11.11.cee|UNKNOWN: input (2.4.0-2026.11.11.cee)
3|--version 2.4.0p40.CRE|UNKNOWN: input (2.4.0p40.CRE)
3|--version 2.4.0P40|UNKNOWN: input (2.4.0P40)
3|--version 2.4|UNKNOWN: input (2.4)
3|--version v2.4.0p40|UNKNOWN: input (v2.4.0p40)
3|--inventory tests/fixtures/inv_unknown.csv|RESULT: UNKNOWN (4 checked: 1 PATCHED, 0 VULNERABLE, 0 OUT OF RANGE, 3 UNKNOWN)
3|--inventory tests/fixtures/inv_unknown.csv|UNKNOWN: cmk-fx-33 (no version): no version given.
4||Usage: check-checkmk.sh
4|--version|Usage: check-checkmk.sh
4|--bogus 1|Usage: check-checkmk.sh
4|--name x|Usage: check-checkmk.sh
4|--version 2.4.0p40 --inventory tests/fixtures/inv_patched.csv|Usage: check-checkmk.sh
4|--inventory tests/fixtures/inv_patched.csv --name x|Usage: check-checkmk.sh
4|--inventory tests/fixtures/inv_bad_header.csv|ERROR: CSV header must be: name,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
4|--site tests/fixtures/does_not_exist|ERROR: not a folder
4|--site tests/fixtures|ERROR: no version link in tests/fixtures
