Skip to content

Migrate tests to Testkit and exclude routing context when it is null #975

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

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

injectives
Copy link
Contributor

Cherry-pick: #974.

Migrated tests:

  • shouldBeAbleRunCypher -> test_should_read_successfully_using_write_session_run
  • shouldSendMultipleBookmarks -> test_send_and_receive_multiple_bookmarks_write_tx
  • shouldSendNullRoutingContextForBoltUri -> test_should_exclude_routing_context (optimization)
  • shouldLogConnectionIdInDebugMode -> not portable to Testkit, logic covered by unit tests:
    • InboundMessageDispatcherTest.shouldCreateChannelActivityLoggerAndLogDebugMessageOnMessageHandling
    • InboundMessageDispatcherTest.shouldCreateChannelActivityLoggerAndLogDebugMessageOnChannelError
    • ChannelActivityLoggerTest.* (formatted logging)
  • shouldSendReadAccessModeInQueryMetadata -> test_should_read_successfully_using_read_session_run
  • shouldNotSendWriteAccessModeInQueryMetadata -> test_should_read_successfully_using_write_session_run
  • shouldSendCustomerUserAgentInHelloMessage -> test_should_send_custom_user_agent_using_write_session_run

@injectives injectives requested a review from gjmwoods August 9, 2021 17:42
@injectives injectives changed the base branch from 4.4 to 4.3 August 9, 2021 17:43
…eo4j#974)

Migrated tests:
- shouldBeAbleRunCypher -> test_should_read_successfully_using_write_session_run
- shouldSendMultipleBookmarks -> test_send_and_receive_multiple_bookmarks_write_tx
- shouldSendNullRoutingContextForBoltUri -> test_should_exclude_routing_context (optimization)
- shouldLogConnectionIdInDebugMode -> not portable to Testkit, logic covered by unit tests:
  - InboundMessageDispatcherTest.shouldCreateChannelActivityLoggerAndLogDebugMessageOnMessageHandling
  - InboundMessageDispatcherTest.shouldCreateChannelActivityLoggerAndLogDebugMessageOnChannelError
  - ChannelActivityLoggerTest.* (formatted logging)
- shouldSendReadAccessModeInQueryMetadata -> test_should_read_successfully_using_read_session_run
- shouldNotSendWriteAccessModeInQueryMetadata -> test_should_read_successfully_using_write_session_run
- shouldSendCustomerUserAgentInHelloMessage -> test_should_send_custom_user_agent_using_write_session_run
@injectives injectives merged commit 44835ae into neo4j:4.3 Aug 10, 2021
@injectives injectives deleted the feature/migration branch August 10, 2021 13:27
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.

2 participants