Skip to content

Commit

Permalink
rename source-acceptance-test to connector-acceptance-test as per air…
Browse files Browse the repository at this point in the history
  • Loading branch information
sh4sh committed Feb 14, 2023
1 parent b26f63e commit 8f85853
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-nvd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Place custom tests inside `integration_tests/` folder, then, from the connector
python -m pytest integration_tests
```
#### Acceptance Tests
Customize `acceptance-test-config.yml` file to configure tests. See [Source Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/source-acceptance-tests-reference) for more information.
Customize `acceptance-test-config.yml` file to configure tests. See [Source Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
To run your integration tests with acceptance tests, from the connector root, run
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
docker build . -t $(cat acceptance-test-config.yml | grep "connector_image" | head -n 1 | cut -d: -f2-)

# Pull latest acctest image
docker pull airbyte/source-acceptance-test:latest
docker pull airbyte/connector-acceptance-test:latest

# Run
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp:/tmp \
-v $(pwd):/test_input \
airbyte/source-acceptance-test \
airbyte/connector-acceptance-test \
--acceptance-test-config /test_input

2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-nvd/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'airbyte-python'
id 'airbyte-docker'
id 'airbyte-source-acceptance-test'
id 'airbyte-connector-acceptance-test'
}

airbytePython {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-e ../../bases/source-acceptance-test
-e ../../bases/connector-acceptance-test
-e .
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-nvd/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
TEST_REQUIREMENTS = [
"pytest~=6.2",
"pytest-mock~=3.6.1",
"source-acceptance-test",
"connector-acceptance-test",
]

setup(
Expand Down

0 comments on commit 8f85853

Please sign in to comment.