From 39e23faf7fe7b7c3eae79523e24177a4d5553aa1 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 17 Jul 2025 15:29:15 +0900 Subject: [PATCH] dict mask helper test code update --- test-run/iterator_handling/dict_helpers.py | 49 ++++++++++++++++++++-- uv.lock | 2 +- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/test-run/iterator_handling/dict_helpers.py b/test-run/iterator_handling/dict_helpers.py index d4c1557..ce65ac2 100644 --- a/test-run/iterator_handling/dict_helpers.py +++ b/test-run/iterator_handling/dict_helpers.py @@ -47,9 +47,52 @@ def __mask(): "my_key_value": "normal_value", } } - result = mask(data, ['key']) - print(f"In: {dump_data(data)}") - print(f"Masked: {dump_data(result)}") + data = { + "basic": { + "log_level_console": "DEBUG", + "log_level_file": "DEBUG", + "storage_interface": "sqlite", + "content_start_date": "2023-1-1", + "encryption_key": "ENCRYPTION_KEY" + }, + "email": { + "alert_email": [ + "test+z-sd@tequila.jp" + ] + }, + "poller": { + "max_forks": "1", + "interface": "Zac" + }, + "pusher": { + "max_forks": "3", + "interface": "Screendragon" + }, + "api:Zac": { + "type": "zac", + "client_id": "oro_zac_demo", + "client_secret": "CLIENT_SECRET", + "username": "zacuser", + "password": "ZACuser3", + "hostname": "e-gra2.zac.ai", + "appname": "e-gra2_api_trial", + "api_path": "b/api/v2" + }, + "api:Screendragon": { + "type": "screendragon", + "client_id": "omniprostaging", + "encryption_client": "SOME_SECRET", + "client_encryption": "SOME_SECRET", + "secret_client": "SOME_SECRET", + "client_secret": "SOME_SECRET", + "hostname": "omniprostaging.screendragon.com", + "appname": "sdapi", + "api_path": "api" + } + } + result = mask(data) + print(f"** In: {dump_data(data)}") + print(f"===> Masked: {dump_data(result)}") def main(): diff --git a/uv.lock b/uv.lock index db8da67..e6a058e 100644 --- a/uv.lock +++ b/uv.lock @@ -44,7 +44,7 @@ wheels = [ [[package]] name = "corelibs" -version = "0.14.0" +version = "0.14.1" source = { editable = "." } dependencies = [ { name = "jmespath" },