Skip to content

Commit e013b79

Browse files
bugfix/Use validate_default to set pydantic secret defaults (#137)
* Use validate_default to set pydantic secret defaults * remove default for azure access config * add unit test * Update ingest test fixtures (#138) Co-authored-by: rbiseck3 <[email protected]> --------- Co-authored-by: Unstructured-DevOps <[email protected]>
1 parent df43877 commit e013b79

File tree

18 files changed

+11112
-11135
lines changed

18 files changed

+11112
-11135
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.0.19
2+
3+
### Fixes
4+
5+
* **Use validate_default to instantiate default pydantic secrets**
6+
17
## 0.0.18
28

39
### Enhancements
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import unstructured_ingest.v2.processes.connectors # noqa
2+
from unstructured_ingest.v2.processes.connector_registry import (
3+
destination_registry,
4+
source_registry,
5+
)
6+
7+
8+
def test_source_registry():
9+
for entry in source_registry.values():
10+
if downloader_config := entry.downloader_config:
11+
assert downloader_config.model_json_schema()
12+
if indexer_config := entry.indexer_config:
13+
assert indexer_config.model_json_schema()
14+
if connection_config := entry.connection_config:
15+
assert connection_config.model_json_schema()
16+
17+
18+
def test_destination_registry():
19+
for entry in destination_registry.values():
20+
if connection_config := entry.connection_config:
21+
assert connection_config.model_json_schema()
22+
if uploader_config := entry.uploader_config:
23+
assert uploader_config.model_json_schema()
24+
if upload_stager_config := entry.upload_stager_config:
25+
assert upload_stager_config.model_json_schema()

0 commit comments

Comments
 (0)