Does anyone know how to test the Jira connector? I...
# help-connector-development
e
Does anyone know how to test the Jira connector? I'd like to fix this issue: https://github.com/airbytehq/airbyte/issues/24981 The source code change is a one-liner but I need help with tests. The unit tests are extremely basic. Just asserting that streams exist with no content checks at all, so there's nothing to change there (though seems like maybe they could/should be expanded). The bulk of the testing seems to be through integration tests that I think are connecting to some shared Jira instance. The README states:
Copy code
**If you are a community contributor**, follow the instructions in the [documentation](<https://docs.airbyte.io/integrations/sources/jira>)
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_jira/spec.json` file.
Note that the `secrets` directory is gitignored by default, so there is no danger of accidentally checking in sensitive information.
See `integration_tests/sample_config.json` for a sample config file.
However, that documentation contains nothing about generating credentials.
s
@Eric Schrock I think the fastest way to solve the problem is to create a PR and ideally add a unit test mocking the response so you can see if given the expected response, the board ID gets added to the sprint object
but definitely at least submit the code change and we can review it/test it on our end
e
Sounds good, thanks. It would be the first unit test checking the content of a stream, but that seems like a better pattern so happy to be the first!