Orchestrata Ultimate › Tests › Reference › scripts › test_promote_env_coverage

Tests reference — tests/scripts/test_promote_env_coverage.py

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

Prose pending.

tests/scripts/test_promote_env_coverage.py

source · 17 tests · 299 lines

Branch-completion tests for scripts/promote_env.py.

Kind Name Line Description
function test_as_utc_empty_stamp_renders_dash 95
function test_as_utc_unparseable_stamp_falls_back_to_slice 99
function test_as_utc_naive_stamp_is_local_time_converted_to_utc 104
function test_as_utc_aware_stamp_is_converted_to_utc 109
function test_check_subnet_skips_keys_with_empty_values 116
function test_probe_tcp_refused_connection_returns_false 125
function test_validate_refuses_unreachable_infra 135 probe=True against a correct-subnet-but-unassigned host: both the redis
function test_validate_preflight_failure_is_refused 162 A repo_root without scripts/validate_env.py makes the preflight
function test_test_command_records_pass_on_zero_returncode 180
function test_test_command_records_fail_on_nonzero_returncode 190
function test_deploy_context_prod_defaults_to_opt_orchestrata 204 ADR-0062: prod is a pinned checkout at /opt/orchestrata -- the
function test_deploy_context_dev_defaults_under_home 212
function test_deploy_context_prod_honours_an_explicit_deploy_root 217 The profile's own ORCHESTRATA_DEPLOY_ROOT still wins over the
function test_drift_line_reports_unknown_when_context_cannot_be_built 239
function test_status_renders_promote_sha_and_drift_verdict 244
function test_main_validate_subcommand_against_live_test_env 283
function test_main_test_subcommand_with_cmd_override 294