Orchestrata Ultimate › Tests › Reference › scripts › test_promote_env

Tests reference — tests/scripts/test_promote_env.py

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

Prose pending.

tests/scripts/test_promote_env.py

source · 21 tests · 282 lines

Tests for scripts/promote_env.py — the gated dev -> test -> prod promotion

Covers: promotion.env_profile

Kind Name Line Description
function test_extract_host_from_uri_and_bare 92
function test_graph_host_port_defaults_to_7687 98
function test_missing_required_flags_empty_and_absent 110
function test_check_subnet_passes_correct_and_flags_crosswired 119
function test_load_profile_reads_all_required 140
function test_load_profile_unknown_env_raises 146
function test_load_profile_missing_file_raises 151
function test_load_profile_missing_required_key_raises 157
function test_ledger_record_roundtrip 166
function test_load_ledger_rejects_non_object_json 173
function test_gate_dev_is_entry_point 182
function test_gate_test_requires_dev_validated 186
function test_gate_prod_requires_green_test_run 193
function test_validate_records_pass 209
function test_validate_refuses_crosswired_subnet 214
function test_test_refuses_prod 221
function test_promote_to_test_targets_the_container_not_a_host_tree 228 Promotion to test = (re)provision the orchestrata-test app container.
function test_status_empty_and_populated 252
function test_main_dispatch_status 261
function test_main_refused_returns_2 265
function test_the_default_promoter_reads_this_checkouts_profiles 272 ship's promote arm runs a bare promote_env.py, whose Promoter takes