diff options
| author | Simeon Simeonov | 2024-12-26 22:58:37 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2024-12-26 22:58:37 +0100 |
| commit | bba82a86b137c73832ad7b6a397d3db24fcc625f (patch) | |
| tree | 9071225331e3035da3d0f5756acf6b3cf5b1de8a /tests/test_envtoolkit_instance.py | |
| parent | 08a3280b062af83ee50fa139d7827d954907886e (diff) | |
Add encrypted values to ETOOLKIT_SENSITIVE implicitly2.1.0
Diffstat (limited to 'tests/test_envtoolkit_instance.py')
| -rw-r--r-- | tests/test_envtoolkit_instance.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_envtoolkit_instance.py b/tests/test_envtoolkit_instance.py index 9873d57..f555f81 100644 --- a/tests/test_envtoolkit_instance.py +++ b/tests/test_envtoolkit_instance.py | |||
| @@ -31,7 +31,8 @@ def test_instantiation(config_data): | |||
| 31 | instance = etoolkit.EtoolkitInstance('secret', config_data) | 31 | instance = etoolkit.EtoolkitInstance('secret', config_data) |
| 32 | assert 'ETOOLKIT_PARENT' not in instance.raw_env_variables | 32 | assert 'ETOOLKIT_PARENT' not in instance.raw_env_variables |
| 33 | assert 'ETOOLKIT_SENSITIVE' not in instance.raw_env_variables | 33 | assert 'ETOOLKIT_SENSITIVE' not in instance.raw_env_variables |
| 34 | assert 'DB_CONNECTION' not in instance.sensitive_env_variables | 34 | assert 'GNUPGHOME' not in instance.sensitive_env_variables |
| 35 | assert 'ETOOLKIT_TEST_PASSWORD2' not in instance.sensitive_env_variables | ||
| 35 | assert 'ETOOLKIT_TEST_PASSWORD' in instance.sensitive_env_variables | 36 | assert 'ETOOLKIT_TEST_PASSWORD' in instance.sensitive_env_variables |
| 36 | assert instance.name == 'secret' | 37 | assert instance.name == 'secret' |
| 37 | assert ( | 38 | assert ( |
| @@ -64,6 +65,7 @@ def test_get_environ( | |||
| 64 | env = instance.get_environ() | 65 | env = instance.get_environ() |
| 65 | assert isinstance(env, dict) | 66 | assert isinstance(env, dict) |
| 66 | assert env['ETOOLKIT_TEST_PASSWORD'] == short_value | 67 | assert env['ETOOLKIT_TEST_PASSWORD'] == short_value |
| 68 | assert 'ETOOLKIT_TEST_PASSWORD2' in instance.sensitive_env_variables | ||
| 67 | 69 | ||
| 68 | 70 | ||
| 69 | def test_get_full_name(config_data): | 71 | def test_get_full_name(config_data): |
