pilot-platform-common 2.3.0__tar.gz → 2.4.0__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.
Files changed (57) hide show
  1. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/PKG-INFO +1 -1
  2. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/project/project_client.py +3 -0
  3. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/pilot_platform_common.egg-info/PKG-INFO +1 -1
  4. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/pyproject.toml +1 -1
  5. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/setup.py +1 -1
  6. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/conftest.py +1 -0
  7. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/test_project_client.py +3 -0
  8. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/README.md +0 -0
  9. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/__init__.py +0 -0
  10. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/geid/__init__.py +0 -0
  11. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/geid/geid_client.py +0 -0
  12. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/jwt_handler/JWTHandler.py +0 -0
  13. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/jwt_handler/__init__.py +0 -0
  14. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/jwt_handler/jwt_handler_exception.py +0 -0
  15. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/jwt_handler/models.py +0 -0
  16. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/logging/__init__.py +0 -0
  17. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/logging/formatter.py +0 -0
  18. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/logging/logger.py +0 -0
  19. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/logging/logging.py +0 -0
  20. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/models/__init__.py +0 -0
  21. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/models/config_center_policy.py +0 -0
  22. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/models/service_id_generator.py +0 -0
  23. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/object_storage_adaptor/__init__.py +0 -0
  24. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/object_storage_adaptor/base_client.py +0 -0
  25. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/object_storage_adaptor/boto3_admin_client.py +0 -0
  26. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/object_storage_adaptor/boto3_client.py +0 -0
  27. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/object_storage_adaptor/minio_policy_client.py +0 -0
  28. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/permissions/__init__.py +0 -0
  29. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/permissions/exceptions.py +0 -0
  30. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/permissions/permissions.py +0 -0
  31. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/permissions/permissions_manager.py +0 -0
  32. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/permissions/schemas.py +0 -0
  33. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/project/__init__.py +0 -0
  34. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/project/project_exceptions.py +0 -0
  35. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/services/__init__.py +0 -0
  36. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/services/auth_client.py +0 -0
  37. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/vault/__init__.py +0 -0
  38. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/vault/vault_client.py +0 -0
  39. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/common/vault/vault_exception.py +0 -0
  40. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/pilot_platform_common.egg-info/SOURCES.txt +0 -0
  41. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/pilot_platform_common.egg-info/dependency_links.txt +0 -0
  42. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/pilot_platform_common.egg-info/requires.txt +0 -0
  43. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/pilot_platform_common.egg-info/top_level.txt +0 -0
  44. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/setup.cfg +0 -0
  45. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/__init__.py +0 -0
  46. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/fixtures/__init__.py +0 -0
  47. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/fixtures/fake.py +0 -0
  48. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/fixtures/metadata.py +0 -0
  49. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/permissions/__init__.py +0 -0
  50. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/permissions/test_auth_client.py +0 -0
  51. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/permissions/test_permissions.py +0 -0
  52. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/permissions/test_permissions_manager.py +0 -0
  53. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/test_formatter.py +0 -0
  54. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/test_geid_client.py +0 -0
  55. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/test_jwt_handler.py +0 -0
  56. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/test_logging.py +0 -0
  57. {pilot_platform_common-2.3.0 → pilot_platform_common-2.4.0}/tests/test_vault_client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pilot-platform-common
3
- Version: 2.3.0
3
+ Version: 2.4.0
4
4
  Summary: Generates entity ID and connects with Vault (secret engine) to retrieve credentials
5
5
  Author: Indoc Systems
6
6
  Author-email: etaylor@indocresearch.org
@@ -33,6 +33,7 @@ class ProjectObject:
33
33
  'updated_at',
34
34
  'is_favourite',
35
35
  'state',
36
+ 'created_by',
36
37
  ]
37
38
 
38
39
  def __init__(self, data, project_client):
@@ -198,6 +199,7 @@ class ProjectClient:
198
199
  name: str,
199
200
  description: str,
200
201
  operator: str,
202
+ created_by: str,
201
203
  image_url: Union[str, None] = None,
202
204
  tags: Union[list[str], None] = None,
203
205
  system_tags: Union[list[str], None] = None,
@@ -216,6 +218,7 @@ class ProjectClient:
216
218
  'tags': tags,
217
219
  'system_tags': system_tags,
218
220
  'is_discoverable': is_discoverable,
221
+ 'created_by': created_by,
219
222
  }
220
223
  # remove blank items
221
224
  data = {k: v for k, v in data.items() if v is not None}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pilot-platform-common
3
- Version: 2.3.0
3
+ Version: 2.4.0
4
4
  Summary: Generates entity ID and connects with Vault (secret engine) to retrieve credentials
5
5
  Author: Indoc Systems
6
6
  Author-email: etaylor@indocresearch.org
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "common"
3
- version = "2.3.0"
3
+ version = "2.4.0"
4
4
  description = ""
5
5
  authors = ["Indoc Systems"]
6
6
 
@@ -11,7 +11,7 @@ long_description = (this_directory / 'README.md').read_text()
11
11
 
12
12
  setuptools.setup(
13
13
  name='pilot-platform-common',
14
- version='2.3.0',
14
+ version='2.4.0',
15
15
  author='Indoc Systems',
16
16
  author_email='etaylor@indocresearch.org',
17
17
  description='Generates entity ID and connects with Vault (secret engine) to retrieve credentials',
@@ -29,6 +29,7 @@ PROJECT_DATA = {
29
29
  'tags': ['tag1', 'tag2'],
30
30
  'system_tags': ['system'],
31
31
  'state': 'in_use',
32
+ 'created_by': 'Test User',
32
33
  }
33
34
 
34
35
  PROJECT_CREDENTIALS = {
@@ -110,9 +110,11 @@ def test_create_project_200(fake, redis, httpx_mock):
110
110
  operator=fake.user_name(),
111
111
  tags=PROJECT_DATA['tags'],
112
112
  system_tags=PROJECT_DATA['system_tags'],
113
+ created_by=PROJECT_DATA['created_by'],
113
114
  )
114
115
  assert project.name == PROJECT_DATA['name']
115
116
  assert project.state == PROJECT_DATA['state']
117
+ assert project.created_by == PROJECT_DATA['created_by']
116
118
 
117
119
 
118
120
  def test_create_project_500(fake, redis, httpx_mock):
@@ -132,6 +134,7 @@ def test_create_project_500(fake, redis, httpx_mock):
132
134
  operator=fake.user_name(),
133
135
  tags=PROJECT_DATA['tags'],
134
136
  system_tags=PROJECT_DATA['system_tags'],
137
+ created_by=PROJECT_DATA['created_by'],
135
138
  )
136
139
 
137
140