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.py Updated utils.py (+2/-2 lines)
  • configure_provider.py Updated configure_provider.py (+25/-7 lines)
  • utils.py Updated utils.py (+2/-2 lines)
  • validate_provider_config.py Updated validate_provider_config.py (+1/-1 lines)
  • provider.py Updated provider.py (+1/-1 lines)
  • fixtures.py Updated fixtures.py (+1/-1 lines)
  • test_pyvider_provider.py Updated test_pyvider_provider.py (+6/-6 lines)
  • mkdocs.yml Updated mkdocs.yml (+1/-1 lines)
  • main.py Updated main.py (+14/-9 lines)
  • Renamed the provider schema attribute from provider_testmode to pyvider_testmode in PyviderProvider.setup() decouple internal
    13 files
    • context.py
    • main.py
    • utils.py
    • call_function.py
    • configure_provider.py
    • utils.py
    • validate_provider_config.py
    • provider.py
    • fixtures.py
    • test_pyvider_provider.py
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py
  • Updated configure_provider.py to read pyvider_testmode instead of provider_testmode from config baseline internal
    2 files
    • configure_provider.py
    • provider.py
  • Updated validate_provider_config.py to use new attribute name instantiate internal
    1 file
    • validate_provider_config.py
  • Updated check_test_only_access() error messages in handlers/utils.py to reference new name instantiate internal
    2 files
    • utils.py
    • utils.py
  • Updated test fixture TestConfig class in testmode/fixtures.py qualify internal
    1 file
    • fixtures.py
  • Updated all test assertions in test_pyvider_provider.py qualify internal
    2 files
    • provider.py
    • test_pyvider_provider.py

Environment Variable Test Mode Override

4 files changed
  • test_pyvider_provider.py Changes to test_pyvider_provider.py
  • test_plan_resource_change_basic.py Changes to test_plan_resource_change_basic.py
  • test_read_data_source.py Changes to test_read_data_source.py
  • test_validate_provider_config.py Changes to test_validate_provider_config.py
  • Added PYVIDER_TESTMODE environment variable support with highest priority over HCL config baseline internal
    4 files
    • test_pyvider_provider.py
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py
  • Uses parse_bool_extended() from provide-foundation to parse the env var baseline internal
    4 files
    • test_pyvider_provider.py
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py
  • Logs the resolution source (environment variable, HCL config, or default) baseline behavioral
    4 files
    • test_pyvider_provider.py
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py

Smart Default Behavior

1 file changed
  • utils.py Updated utils.py
  • Changed CLI default action when no subcommand given: now checks TF_PLUGIN_MAGIC_COOKIE environment variable baseline behavioral
    16 files
    • VERSION
    • mkdocs.yml
    • context.py
    • main.py
    • utils.py
    • call_function.py
    • configure_provider.py
    • utils.py
    • validate_provider_config.py
    • provider.py
    • fixtures.py
    • test_pyvider_provider.py
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py
    • uv.lock
  • If cookie present (Terraform invocation), auto-invokes the provide command as before baseline behavioral
    16 files
    • VERSION
    • mkdocs.yml
    • context.py
    • main.py
    • utils.py
    • call_function.py
    • configure_provider.py
    • utils.py
    • validate_provider_config.py
    • provider.py
    • fixtures.py
    • test_pyvider_provider.py
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py
    • uv.lock
  • If cookie absent (interactive use), shows help instead of blindly starting provider mode decouple internal
    16 files
    • VERSION
    • mkdocs.yml
    • context.py
    • main.py
    • utils.py
    • call_function.py
    • configure_provider.py
    • utils.py
    • validate_provider_config.py
    • provider.py
    • fixtures.py
    • test_pyvider_provider.py
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py
    • uv.lock
  • Updated cli/utils.py to remove provide from exec lines in wrapper scripts (exec pyvider "$@" instead of exec pyvider provide "$@") decouple behavioral
    1 file
    • utils.py

Version from VERSION File

3 files changed
  • VERSION Updated VERSION (+1/-1 lines)
  • context.py Updated context.py (+17/-1 lines)
  • uv.lock Updated uv.lock (+220/-201 lines)
  • Added _read_version_from_file() function in cli/context.py that reads version from VERSION file in current directory baseline behavioral
    2 files
    • VERSION
    • context.py
  • Changed PyviderContext to use this function instead of config lookup for pyvider_version baseline internal
    1 file
    • VERSION

Enhanced Function Dispatch Logging

1 file changed
  • call_function.py Updated call_function.py (+8/-2 lines)
  • Added logger.info() calls in _inject_capabilities() in call_function.py for capability injection debugging instantiate internal
    1 file
    • call_function.py

Versioning

1 file changed
  • 0.0.1026 Updated 0.0.1026

Type Annotation Improvements

3 files changed
  • test_plan_resource_change_basic.py Updated test_plan_resource_change_basic.py (+43/-36 lines)
  • test_read_data_source.py Updated test_read_data_source.py (+154/-137 lines)
  • test_validate_provider_config.py Updated 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, and test_validate_provider_config.py qualify internal
    3 files
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py
  • Modernized with statement nesting (using with patch(...) as ..., patch(...) as ...: instead of nested with blocks) remediate internal
    16 files
    • VERSION
    • mkdocs.yml
    • context.py
    • main.py
    • utils.py
    • call_function.py
    • configure_provider.py
    • utils.py
    • validate_provider_config.py
    • provider.py
    • fixtures.py
    • test_pyvider_provider.py
    • test_plan_resource_change_basic.py
    • test_read_data_source.py
    • test_validate_provider_config.py
    • uv.lock