get-hc-secrets 1.5.20__tar.gz → 1.5.21__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/PKG-INFO +1 -1
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/pyproject.toml +1 -1
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/src/getSecrets/__init__.py +2 -1
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/src/get_hc_secrets.egg-info/PKG-INFO +1 -1
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/tests/test_getsecrets.py +5 -1
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/LICENSE +0 -0
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/README.md +0 -0
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/setup.cfg +0 -0
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/src/get_hc_secrets.egg-info/SOURCES.txt +0 -0
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/src/get_hc_secrets.egg-info/dependency_links.txt +0 -0
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/src/get_hc_secrets.egg-info/requires.txt +0 -0
- {get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/src/get_hc_secrets.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: get_hc_secrets
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.21
|
|
4
4
|
Summary: A package to read secrets from Hashicorp vault or from a local file
|
|
5
5
|
Author-email: Xavier Mayeur <xavier@mayeur.be>
|
|
6
6
|
Project-URL: Homepage, https://github.com/xmayeur/getSecrets
|
|
@@ -143,7 +143,8 @@ def upd_secret(id: str, data, repo: str = 'secret'):
|
|
|
143
143
|
# check if data is available in config file
|
|
144
144
|
if id in _config:
|
|
145
145
|
_config[id] = data
|
|
146
|
-
|
|
146
|
+
with open(join(_home, _config_file), 'w') as fd:
|
|
147
|
+
yaml.safe_dump(_config, fd)
|
|
147
148
|
return 200
|
|
148
149
|
|
|
149
150
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: get_hc_secrets
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.21
|
|
4
4
|
Summary: A package to read secrets from Hashicorp vault or from a local file
|
|
5
5
|
Author-email: Xavier Mayeur <xavier@mayeur.be>
|
|
6
6
|
Project-URL: Homepage, https://github.com/xmayeur/getSecrets
|
|
@@ -11,9 +11,13 @@ class TestGetSecrets(unittest.TestCase):
|
|
|
11
11
|
self.assertTrue('test' in secrets)
|
|
12
12
|
|
|
13
13
|
def test_getsecrets(self):
|
|
14
|
+
|
|
15
|
+
secret = gs.get_secret('test')
|
|
16
|
+
secret['test'] = 'test1'
|
|
17
|
+
gs.upd_secret('test', secret)
|
|
14
18
|
secret = gs.get_secret('test')
|
|
15
19
|
self.assertTrue('test' in secret)
|
|
16
|
-
self.assertEqual(secret['test'], '
|
|
20
|
+
self.assertEqual(secret['test'], 'test1')
|
|
17
21
|
|
|
18
22
|
def test_usr_pwd(self):
|
|
19
23
|
usr, pwd = gs.get_user_pwd('test')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{get_hc_secrets-1.5.20 → get_hc_secrets-1.5.21}/src/get_hc_secrets.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|