def METHOD_NAME(environment: Any) -> None:
    with pytest.raises(ConfigFieldMissingException):
        resolve.resolve_configuration(SecretConfiguration())
    environment['SECRET_VALUE'] = "1"
    C = resolve.resolve_configuration(SecretConfiguration())
    assert C.secret_value == "1"
    # mock the path to point to secret storage
    # from dlt.common.configuration import config_utils
    path = environ_provider.SECRET_STORAGE_PATH
    del environment['SECRET_VALUE']
    try:
        # must read a secret file
        environ_provider.SECRET_STORAGE_PATH = "./tests/common/cases/%s"
        C = resolve.resolve_configuration(SecretConfiguration())
        assert C.secret_value == "BANANA"
        # set some weird path, no secret file at all
        del environment['SECRET_VALUE']
        environ_provider.SECRET_STORAGE_PATH = "!C:\\PATH%s"
        with pytest.raises(ConfigFieldMissingException):
            resolve.resolve_configuration(SecretConfiguration())
        # set env which is a fallback for secret not as file
        environment['SECRET_VALUE'] = "1"
        C = resolve.resolve_configuration(SecretConfiguration())
        assert C.secret_value == "1"
    finally:
        environ_provider.SECRET_STORAGE_PATH = path