mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
test(table-catalog): add Iceberg compatibility and failure coverage (#3581)
* test(table-catalog): add Iceberg client compatibility coverage * test(table-catalog): add production failure coverage * fix(table-catalog): generate valid failure probe requests --------- Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
This commit is contained in:
@@ -16,6 +16,9 @@ import urllib.request
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
import engine_compatibility
|
||||
import failure_coverage
|
||||
|
||||
DEFAULT_PROFILE = "rustfs"
|
||||
CATALOG_VENDED_PROFILE = "rustfs-vended-credentials"
|
||||
VENDED_CREDENTIAL_PROFILES = {CATALOG_VENDED_PROFILE}
|
||||
@@ -298,6 +301,12 @@ def parse_args() -> argparse.Namespace:
|
||||
)
|
||||
parser.add_argument("--insecure", action="store_true", help="Disable TLS verification for HTTPS endpoints.")
|
||||
parser.add_argument("--print-client-matrix", action="store_true", help="Print the current client conformance matrix as JSON and exit.")
|
||||
parser.add_argument("--print-engine-compatibility", action="store_true", help="Print the current Iceberg engine compatibility matrix as JSON and exit.")
|
||||
parser.add_argument(
|
||||
"--print-production-failure-coverage",
|
||||
action="store_true",
|
||||
help="Print the current production failure coverage matrix as JSON and exit.",
|
||||
)
|
||||
parser.add_argument("--print-vendor-profiles", action="store_true", help="Print vendor connection profile references as JSON and exit.")
|
||||
parser.add_argument("--print-unsupported-inventory", action="store_true", help="Print unsupported capability inventory as JSON and exit.")
|
||||
parser.add_argument(
|
||||
@@ -721,6 +730,12 @@ def printed_metadata(args: argparse.Namespace) -> bool:
|
||||
if args.print_client_matrix:
|
||||
print_json_document({"client_matrix": client_matrix()})
|
||||
printed = True
|
||||
if args.print_engine_compatibility:
|
||||
print_json_document({"engine_compatibility": engine_compatibility.engine_compatibility_matrix()})
|
||||
printed = True
|
||||
if args.print_production_failure_coverage:
|
||||
print_json_document({"production_failure_coverage": failure_coverage.production_failure_matrix()})
|
||||
printed = True
|
||||
if args.print_vendor_profiles:
|
||||
print_json_document({"vendor_profiles": vendor_profiles()})
|
||||
printed = True
|
||||
|
||||
Reference in New Issue
Block a user