Skip to content

Commit

Permalink
Source Azure Blob Storage: add unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Inzhyyants <[email protected]>
  • Loading branch information
artem1205 committed Apr 28, 2024
1 parent 24ac101 commit 643d774
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.


import dpath.util
from source_azure_blob_storage import SourceAzureBlobStorageSpec


def test_spec():
config = SourceAzureBlobStorageSpec(
azure_blob_storage_endpoint="https://teststorage.blob.core.windows.net",
azure_blob_storage_account_name="account1",
azure_blob_storage_container_name="airbyte-source-azure-blob-storage-test",
credentials={"auth_type": "storage_account_key", "azure_blob_storage_account_key": "key1"},
streams=[],
start_date="2024-01-01T00:00:00.000000Z",
)

assert config.documentation_url() == "https://docs.airbyte.com/integrations/sources/azure-blob-storage"
assert len(dpath.util.get(config.schema(), "properties/streams/items/properties/format/oneOf/4/properties/processing/oneOf")) == 1

0 comments on commit 643d774

Please sign in to comment.