Skip to content

Remove manual creation of io.trino.metadata.Catalog in tests#10875

Merged
dain merged 1 commit intotrinodb:masterfrom
dain:remove-manual-catalog-creation
Feb 3, 2022
Merged

Remove manual creation of io.trino.metadata.Catalog in tests#10875
dain merged 1 commit intotrinodb:masterfrom
dain:remove-manual-catalog-creation

Conversation

@dain
Copy link
Copy Markdown
Member

@dain dain commented Feb 1, 2022

Catalog is a deep internal API and use if this interface in tests makes refatoring of the engine difficult. Instead LocalQueryRunner is used to add catalogs and fetch internal services.

No release notes needed for this.

@dain dain requested a review from electrum February 1, 2022 01:37
@cla-bot cla-bot bot added the cla-signed label Feb 1, 2022
@dain dain force-pushed the remove-manual-catalog-creation branch from 1767d05 to e0f52c5 Compare February 1, 2022 18:58
Catalog is a deep internal API and use if this interface in tests makes
refatoring of the engine difficult.  Instead LocalQueryRunner is used to
add catalogs and fetch internal services.
@dain dain force-pushed the remove-manual-catalog-creation branch from e0f52c5 to 9a1b0c8 Compare February 2, 2022 17:53
queryStateMachine = stateMachine(transactionManager, createTestMetadataManager(), new AllowAllAccessControl(), testSession);
}

@AfterMethod
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@AfterClass(alwaysRun = true)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This needs to be after method to match the before method above, but I added the always true

@dain dain merged commit dc4c934 into trinodb:master Feb 3, 2022
@dain dain deleted the remove-manual-catalog-creation branch February 3, 2022 07:15
@dain dain mentioned this pull request Feb 3, 2022
@github-actions github-actions bot added this to the 370 milestone Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants