Orchestrata Ultimate › Tests › Reference › scripts › test_secrets_cli
Tests reference — tests/scripts/test_secrets_cli.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_secrets_cli.py
source · 26 tests · 552 lines
Tests for scripts/secrets_cli.py — the SOPS + age secrets lifecycle CLI.
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestInit |
69 | |
| method | TestInit.test_generates_identity_and_sops_config |
70 | |
| method | TestInit.test_refuses_to_overwrite_an_existing_identity |
87 | |
| method | TestInit.test_identity_and_directory_permissions |
100 | |
| class | TestEncryptDecryptRoundTrip |
109 | |
| method | TestEncryptDecryptRoundTrip.test_round_trips_exactly |
110 | |
| method | TestEncryptDecryptRoundTrip.test_empty_source_encrypts_and_decrypts_to_zero_keys |
138 | |
| class | TestEncryptIdempotence |
159 | |
| method | TestEncryptIdempotence.test_byte_idempotent_across_two_runs |
160 | |
| method | TestEncryptIdempotence.test_a_real_change_does_re_encrypt |
182 | |
| class | TestDecryptClobberProtection |
210 | |
| method | TestDecryptClobberProtection.test_refuses_a_differing_destination_and_names_the_keys |
221 | |
| method | TestDecryptClobberProtection.test_force_overwrites_a_differing_destination |
244 | |
| method | TestDecryptClobberProtection.test_a_matching_destination_is_not_refused |
260 | |
| class | TestFailureModesLeaveNothingBehind |
274 | |
| method | TestFailureModesLeaveNothingBehind.test_corrupted_ciphertext_fails_loudly_and_leaves_dest_untouched |
275 | |
| method | TestFailureModesLeaveNothingBehind.test_wrong_age_key_fails_and_writes_nothing |
300 | |
| method | TestFailureModesLeaveNothingBehind.test_decrypt_with_no_ciphertext_is_a_precondition_failure |
325 | |
| class | TestDoctor |
340 | |
| method | TestDoctor.test_reports_fail_when_identity_is_absent |
341 | |
| method | TestDoctor.test_reports_pass_after_a_full_init_and_encrypt |
353 | |
| class | TestStatus |
369 | |
| method | TestStatus.test_in_sync_after_encrypt |
370 | |
| method | TestStatus.test_out_of_sync_names_differing_keys_not_values |
389 | |
| method | TestStatus.test_unknown_when_nothing_is_set_up_yet |
407 | |
| class | TestEnvFilePermissions |
417 | |
| method | TestEnvFilePermissions.test_env_file_mode_is_600_after_decrypt |
418 | |
| class | TestRunSubprocessDiagnostics |
436 | |
| method | TestRunSubprocessDiagnostics.test_a_missing_cwd_is_reported_as_a_missing_cwd_not_a_missing_binary |
437 | |
| method | TestRunSubprocessDiagnostics.test_a_missing_binary_is_reported_as_a_missing_binary |
448 | |
| class | TestResolveIdentityPath |
459 | |
| method | TestResolveIdentityPath.test_default_is_the_xdg_path |
460 | |
| method | TestResolveIdentityPath.test_env_override_without_touching_os_environ |
464 | |
| class | TestCliDispatch |
474 | |
| method | TestCliDispatch.test_doctor_via_main_exits_two_when_nothing_is_set_up |
475 | |
| method | TestCliDispatch.test_full_lifecycle_via_main |
492 | |
| method | TestCliDispatch.test_no_subcommand_is_rejected |
550 |