#!/usr/bin/env python3 """Refresh the final gate's source inventory without discovery, builds or network. Source method names are preparation evidence only. The final runner must reconcile them with discovery/TRX, including theory rows and runtime skip reasons. """ from __future__ import annotations import glob import hashlib import json from pathlib import Path import re import xml.etree.ElementTree as ET ROOT = Path(__file__).resolve().parents[3] OUTPUT = Path(__file__).with_name("fixture-environment-map.json") PREFIXES = ("OTOPCUA_", "SQL_", "AB_", "MODBUS_", "S7_", "TWINCAT_", "HEIDENHAIN_", "HISTGW_", "GALAXY_", "MXGW_", "MQTT_", "MTCONNECT_", "OPCUA_", "HISTORIAN_", "HOST_PROBE_", "GRPC_", "D1_", "AKKA_", "BENCH_", "DOTNET_", "CI_", "ODBC_") def quoted_environment_names(text): # Includes named constants used as GetEnvironmentVariable arguments and the # small Env(name)/ReadInt(name) helpers; no inherited values are read. constants = {match for match in re.findall(r'"([A-Z][A-Z0-9_]{2,})"', text) if match.startswith(PREFIXES)} literals = set(re.findall(r'GetEnvironmentVariable\(\s*"([^"\n]+)"', text)) return sorted(constants | literals) def source_methods(text): namespace = re.search(r"^namespace\s+([\w.]+)", text, re.M) name = namespace[1] if namespace else "" # Match test attributes through their following method declaration. This is # intentionally labelled source names: discovery owns concrete theory rows. methods = [] for match in re.finditer(r"(?:\[(?:\w*Fact|\w*Theory)(?:\([^\]]*\))?\][\s\S]*?)\bpublic\s+(?:async\s+)?(?:Task(?:<[^>]*>)?|ValueTask|void)\s+(\w+)\s*\(", text): preceding = text[:match.start()] classes = list(re.finditer(r"^\s*(?:(?:public|internal|private|protected|abstract|sealed|partial|static)\s+)*class\s+(\w+)", preceding, re.M)) if classes: methods.append(name + "." + classes[-1][1] + "." + match[1]) return sorted(set(methods)) GROUPS = [ {"id": "odbc-software", "projects": ["Driver.Sql.IntegrationTests"], "services": ["postgres"], "variables": ["SQL_ODBC_CONNECTION_STRING"], "policy": "required when coordinator supplies installed local PostgreSQL driver through CI_FIXTURE_ODBC_DRIVER; helper builds the connection using only owned seeded PG, explicit absolute driver path and fresh password; host native driver manager and .NET ODBC assets verified by actual tests"}, {"id": "sql-configuration", "projects": ["Configuration.Tests", "ControlPlane.Tests", "AdminUI.Tests"], "services": ["sql"], "variables": ["OTOPCUA_CONFIG_TEST_SERVER", "OTOPCUA_CONFIG_TEST_SA_PASSWORD"], "policy": "required-before-discovery; remove OTOPCUA_UNIT_ONLY_DISCOVERY"}, {"id": "sql-historian", "projects": ["Driver.Historian.SqlServer.IntegrationTests"], "services": ["sql"], "variables": ["HISTORIAN_SQL_TEST_CONNECTION"], "policy": "required; disposable database administration"}, {"id": "questdb", "projects": ["Driver.Historian.QuestDb.IntegrationTests"], "services": ["questdb"], "variables": ["HISTORIAN_QUESTDB_TEST_CONNECTION", "HISTORIAN_QUESTDB_STRESS_SECONDS"], "policy": "required; explicit stress-duration decision in final report"}, {"id": "sql-poll", "projects": ["Driver.Sql.IntegrationTests"], "services": ["sql", "postgres", "mysql", "oracle", "sql-blackhole"], "variables": ["SQL_TEST_ENDPOINT", "SQL_TEST_USER", "SQL_TEST_PASSWORD", "SQL_PG_ENDPOINT", "SQL_PG_USER", "SQL_PG_PASSWORD", "SQL_MYSQL_ENDPOINT", "SQL_MYSQL_USER", "SQL_MYSQL_PASSWORD", "SQL_ORACLE_ENDPOINT", "SQL_ORACLE_USER", "SQL_ORACLE_PASSWORD", "SQL_ORACLE_SERVICE", "SQL_BLACKHOLE_ENDPOINT", "SQL_BLACKHOLE_USER", "SQL_BLACKHOLE_PASSWORD", "SQL_BLACKHOLE_CONTAINER_ID", "SQL_BLACKHOLE_FIXTURE_OWNER", "SQL_BLACKHOLE_ENV_JSON", "SQL_BLACKHOLE_CONTROL_SCRIPT"], "policy": "required; seed PG/MySQL/Oracle; blackhole has separate SQL service; clear Sql__ConnectionStrings__Fixture and SQL_BLACKHOLE_DOCKER_SSH"}, {"id": "opc", "projects": ["Driver.OpcUaClient.IntegrationTests", "Driver.OpcUaClient.Browser.IntegrationTests"], "services": ["opc", "opc-nat"], "variables": ["OPCUA_SIM_ENDPOINT", "OPCUA_NAT_ENDPOINT", "OPCUA_NAT_SERVER_CERT"], "policy": "required; normal advertised port equals allocated port; NAT advertises unreachable .invalid; fresh private-directory public cert"}, {"id": "modbus", "projects": ["Driver.Modbus.IntegrationTests"], "services": ["modbus-standard", "modbus-dl205", "modbus-mitsubishi", "modbus-s7-1500", "modbus-exception-injection", "modbus-rtu-over-tcp"], "variables": ["MODBUS_SIM_ENDPOINT", "MODBUS_SIM_PROFILE", "MODBUS_RTU_SIM_ENDPOINT"], "policy": "required; full run standard+RTU; focused project overlays dl205/mitsubishi/s7_1500/exception_injection from profile-environments.json"}, {"id": "s7", "projects": ["Driver.S7.IntegrationTests"], "services": ["s7"], "variables": ["S7_SIM_ENDPOINT", "S7_SIM_ALLOW_WRITES", "S7_RECONNECT_BOUNCE_CMD", "S7_TIMEOUT_OUTAGE_START_CMD", "S7_TIMEOUT_OUTAGE_STOP_CMD"], "policy": "required; writes enabled only on owned simulator; generated control commands verify manifest/ID/labels/local context"}, {"id": "ab-cip", "projects": ["Driver.AbCip.IntegrationTests"], "services": ["ab-controllogix", "ab-compactlogix", "ab-micro800", "ab-guardlogix"], "variables": ["AB_SERVER_ENDPOINT", "AB_SERVER_COMPOSE_PROFILE", "AB_SERVER_PROFILE", "AB_SERVER_ALLOW_WRITES"], "policy": "required; patched source build; full run controllogix and focused project overlays remaining profiles; no hardware/differential controls inherited"}, {"id": "ab-legacy", "projects": ["Driver.AbLegacy.IntegrationTests"], "services": ["legacy-slc500", "legacy-micrologix", "legacy-plc5"], "variables": ["AB_LEGACY_ENDPOINT", "AB_LEGACY_CIP_PATH", "AB_LEGACY_SLC500_ENDPOINT", "AB_LEGACY_MICROLOGIX_ENDPOINT", "AB_LEGACY_PLC5_ENDPOINT", "AB_SERVER_ALLOW_WRITES"], "policy": "required; all per-family endpoints explicit; no AB_LEGACY_COMPOSE_PROFILE pin in base run, discover full family matrix"}, {"id": "focas", "projects": ["Driver.FOCAS.IntegrationTests"], "services": ["focas"], "variables": ["OTOPCUA_FOCAS_SIM_ENDPOINT", "OTOPCUA_FOCAS_SIM_PROFILE"], "policy": "required; managed wire with mock native-Ethernet responder; tests load per-series profiles through local admin API"}, {"id": "mtconnect", "projects": ["Driver.MTConnect.IntegrationTests"], "services": ["mtconnect-adapter", "mtconnect"], "variables": ["MTCONNECT_AGENT_ENDPOINT", "MTCONNECT_WRITE_TARGET"], "policy": "required; official pinned agent plus live SHDR feeder and dedicated fixture_writeback target"}, {"id": "mqtt", "projects": ["Driver.Mqtt.IntegrationTests"], "services": ["mqtt", "mqtt-publisher"], "variables": ["MQTT_FIXTURE_ENDPOINT", "MQTT_FIXTURE_PLAIN_ENDPOINT", "MQTT_FIXTURE_USERNAME", "MQTT_FIXTURE_PASSWORD", "MQTT_FIXTURE_CA_CERT", "MQTT_FIXTURE_TOPIC_PREFIX"], "policy": "required; fresh loopback TLS CA+leaf and password; verify authenticated TLS + retained publisher seed; Sparkplug tests own in-process edge nodes"}, {"id": "host-real-mode", "projects": ["Host.IntegrationTests"], "services": ["sql", "ldap"], "variables": ["OTOPCUA_HARNESS_USE_SQL", "OTOPCUA_HARNESS_SQL_HOST", "OTOPCUA_HARNESS_SQL_PASSWORD", "OTOPCUA_HARNESS_USE_LDAP", "OTOPCUA_HARNESS_LDAP_HOST", "OTOPCUA_HARNESS_LDAP_PORT", "HOST_PROBE_OPCUA_ENDPOINT", "OTOPCUA_LOCAL_FIXTURE_MODE"], "policy": "required local real SQL/LDAP; HOST_PROBE_OPCUA_ENDPOINT bridges owned P10 central OPC listener; all protocol probes loopback before reachability"}, {"id": "scriptworker", "projects": ["ScriptWorker.Tests"], "services": [], "variables": ["OTOPCUA_SCRIPTWORKER_TEST_PATH"], "policy": "required built platform-matching local executable and native dependencies; default beside-test worker acceptable when built by project reference; Windows isolation cases separately unavailable"}, {"id": "scripting-child-process", "projects": ["Core.Scripting.Tests"], "services": [], "variables": ["OTOPCUA_RECURSION_CHILD_SCENARIO", "OTOPCUA_RECURSION_CHILD_RESULT"], "policy": "do not inherit either switch into the parent final process; containment test owns child process, temp output and bounded recursion/crash scenario"}, ] UNAVAILABLE = [ {"id": "twincat", "projects": ["Driver.TwinCAT.IntegrationTests"], "file_pattern": "*", "variables": ["TWINCAT_TARGET_HOST", "TWINCAT_TARGET_NETID", "TWINCAT_TARGET_PORT"], "requires": "Local Windows TwinCAT XAR runtime with valid trial/license, native ADS support, bilateral AMS routes and fixture PLC program; run that platform gate with exact discovered test names."}, {"id": "heidenhain-live", "projects": ["Driver.Heidenhain.Tests"], "file_pattern": "*HeidenhainLiveIntegrationTests.cs", "variables": ["HEIDENHAIN_LSV2_HOST", "HEIDENHAIN_LSV2_PORT", "OTOPCUA_HEIDENHAIN_INSPECT_PASSWORD"], "requires": "Owned Heidenhain controller or licensed matching simulator exposing LSV2 with INSPECT credentials; in-process protocol tests remain runnable separately."}, {"id": "galaxy-live", "projects": ["Driver.Galaxy.Tests", "Host.IntegrationTests"], "file_pattern": "*", "method_exclusions": ["Modbus_", "OpcUaClient_", "S7_", "AbCip_", "Galaxy_Red_"], "variables": ["MXGW_ENDPOINT", "GALAXY_MXGW_API_KEY", "GALAXY_904_ACK_USER", "GALAXY_904_ACK_PASSWORD", "GALAXY_904_ALARM_REF", "HOST_PROBE_GALAXY_ENDPOINT"], "requires": "Local licensed Galaxy runtime and MxAccessGateway with writable meter/alarm scenario and scoped API key; no equivalent production backend fixture is supplied in this repository. Only live methods explicitly gated by these variables are unavailable; unit methods remain required."}, {"id": "historian-gateway-live", "projects": ["Driver.Historian.Gateway.Tests"], "file_pattern": "*Live*.cs", "variables": ["HISTGW_GATEWAY_ENDPOINT", "HISTGW_GATEWAY_APIKEY", "HISTGW_TEST_TAG", "HISTGW_WRITE_SANDBOX_TAG", "HISTGW_BOOL_SANDBOX_TAG", "HISTGW_ALARM_SOURCE", "HISTGW_GATEWAY_ALLOW_UNTRUSTED"], "requires": "Local HistorianGateway hosting service with licensed/writable history/event backend, scoped key and dedicated sandbox tags; repository contains no production backend hosting fixture."}, {"id": "aveva-live", "projects": ["OpcUaServer.IntegrationTests"], "file_pattern": "*Aveva*LiveGateTests.cs", "variables": ["OTOPCUA_AVEVA_GATE_900", "OTOPCUA_AVEVA_GATE_TAGS", "OTOPCUA_AVEVA_GATE_WINDOWS", "OTOPCUA_AVEVA_GATE_EVENT_SOURCES", "OTOPCUA_AVEVA_GATE_EVENT_WINDOW", "OTOPCUA_AVEVA_GATE_GALAXY_REFS", "OTOPCUA_AVEVA_GATE_LABEL", "OTOPCUA_AVEVA_GATE_OUT", "OTOPCUA_AVEVA_GATE_STRICT_ENDPOINT", "OTOPCUA_AVEVA_GATE_STRICT_CONTAINER", "OTOPCUA_AVEVA_GATE_STRICT_SET_CEILING"], "requires": "Local licensed AVEVA Historian/Galaxy event backend and compatible HistorianGateway with configured history windows, alarms and scoped keys; strict container control additionally requires exact owned ID/labels."}, {"id": "ab-proprietary-emulate", "projects": ["Driver.AbCip.IntegrationTests"], "file_pattern": "*Emulate*Tests.cs", "variables": ["AB_SERVER_PROFILE"], "requires": "Owned licensed Rockwell Emulate controller with authored UDT/array/alarm project; ab_server has no equivalent structured-tag/type metadata. Keep AB_SERVER_PROFILE=abserver; simulator cases remain required."}, {"id": "ab-controller-evidence", "projects": ["Driver.AbCip.IntegrationTests"], "file_pattern": "*", "variables": ["AB_DIFF_ENDPOINT", "AB_DIFF_PATH", "AB_DIFF_FAMILY", "AB_DIFF_TAGS", "AB_DIFF_COUNT_OPENS", "AB_DIFF_MAX_TAGS", "AB_DIFF_MAX_TEMPLATES", "AB_DIFF_PACE_MS", "AB_HW_WRITE_APPROVED", "AB_HW_WRITE_GATEWAY", "AB_HW_WRITE_STRING_TAG", "AB_HW_WRITE_DRYRUN", "AB_HW_WRITE_GAP_SECONDS", "AB_EVID_IDLE", "AB_EVID_BROWSE", "AB_EVID_MIX", "AB_LAT_TAGS", "AB_LAT_PASSES", "AB_LAT_PASS_GAP_MS", "AB_LAT_ENFORCE"], "requires": "Owned controller with required differential/browse/meter tags and separately authorized physical write sandbox. No hardware controls or endpoints are inherited; local simulator tests remain required."}, {"id": "s7-real-timer-counter", "projects": ["Driver.S7.IntegrationTests"], "file_pattern": "*SpanReadTests.cs", "method_inclusions": ["Timer_and_counter_decode_the_seeded_values_at_their_device_numbers"], "variables": ["S7_TIMER_NUMBER_ADDRESSING"], "requires": "Owned S7 CPU implementing native timer/counter number addressing; python-snap7 simulator deliberately has byte-addressed timer memory. Only exact opt-in methods unavailable."}, {"id": "odbc", "projects": ["Driver.Sql.IntegrationTests"], "file_pattern": "*OdbcReadTests.cs", "variables": ["SQL_ODBC_CONNECTION_STRING"], "requires": "Host ODBC driver manager plus compatible installed vendor driver for the seeded owned backend. This is software availability to inspect/install and run if available, not hardware and not automatically unavailable on macOS."}, {"id": "windows-installer", "projects": ["ScriptWorker.Tests"], "file_pattern": "*InstallerLayoutIsolationTests.cs", "variables": ["OTOPCUA_ISOLATION_INSTALLER_E2E"], "requires": "Windows elevated administrator with PowerShell5.1, installer/service-account and AppLocker machine-state fixture; not runnable on local macOS. Other software-supported worker cases remain required."}, {"id": "windows-worker-identity", "projects": ["ScriptWorker.Tests"], "file_pattern": "*WorkerIsolationTests.cs", "method_inclusions": ["The_pipe_acl_is_protected_and_admits_exactly_the_host_and_the_worker_identity", "A_live_pipe_carries_the_acl_and_a_host_only_pipe_admits_the_host_alone", "The_worker_token_is_restricted_privilege_free_and_reaches_only_what_its_identity_may", "A_worker_under_the_identity_runs_scripts_with_a_restricted_token_and_a_plain_one_does_not"], "variables": [], "requires": "Windows named-pipe ACLs, local restricted worker identity/token and Windows process-launch security APIs; exact four Windows-only methods skip on local macOS."}, {"id": "windows-pipe-async-refusal", "projects": ["ScriptWorker.Tests"], "file_pattern": "*BlockingPipeStreamTests.cs", "method_inclusions": ["The_asynchronous_surface_is_refused_on_windows"], "variables": [], "requires": "Windows blocking pipe wrapper; the exact method returns early on non-Windows and must be recorded as unavailable semantic coverage even if TRX reports Passed."}, ] LONG = [ {"id": "sdk-lifecycle-soak", "files": ["Sdk2LifecycleSoakTests.cs", "Sdk2LifecycleLateSlopeTests.cs", "Sdk2LifecycleCloseOwnershipTests.cs"], "variables": ["OTOPCUA_SDK2_SOAK", "OTOPCUA_SDK2_SOAK_SECONDS", "OTOPCUA_SDK2_SOAK_MODE", "OTOPCUA_SDK2_SOAK_OUTPUT", "OTOPCUA_SOAK_BUILD_SHA", "OTOPCUA_SDK2_CLOSE_CONTROL", "OPCUA_CERTIFICATE_LEAK_TRACKING", "OTOPCUA_SDK2_SATURATION_CONTROL", "OTOPCUA_SDK2_SATURATION_RUN_ID", "OTOPCUA_SDK2_SATURATION_OBSERVER"], "decision": "Final coordinator must explicitly select duration/mode and run supported cases or report exact disabled names. Saturation/late-slope controls require matching runtime, external observer and prior protocol; never silently infer enabled from category-free execution."}, {"id": "folder-event-performance", "files": ["FolderEventDeliveryPerfTests.cs"], "variables": ["OTOPCUA_EVENT_PERF", "OTOPCUA_EVENT_PERF_REPORTS", "OTOPCUA_EVENT_PERF_ROUNDS", "OTOPCUA_EVENT_PERF_OUT"], "decision": "Software-supported opt-in; coordinator must enable and capture private per-run output or list exact disabled names."}, {"id": "questdb-race-stress", "files": ["LiveWriteReadRaceStressTests.cs"], "variables": ["HISTORIAN_QUESTDB_STRESS_SECONDS"], "decision": "Software-supported owned QuestDB; explicit positive duration enables stress; coordinator records duration and results."}, {"id": "ab-native-lease-soak", "files": ["NativeLeaseReleaseSoakTests.cs"], "variables": ["AB_LEASE_SOAK_CYCLES"], "decision": "Default 100 cycles on owned ab_server, not disabled; explicit duration tuning must not bypass native assertions."}, {"id": "worker-performance", "files": ["ScriptRunnerPerfTests.cs"], "variables": ["OTOPCUA_SCRIPTWORKER_TEST_PATH", "OTOPCUA_SCRIPT_PERF", "OTOPCUA_SCRIPT_PERF_SECONDS", "OTOPCUA_SCRIPT_PERF_OUT"], "decision": "Software-supported opt-in; built platform-matching worker required; default10s; coordinator must enable or list exact disabled names."}, {"id": "node-manager-benchmark-budget", "files": ["NodeManagerLockTimeBenchmarkTests.cs"], "variables": ["OTOPCUA_BENCH"], "decision": "Measurements and deterministic assertions run by default; OTOPCUA_BENCH=1 additionally enforces wall-clock budgets. Record budget-enabled/disabled explicitly; default execution is not enforced performance-budget evidence."}, ] def generate(): projects = [] all_sources = {} source_digest = hashlib.sha256() for path in sorted((ROOT / "tests").rglob("*.csproj")): content = path.read_text() if "Microsoft.NET.Test.Sdk" not in content and not re.search(r"\s*true", content): continue tree = ET.fromstring(content) files = {file for file in path.parent.rglob("*.cs") if not ({"bin", "obj"} & set(file.relative_to(path.parent).parts))} for element in tree.iter(): if element.tag.rsplit("}", 1)[-1] == "Compile" and element.get("Include"): pattern = element.get("Include").replace("\\", "/") files.update(Path(file).resolve() for file in glob.glob(str(path.parent / pattern), recursive=True) if Path(file).is_file()) records = [] categories = set() variables = set() for file in sorted(files): text = file.read_text() relative = file.relative_to(ROOT).as_posix() source_digest.update(relative.encode() + b"\0" + text.encode() + b"\0") gates = quoted_environment_names(text) traits = sorted(set(re.findall(r'Trait\(\s*"Category"\s*,\s*"([^"\n]+)"', text))) methods = source_methods(text) categories.update(traits) variables.update(gates) if gates or methods: platform_checks = sorted(set(re.findall(r"OperatingSystem\.(Is\w+)\(", text))) record = {"path": relative, "environment_names": gates, "categories": traits, "platform_checks": platform_checks, "source_test_methods": methods} records.append(record) all_sources[relative] = record assembly = path.stem.removeprefix("ZB.MOM.WW.OtOpcUa.") group_ids = [group["id"] for group in GROUPS if assembly in group["projects"]] unavailable_ids = [group["id"] for group in UNAVAILABLE if assembly in group["projects"]] projects.append({"project": path.relative_to(ROOT).as_posix(), "assembly_suffix": assembly, "categories_observed": sorted(categories) or ["unclassified"], "fixture_groups": group_ids or ["local-in-process"], "unavailable_candidate_groups": unavailable_ids, "environment_names": sorted(variables), "sources": records}) unavailable = [] for group in UNAVAILABLE: selected = [record for project in projects if project["assembly_suffix"] in group["projects"] for record in project["sources"] if Path(record["path"]).match(group["file_pattern"]) and (group["file_pattern"] != "*" or set(record["environment_names"]) & set(group["variables"]))] methods = {method for record in selected for method in record["source_test_methods"]} if group.get("method_inclusions"): methods = {method for method in methods if any(method.rsplit(".", 1)[-1] == name for name in group["method_inclusions"])} if group.get("method_exclusions"): methods = {method for method in methods if not any(method.rsplit(".", 1)[-1].startswith(name) for name in group["method_exclusions"])} unavailable.append({**group, "disposition": "candidate-unavailable-until-local-prerequisite-verified", "source_test_methods": sorted(methods), "source_paths": sorted(record["path"] for record in selected)}) long_modes = [] for group in LONG: selected = [record for record in all_sources.values() if any(Path(record["path"]).match(pattern) for pattern in group["files"])] long_modes.append({**group, "source_paths": sorted(record["path"] for record in selected), "source_test_methods": sorted({method for record in selected for method in record["source_test_methods"]})}) return { "schema_version": 1, "inventory_kind": "source-preparation-not-execution", "source_sha256": source_digest.hexdigest(), "refresh_command": "python3 scripts/validation/grpc-data/fixture_inventory.py", "project_count": len(projects), "ownership_contract": {"entrypoint": "scripts/ci/integration-fixtures.sh", "required_inputs": ["CI_FIXTURE_LOCAL_OWNED=1", "CI_FIXTURE_SUFFIX=", "CI_FIXTURE_ENV_JSON=", "FIXTURE_HOST=127.0.0.1"], "environment": "0600 JSON dict at CI_FIXTURE_ENV_JSON", "manifest": "CI_FIXTURE_ENV_JSON + '.manifest.json'", "run_directory": "CI_FIXTURE_ENV_JSON + '.d' (0700)", "profile_environments": "run_directory/profile-environments.json (0600 dict of full allowlisted profile overlays)", "cleanup": "same inputs + down; exact recorded ID and both labels required; no compose down/name removal/prune", "ci_compatibility": "legacy behavior only outside explicit local-owned dispatch"}, "fixture_groups": GROUPS, "unavailable_candidates": unavailable, "long_running_optins": long_modes, "environment_name_union": sorted({name for project in projects for name in project["environment_names"]}), "projects": projects, "final_reconciliation_required": ["same candidate solution membership/discovery/TRX; every project nonzero executed", "concrete theory row names and each skipped reason", "zero skipped required GrpcData/software fixture cases", "profile-specific focused reruns with owned endpoint overlays", "exact unavailable platform/proprietary/live names, requirements and next gate", "explicit long-mode enabled/duration/results or exact disabled names", "no inherited fixture endpoints, credentials, SSH commands, unit-only discovery flag or forbidden shared-host probes"] } if __name__ == "__main__": OUTPUT.write_text(json.dumps(generate(), indent=2, sort_keys=True) + "\n") print(str(OUTPUT))