Orchestrata Ultimate › Tests › Reference › scripts › test_secrets_cli_branches

Tests reference — tests/scripts/test_secrets_cli_branches.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_secrets_cli_branches.py

source · 27 tests · 753 lines

Branch-coverage tests for scripts/secrets_cli.py — the failure and

Kind Name Line Description
class TestDerivePublicKeyFailures 199
method TestDerivePublicKeyFailures.test_garbage_identity_raises_secrets_error 200
method TestDerivePublicKeyFailures.test_empty_public_key_output_raises 207
class TestCanonicalizationFailures 219
method TestCanonicalizationFailures.test_encrypt_leg_failure_raises 220
method TestCanonicalizationFailures.test_decrypt_leg_failure_raises 237
class TestDoctorRecipientBranches 258
method TestDoctorRecipientBranches.test_no_matching_creation_rule_is_reported 259
method TestDoctorRecipientBranches.test_mismatched_recipient_names_both_keys 277
method TestDoctorRecipientBranches.test_broken_identity_is_reported_not_raised 300
class TestInitFailures 315
method TestInitFailures.test_age_keygen_failure_is_an_init_failure 316
method TestInitFailures.test_underivable_recipient_after_creation_fails_init 333
class TestEncryptPreconditions 352
method TestEncryptPreconditions.test_missing_source_is_a_precondition_failure 353
method TestEncryptPreconditions.test_missing_identity_is_refused 371
method TestEncryptPreconditions.test_missing_sops_config_is_refused 385
class TestEncryptFailurePaths 407
method TestEncryptFailurePaths.test_canonicalization_failure_returns_error 408
method TestEncryptFailurePaths.test_undecryptable_existing_ciphertext_triggers_rewrite 431
method TestEncryptFailurePaths.test_final_encrypt_failure_returns_error 458
class TestAtomicWriteCleanup 482
method TestAtomicWriteCleanup.test_failed_replace_removes_the_temp_file 483
class TestDecryptFailurePaths 502
method TestDecryptFailurePaths.test_missing_identity_with_ciphertext_present 503
method TestDecryptFailurePaths.test_dest_canonicalization_failure_refuses_cleanly 516
method TestDecryptFailurePaths.test_final_decrypt_failure_returns_error 540
method TestDecryptFailurePaths.test_refusal_via_main_exits_one 561
method TestDecryptFailurePaths.test_missing_ciphertext_via_main_exits_two 586
class TestStatusRenderAndExitCodes 605
method TestStatusRenderAndExitCodes.test_render_in_sync 614
method TestStatusRenderAndExitCodes.test_render_out_of_sync_lists_keys_not_values 628
method TestStatusRenderAndExitCodes.test_render_unknown_when_unconfigured 636
method TestStatusRenderAndExitCodes.test_error_state_via_main_exits_one 653
method TestStatusRenderAndExitCodes.test_out_of_sync_via_main_exits_one 688
class TestDoctorMissingBinaries 712
method TestDoctorMissingBinaries.test_sops_absent_from_path_is_reported_not_found 713 doctor's "sops on PATH" FAIL branch needs a PATH without sops.