Rachel RIZK
11/17/2022, 11:25 AMsecrets/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:
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? 🙏Rachel RIZK
11/17/2022, 11:26 AMRachel RIZK
11/17/2022, 5:39 PMThibault LATRACE
03/20/2023, 10:46 AMNo such file or directory: '/data/tap_config.json (details above☝️)
Has anyone else encountered this issue?