Orchestrata Ultimate › Tests › Reference › infra
Tests reference — tests/infra
tests/infra — 3 test modules, 27 test functions. Source tree: tests/infra at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.
Prose pending.
Modules
| Module | Tests | Covers |
|---|---|---|
test_gen_env.py |
5 | 0 |
test_gen_env_profiles.py |
18 | 0 |
test_infra_package.py |
4 | 3 |
Module details
tests/infra/test_gen_env.py
source · 5 tests · 150 lines
Tests for infra/gen_env.py — the OpenTofu-outputs → .env bridge.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_tofu_binary_prefers_env_then_path_then_terraform |
57 | |
| function | test_env_lines_derive_every_fleet_key_without_the_retired_neo4j_outputs |
68 | The neo4j outputs left with neo4j.tf on 2026-07-27; until 2026-10-08 |
| function | test_write_into_env_is_idempotent_and_keeps_every_other_line |
74 | |
| function | test_main_prints_lines_from_real_tofu_outputs_and_writes_in_place |
118 | |
| function | test_main_reports_a_failed_output_read_on_stderr |
142 |
tests/infra/test_gen_env_profiles.py
source · 18 tests · 273 lines
Tests for infra/gen_env.py's profile-aware derivation (WI-ENV, 2026-10-08).
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_test_profile_derives_the_owned_keys_of_env_test_env |
76 | |
| function | test_test_profile_pins_the_recorded_fleet_addresses |
85 | |
| function | test_dev_profile_derives_the_owned_keys_of_env_dev_env |
105 | |
| function | test_the_template_owns_only_the_test_keys_of_the_test_fleet |
122 | |
| function | test_prod_profile_is_the_unchanged_legacy_derivation |
131 | |
| function | test_a_fleet_missing_a_container_is_a_state_error_naming_it |
138 | |
| function | test_an_absent_output_is_a_state_error_not_a_key_error |
152 | |
| function | test_profile_output_key_and_env_file |
159 | |
| function | test_declared_endpoints_is_none_until_the_output_is_applied |
167 | |
| function | test_from_tofu_inits_then_reads_outputs_through_the_runner |
175 | |
| function | test_subprocess_runner_returns_stdout_and_raises_on_failure |
183 | |
| function | test_writer_replaces_owned_keys_in_place_and_keeps_every_other_line |
191 | |
| function | test_writer_creates_a_missing_file |
207 | |
| function | test_module_level_helpers_keep_their_original_contract |
213 | |
| function | test_main_derives_every_profile_from_the_real_state |
222 | The real host state: the CLI's lines equal the owned keys of the committed files. |
| function | test_main_writes_the_template_keys_in_place |
238 | |
| function | test_main_fails_when_the_state_has_no_fleet_output |
251 | |
| function | test_main_fails_loudly_when_the_terraform_dir_does_not_exist |
271 |
tests/infra/test_infra_package.py
source · 4 tests · 57 lines
Tests for
src/orchestrata_ultimate/infra/__init__.py— the Layer-1
Covers: infra.prolog_bridge, infra.redis_state, infra/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestInfraPackage |
17 | |
| method | TestInfraPackage.test_package_imports_and_is_docstring_only |
18 | |
| method | TestInfraPackage.test_infra_modules_import_from_their_new_home |
38 | |
| method | TestInfraPackage.test_layer_assignments_register_infra_as_layer_1 |
42 | |
| method | TestInfraPackage.test_standards_doc_mirrors_the_registration |
53 |