Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catalog integration tests #16424

Merged
merged 7 commits into from May 17, 2024
Merged

Conversation

zachjsh
Copy link
Contributor

@zachjsh zachjsh commented May 9, 2024

Description

Add more Druid catalog integration tests.

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@zachjsh zachjsh requested a review from kgyrtkirk May 13, 2024 23:24
@zachjsh zachjsh marked this pull request as ready for review May 13, 2024 23:24
if (sqlTaskStatus.getState().isFailure()) {
Assert.fail(StringUtils.format(
"Unable to start the task successfully.\nPossible exception: %s",
sqlTaskStatus.getError()

Check notice

Code scanning / CodeQL

Use of default toString() Note

Default toString(): ErrorResponse inherits toString() from Object, and so is not suitable for printing.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a valid issue; could you implement toString - or use jackson to flatten it down?

if (sqlTaskStatus.getState().isFailure()) {
Assert.fail(StringUtils.format(
"Unable to start the task successfully.\nPossible exception: %s",
sqlTaskStatus.getError()

Check notice

Code scanning / CodeQL

Use of default toString() Note

Default toString(): ErrorResponse inherits toString() from Object, and so is not suitable for printing.
if (sqlTaskStatus.getState().isFailure()) {
Assert.fail(StringUtils.format(
"Unable to start the task successfully.\nPossible exception: %s",
sqlTaskStatus.getError()

Check notice

Code scanning / CodeQL

Use of default toString() Note

Default toString(): ErrorResponse inherits toString() from Object, and so is not suitable for printing.
[
{
"query": "SELECT * FROM %%DATASOURCE%%",
"expectedResults": [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious - how did you generated this?

if (sqlTaskStatus.getState().isFailure()) {
Assert.fail(StringUtils.format(
"Unable to start the task successfully.\nPossible exception: %s",
sqlTaskStatus.getError()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a valid issue; could you implement toString - or use jackson to flatten it down?

@zachjsh zachjsh merged commit dd5dc50 into apache:master May 17, 2024
87 checks passed
@zachjsh zachjsh deleted the catalog-integration-tests branch May 17, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants