← Về thư mục
tests/dnanexus-integration/test_scripts.py
- valid_app_manifest · function · L37-L55 — def valid_app_manifest() -> dict
- issue_codes · function · L58-L60 — def issue_codes(manifest: dict, kind: str = "auto") -> set[str]
- ValidBaselineTests · class · L63-L101 — class ValidBaselineTests(unittest.TestCase)
- test_a_correct_app_manifest_produces_nothing · method · L64-L67 — def test_a_correct_app_manifest_produces_nothing(self) -> None
- test_kind_is_inferred_from_the_presence_of_version · method · L69-L76 — def test_kind_is_inferred_from_the_presence_of_version(self) -> None
- test_an_applet_only_gets_a_warning_for_missing_specs · method · L78-L96 — def test_an_applet_only_gets_a_warning_for_missing_specs(self) -> None
- test_a_non_object_root_is_rejected_without_further_checks · method · L98-L101 — def test_a_non_object_root_is_rejected_without_further_checks(self) -> None
- MetadataTests · class · L104-L132 — class MetadataTests(unittest.TestCase)
- test_name_is_required_and_character_restricted · method · L105-L114 — def test_name_is_required_and_character_restricted(self) -> None
- test_app_versions_must_be_semantic · method · L116-L127 — def test_app_versions_must_be_semantic(self) -> None
- test_top_level_resources_is_flagged_as_deprecated · method · L129-L132 — def test_top_level_resources_is_flagged_as_deprecated(self) -> None
- ParameterSpecTests · class · L135-L176 — class ParameterSpecTests(unittest.TestCase)
- test_parameter_names_follow_the_identifier_rule · method · L136-L141 — def test_parameter_names_follow_the_identifier_rule(self) -> None
- test_duplicate_parameter_names_are_rejected · method · L143-L146 — def test_duplicate_parameter_names_are_rejected(self) -> None
- test_unknown_and_array_classes · method · L148-L154 — def test_unknown_and_array_classes(self) -> None
- test_optional_must_be_a_boolean · method · L156-L159 — def test_optional_must_be_a_boolean(self) -> None
- test_input_only_fields_are_rejected_in_the_output_spec · method · L161-L171 — def test_input_only_fields_are_rejected_in_the_output_spec(self) -> None
- test_a_spec_that_is_not_a_list_is_reported_once · method · L173-L176 — def test_a_spec_that_is_not_a_list_is_reported_once(self) -> None
- RunSpecTests · class · L179-L228 — class RunSpecTests(unittest.TestCase)
- test_runspec_is_required · method · L180-L183 — def test_runspec_is_required(self) -> None
- test_an_entry_source_is_required_and_should_not_be_doubled · method · L185-L192 — def test_an_entry_source_is_required_and_should_not_be_doubled(self) -> None
- test_interpreter_distribution_release_and_aee_version_are_pinned · method · L194-L205 — def test_interpreter_distribution_release_and_aee_version_are_pinned(self) -> None
- test_ubuntu_2004_is_supported_but_flagged_as_legacy · method · L207-L212 — def test_ubuntu_2004_is_supported_but_flagged_as_legacy(self) -> None
- test_deprecated_system_requirements_location_is_flagged · method · L214-L217 — def test_deprecated_system_requirements_location_is_flagged(self) -> None
- test_restartable_entry_points_are_constrained_and_warned_about · method · L219-L228 — def test_restartable_entry_points_are_constrained_and_warned_about(self) -> None
- PolicyTests · class · L231-L282 — class PolicyTests(unittest.TestCase)
- test_unpinned_dependencies_are_warned_about · method · L232-L238 — def test_unpinned_dependencies_are_warned_about(self) -> None
- test_dependency_entries_must_be_named_objects · method · L240-L246 — def test_dependency_entries_must_be_named_objects(self) -> None
- test_max_restarts_is_bounded_and_rejects_booleans · method · L248-L257 — def test_max_restarts_is_bounded_and_rejects_booleans(self) -> None
- test_restart_reasons_are_checked_against_the_documented_set · method · L259-L268 — def test_restart_reasons_are_checked_against_the_documented_set(self) -> None
- test_timeout_units_and_values_are_constrained · method · L270-L282 — def test_timeout_units_and_values_are_constrained(self) -> None
- RegionalOptionTests · class · L285-L340 — class RegionalOptionTests(unittest.TestCase)
- test_region_identifiers_should_be_provider_qualified · method · L286-L292 — def test_region_identifiers_should_be_provider_qualified(self) -> None
- test_system_requirements_must_cover_every_region_or_none · method · L294-L305 — def test_system_requirements_must_cover_every_region_or_none(self) -> None
- test_resource_selectors_are_mutually_exclusive · method · L307-L319 — def test_resource_selectors_are_mutually_exclusive(self) -> None
- test_instance_type_selector_needs_a_non_empty_string_list · method · L321-L340 — def test_instance_type_selector_needs_a_non_empty_string_list(self) -> None
- with_selector · function · L322-L329 — def with_selector(selector)
- AccessAndSecretTests · class · L343-L401 — class AccessAndSecretTests(unittest.TestCase)
- test_broad_and_privileged_access_is_warned_about · method · L344-L359 — def test_broad_and_privileged_access_is_warned_about(self) -> None
- test_access_levels_are_checked_against_the_documented_set · method · L361-L364 — def test_access_levels_are_checked_against_the_documented_set(self) -> None
- test_embedded_credentials_are_found_at_any_depth · method · L366-L373 — def test_embedded_credentials_are_found_at_any_depth(self) -> None
- test_placeholder_credentials_are_not_flagged · method · L375-L380 — def test_placeholder_credentials_are_not_flagged(self) -> None
- test_a_secret_key_holding_false_is_a_setting_not_a_credential · method · L382-L385 — def test_a_secret_key_holding_false_is_a_setting_not_a_credential(self) -> None
- test_secret_detection_matches_whole_words_only · method · L387-L391 — def test_secret_detection_matches_whole_words_only(self) -> None: # SECRET_KEY_RE anchors on word boundaries so
tokenizer is not a token.
- test_https_ports_are_restricted · method · L393-L401 — def test_https_ports_are_restricted(self) -> None
- CommandLineTests · class · L404-L460 — class CommandLineTests(unittest.TestCase)
- _run · method · L405-L414 — def _run(self, manifest, *flags) -> subprocess.CompletedProcess
- test_a_clean_manifest_exits_zero · method · L416-L419 — def test_a_clean_manifest_exits_zero(self) -> None
- test_errors_exit_one · method · L421-L424 — def test_errors_exit_one(self) -> None
- test_strict_promotes_warnings_to_a_failure · method · L426-L430 — def test_strict_promotes_warnings_to_a_failure(self) -> None
- test_json_output_is_machine_readable · method · L432-L440 — def test_json_output_is_machine_readable(self) -> None
- test_unreadable_manifest_exits_two_with_a_parse_issue · method · L442-L460 — def test_unreadable_manifest_exits_two_with_a_parse_issue(self) -> None
- SummaryTests · class · L463-L473 — class SummaryTests(unittest.TestCase)
- test_summarize_counts_both_severities · method · L464-L470 — def test_summarize_counts_both_severities(self) -> None
- test_summarize_of_nothing_is_zeroed_not_empty · method · L472-L473 — def test_summarize_of_nothing_is_zeroed_not_empty(self) -> None
- SdkInspectionTests · class · L476-L578 — class SdkInspectionTests(unittest.TestCase)
- test_version_comparison_is_numeric_not_lexicographic · method · L479-L484 — def test_version_comparison_is_numeric_not_lexicographic(self) -> None
- test_version_comparison_tolerates_non_numeric_segments · method · L486-L490 — def test_version_comparison_tolerates_non_numeric_segments(self) -> None: # Never raise on an unexpected version string -- the script's job is to # report, not to crash on a pre-release tag.
- test_documented_baseline_is_a_parseable_version · method · L492-L494 — def test_documented_baseline_is_a_parseable_version(self) -> None
- test_required_symbols_are_dxpy_qualified_names · method · L496-L500 — def test_required_symbols_are_dxpy_qualified_names(self) -> None
- test_missing_symbol_detection_reads_the_report_not_the_sdk · method · L502-L520 — def test_missing_symbol_detection_reads_the_report_not_the_sdk(self) -> None
- test_missing_method_detection_reads_the_report · method · L522-L528 — def test_missing_method_detection_reads_the_report(self) -> None
- test_report_generation_needs_the_sdk · method · L530-L556 — def test_report_generation_needs_the_sdk(self) -> None
- test_the_installed_sdk_meets_the_documented_baseline · method · L558-L570 — def test_the_installed_sdk_meets_the_documented_baseline(self) -> None
- test_the_report_is_json_serialisable · method · L572-L578 — def test_the_report_is_json_serialisable(self) -> None