-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tracing for testing ConnectorMetadata invocations
This refactors `TestInformationSchemaConnector.testMetadataCalls` to leverage `TracingConnectorMetadata` instead of manually performed counts within `CountingMockConnector. Among other things this exposes `listViews` calls which were previously not counted. The differences in expected counts in the test come from the fact how the counting was done previously. For example `MockConnectorMetadata.listTables` calls `listSchemaNames` before `listTables`, so this single metadata call was being recorded as both `listSchemaNames` and `listTables` (zero or more times).
- Loading branch information
Showing
6 changed files
with
218 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.