Hi everyone :wave: I am preparing a PR for a new c...
# help-connector-development
r
Hi everyone 👋 I am preparing a PR for a new connector using the low-code CDK, but I'm stuck at the acceptance tests: •
secrets/config.json
exists and is at root of connector folder • I build the image using
docker build . -t airbyte/connector-name:dev
• Then I'm running the tests successfully with:
Copy code
docker run --rm airbyte/connector-name:dev spec
docker run --rm -v $(pwd)/secrets:/secrets airbyte/connector-name:dev check --config /secrets/config.json
docker run --rm -v $(pwd)/secrets:/secrets airbyte/connector-name:dev discover --config /secrets/config.json
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/connector-name:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
• Then I run
python -m pytest integration_tests -p integration_tests.acceptance
◦ Everything is fine until 50%, when I get to the check --config part:
FAILED ../../bases/source-acceptance-test/source_acceptance_test/tests/test_core.py::TestConnection::test_check[inputs0] - docker.errors.ContainerError: Command 'check --config /data/tap_config.json'
◦ Then all following tests fail with
FileNotFoundError: [Errno 2] No such file or directory: '/data/tap_config.json'
It looks like the
secrets/config.json
file is not correctly detected. I've found someone had the exact same issue here but I don't have details regarding how it's been solved. Has anyone else encountered this issue? 🙏
Not sure if relevant, but I'm using Rancher and I have an M1 (however the connector works 100% in Airbyte instance)
t
Hello here! I have exactly the same issue as @Rachel RIZK when running integration tests for Bing Ads connector using Docker:
No such file or directory: '/data/tap_config.json
(details above☝️) Has anyone else encountered this issue?