Skip to content

Add integration tests for dvc import-url#10770

Closed
1Utkarsh1 wants to merge 2 commits intotreeverse:mainfrom
1Utkarsh1:feat/import-url-integration-tests
Closed

Add integration tests for dvc import-url#10770
1Utkarsh1 wants to merge 2 commits intotreeverse:mainfrom
1Utkarsh1:feat/import-url-integration-tests

Conversation

@1Utkarsh1
Copy link
Copy Markdown

This commit introduces a new test file tests/func/test_import_url_integration.py to validate the dvc import-url command with various remote storage types.

The tests cover:

  • HTTP: Using a local HTTP server to serve a data file.
  • AWS S3: Using moto to mock an S3 bucket.
  • Google Cloud Storage (GCS): Using testcontainers with a GCS emulator.
  • Azure Blob Storage: Using testcontainers with the Azurite emulator.

Each test verifies that dvc import-url successfully imports a file from the respective remote, creates the corresponding .dvc file, and that the content of the imported file matches the source. Fixtures are used to set up and tear down the necessary services and resources for each test.

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

google-labs-jules bot and others added 2 commits June 8, 2025 21:03
This commit introduces a new test file `tests/func/test_import_url_integration.py`
to validate the `dvc import-url` command with various remote storage types.

The tests cover:
- HTTP: Using a local HTTP server to serve a data file.
- AWS S3: Using `moto` to mock an S3 bucket.
- Google Cloud Storage (GCS): Using `testcontainers` with a GCS emulator.
- Azure Blob Storage: Using `testcontainers` with the Azurite emulator.

Each test verifies that `dvc import-url` successfully imports a file from the
respective remote, creates the corresponding .dvc file, and that the content
of the imported file matches the source. Fixtures are used to set up and tear
down the necessary services and resources for each test.
@skshetry
Copy link
Copy Markdown
Collaborator

skshetry commented Jun 9, 2025

@1Utkarsh1, could you share more about the motivation of this PR?

@skshetry skshetry closed this Jun 9, 2025
@treeverse treeverse locked as spam and limited conversation to collaborators Jun 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants