pyvider
2025-11-01
Renamed `provider_testmode` to `pyvider_testmode` throughout the codebase, added environment...
16 files · 501+ · 413-
Provider_testmode to pyvider_testmode
9 files changed
utils.pyUpdated utils.py (+2/-2 lines)configure_provider.pyUpdated configure_provider.py (+25/-7 lines)utils.pyUpdated utils.py (+2/-2 lines)validate_provider_config.pyUpdated validate_provider_config.py (+1/-1 lines)provider.pyUpdated provider.py (+1/-1 lines)fixtures.pyUpdated fixtures.py (+1/-1 lines)test_pyvider_provider.pyUpdated test_pyvider_provider.py (+6/-6 lines)mkdocs.ymlUpdated mkdocs.yml (+1/-1 lines)main.pyUpdated main.py (+14/-9 lines)
- Renamed the provider schema attribute from
provider_testmodetopyvider_testmodeinPyviderProvider.setup()decouple internal13 files
context.pymain.pyutils.pycall_function.pyconfigure_provider.pyutils.pyvalidate_provider_config.pyprovider.pyfixtures.pytest_pyvider_provider.pytest_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.py
- Updated
configure_provider.pyto readpyvider_testmodeinstead ofprovider_testmodefrom config baseline internal2 files
configure_provider.pyprovider.py
- Updated
validate_provider_config.pyto use new attribute name instantiate internal1 file
validate_provider_config.py
- Updated
check_test_only_access()error messages inhandlers/utils.pyto reference new name instantiate internal2 files
utils.pyutils.py
- Updated test fixture
TestConfigclass intestmode/fixtures.pyqualify internal1 file
fixtures.py
- Updated all test assertions in
test_pyvider_provider.pyqualify internal2 files
provider.pytest_pyvider_provider.py
Environment Variable Test Mode Override
4 files changed
test_pyvider_provider.pyChanges to test_pyvider_provider.pytest_plan_resource_change_basic.pyChanges to test_plan_resource_change_basic.pytest_read_data_source.pyChanges to test_read_data_source.pytest_validate_provider_config.pyChanges to test_validate_provider_config.py
- Added
PYVIDER_TESTMODEenvironment variable support with highest priority over HCL config baseline internal4 files
test_pyvider_provider.pytest_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.py
- Uses
parse_bool_extended()from provide-foundation to parse the env var baseline internal4 files
test_pyvider_provider.pytest_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.py
- Logs the resolution source (environment variable, HCL config, or default)
baseline
behavioral
4 files
test_pyvider_provider.pytest_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.py
Smart Default Behavior
1 file changed
utils.pyUpdated utils.py
- Changed CLI default action when no subcommand given: now checks
TF_PLUGIN_MAGIC_COOKIEenvironment variable baseline behavioral16 files
VERSIONmkdocs.ymlcontext.pymain.pyutils.pycall_function.pyconfigure_provider.pyutils.pyvalidate_provider_config.pyprovider.pyfixtures.pytest_pyvider_provider.pytest_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.pyuv.lock
- If cookie present (Terraform invocation), auto-invokes the
providecommand as before baseline behavioral16 files
VERSIONmkdocs.ymlcontext.pymain.pyutils.pycall_function.pyconfigure_provider.pyutils.pyvalidate_provider_config.pyprovider.pyfixtures.pytest_pyvider_provider.pytest_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.pyuv.lock
- If cookie absent (interactive use), shows help instead of blindly starting provider mode
decouple
internal
16 files
VERSIONmkdocs.ymlcontext.pymain.pyutils.pycall_function.pyconfigure_provider.pyutils.pyvalidate_provider_config.pyprovider.pyfixtures.pytest_pyvider_provider.pytest_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.pyuv.lock
- Updated
cli/utils.pyto removeprovidefrom exec lines in wrapper scripts (exec pyvider "$@"instead ofexec pyvider provide "$@") decouple behavioral1 file
utils.py
Version from VERSION File
3 files changed
VERSIONUpdated VERSION (+1/-1 lines)context.pyUpdated context.py (+17/-1 lines)uv.lockUpdated uv.lock (+220/-201 lines)
- Added
_read_version_from_file()function incli/context.pythat reads version fromVERSIONfile in current directory baseline behavioral2 files
VERSIONcontext.py
- Changed
PyviderContextto use this function instead of config lookup forpyvider_versionbaseline internal1 file
VERSION
Enhanced Function Dispatch Logging
1 file changed
call_function.pyUpdated call_function.py (+8/-2 lines)
- Added
logger.info()calls in_inject_capabilities()incall_function.pyfor capability injection debugging instantiate internal1 file
call_function.py
Versioning
1 file changed
0.0.1026Updated 0.0.1026
Type Annotation Improvements
3 files changed
test_plan_resource_change_basic.pyUpdated test_plan_resource_change_basic.py (+43/-36 lines)test_read_data_source.pyUpdated test_read_data_source.py (+154/-137 lines)test_validate_provider_config.pyUpdated test_validate_provider_config.py (+5/-5 lines)
- Added type annotations to test fixtures and test methods across
test_plan_resource_change_basic.py,test_read_data_source.py, andtest_validate_provider_config.pyqualify internal3 files
test_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.py
- Modernized
withstatement nesting (usingwith patch(...) as ..., patch(...) as ...:instead of nestedwithblocks) remediate internal16 files
VERSIONmkdocs.ymlcontext.pymain.pyutils.pycall_function.pyconfigure_provider.pyutils.pyvalidate_provider_config.pyprovider.pyfixtures.pytest_pyvider_provider.pytest_plan_resource_change_basic.pytest_read_data_source.pytest_validate_provider_config.pyuv.lock