|
1 | 1 | from __future__ import annotations |
2 | 2 |
|
3 | 3 | api_testka_keys: list = [ |
4 | | - "AT_test_api_method", "AT_delegate_async_httpx", "AT_test_api_method_httpx", |
5 | | - "AT_generate_html", "AT_generate_html_report", "AT_generate_json", |
6 | | - "AT_generate_json_report", "AT_generate_xml", "AT_generate_xml_report", "AT_execute_action", |
7 | | - "AT_execute_files", "AT_add_package_to_executor", "AT_add_package_to_callback_executor", |
8 | | - "AT_flask_mock_server_add_router", "AT_start_flask_mock_server", "AT_scheduler_event_trigger", |
| 4 | + # ===== Executor AT_* commands (mirrors je_api_testka executor.event_dict) ===== |
| 5 | + # Core HTTP / executor / package |
| 6 | + "AT_test_api_method", "AT_test_api_method_httpx", "AT_delegate_async_httpx", |
| 7 | + "AT_execute_action", "AT_execute_files", |
| 8 | + "AT_add_package_to_executor", "AT_add_package_to_callback_executor", |
| 9 | + # Scheduler (legacy, still tolerated) |
| 10 | + "AT_scheduler_event_trigger", |
9 | 11 | "AT_remove_blocking_scheduler_job", "AT_remove_nonblocking_scheduler_job", |
10 | 12 | "AT_start_blocking_scheduler", "AT_start_nonblocking_scheduler", |
11 | | - "AT_start_all_scheduler", "AT_shutdown_blocking_scheduler", "AT_shutdown_nonblocking_scheduler", |
12 | | - "test_api_method", "add_command_to_executor", "execute_action", "execute_files", "executor", |
13 | | - "get_dir_files_as_list", "generate_html", "generate_html_report", "read_action_json", |
14 | | - "write_action_json", "reformat_json", "generate_json", "generate_json_report", |
| 13 | + "AT_start_all_scheduler", |
| 14 | + "AT_shutdown_blocking_scheduler", "AT_shutdown_nonblocking_scheduler", |
| 15 | + # Reports (HTML / JSON / XML / Markdown / JUnit / Allure / Badge / Trend / Diff) |
| 16 | + "AT_generate_html", "AT_generate_html_report", |
| 17 | + "AT_generate_json", "AT_generate_json_report", |
| 18 | + "AT_generate_xml", "AT_generate_xml_report", |
| 19 | + "AT_render_markdown", "AT_generate_markdown_report", |
| 20 | + "AT_generate_junit_report", "AT_generate_allure_report", |
| 21 | + "AT_generate_badge", "AT_diff_runs", |
| 22 | + "AT_record_current_run", "AT_list_trend_rows", |
| 23 | + # Variables / templating / fake data / env profile |
| 24 | + "AT_set_variable", "AT_get_variable", "AT_clear_variables", |
| 25 | + "AT_extract_and_store", "AT_render_template", |
| 26 | + "AT_fake_uuid", "AT_fake_email", "AT_fake_word", |
| 27 | + "AT_load_env_profile", |
| 28 | + # Diff / contract / SLA |
| 29 | + "AT_diff_payloads", "AT_diff_openapi_specs", "AT_assert_sla", |
| 30 | + "AT_openapi_changelog", |
| 31 | + # Cassette (record-replay) |
| 32 | + "AT_cassette_lookup", "AT_cassette_record", |
| 33 | + # Schema / JSONPath / snapshot assertions |
| 34 | + "AT_check_json_schema", "AT_check_jsonpath", "AT_assert_snapshot", |
| 35 | + # Auth helpers |
| 36 | + "AT_basic_auth_header", "AT_bearer_token_header", "AT_build_jwt", |
| 37 | + "AT_aws_sigv4_headers", |
| 38 | + # Security probes / scans / fuzz |
| 39 | + "AT_scan_security_headers", "AT_cors_preflight", |
| 40 | + "AT_probe_rate_limit", "AT_probe_ssrf", |
| 41 | + "AT_fuzz_string_inputs", "AT_run_pip_audit", |
| 42 | + # Spec inference |
| 43 | + "AT_infer_schema", "AT_records_to_openapi", |
| 44 | + # AI integrations (deterministic fallback) |
| 45 | + "AT_classify_failures", "AT_generate_fake_payload", |
| 46 | + "AT_generate_tests_from_openapi", |
| 47 | + # Extra protocol backends |
| 48 | + "AT_test_api_method_websocket", "AT_test_api_method_sse", |
| 49 | + "AT_test_api_method_graphql", |
| 50 | + # Mock server (basic + advanced) |
| 51 | + "AT_flask_mock_server_add_router", "AT_start_flask_mock_server", |
| 52 | + "AT_mock_add_dynamic_route", "AT_mock_add_template_route", |
| 53 | + "AT_mock_add_webhook", "AT_mock_add_proxy", "AT_mock_load_openapi", |
| 54 | + # Runner (parallel / tag / dependency) |
| 55 | + "AT_run_actions_parallel", "AT_filter_actions_by_tag", "AT_order_actions", |
| 56 | + # Integrations |
| 57 | + "AT_notify_via_webhook", "AT_post_pr_comment", |
| 58 | + "AT_curl_to_action", "AT_convert_har", |
| 59 | + |
| 60 | + # ===== Python public API (je_api_testka.__all__) ===== |
| 61 | + # HTTP / protocol backends |
| 62 | + "test_api_method", "test_api_method_requests", |
| 63 | + "test_api_method_httpx", "test_api_method_httpx_async", |
| 64 | + "test_api_method_websocket", "test_api_method_websocket_async", |
| 65 | + "test_api_method_sse", "iter_sse_events", |
| 66 | + "test_api_method_graphql", "test_api_method_graphql_async", |
| 67 | + # Executor |
| 68 | + "add_command_to_executor", "execute_action", "execute_files", "executor", |
| 69 | + # Reports / records |
| 70 | + "generate_html", "generate_html_report", |
| 71 | + "generate_json", "generate_json_report", |
| 72 | + "generate_xml", "generate_xml_report", |
| 73 | + "test_record_instance", |
| 74 | + # File / JSON / XML utilities |
| 75 | + "read_action_json", "write_action_json", "reformat_json", |
| 76 | + "get_dir_files_as_list", |
| 77 | + "XMLParser", "reformat_xml_file", |
| 78 | + "dict_to_elements_tree", "elements_tree_to_dict", |
| 79 | + # Project / mock / socket / callback / Flask helpers |
| 80 | + "create_project_dir", |
| 81 | + "flask_mock_server_instance", |
15 | 82 | "start_apitestka_socket_server", |
16 | | - "test_record_instance", "dict_to_elements_tree", "elements_tree_to_dict", |
17 | | - "XMLParser", "reformat_xml_file", "generate_xml", "generate_xml_report", |
18 | | - "callback_executor", "create_project_dir", "flask_mock_server_instance", |
19 | | - "request", "redirect", "SchedulerManager" |
| 83 | + "callback_executor", |
| 84 | + "request", "redirect", |
| 85 | + # Schema / snapshot / retry |
| 86 | + "check_json_schema", "check_jsonpath", "assert_snapshot", |
| 87 | + "RetryPolicy", "retry_call", |
| 88 | + # Scheduler (legacy) |
| 89 | + "SchedulerManager", |
20 | 90 | ] |
21 | 91 |
|
22 | 92 | auto_control_keys: list = [ |
|
0 commit comments