You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Podkowinski (JIRA)" <ji...@apache.org> on 2018/10/16 14:58:00 UTC

[jira] [Commented] (CASSANDRA-12016) Create MessagingService mocking classes

    [ https://issues.apache.org/jira/browse/CASSANDRA-12016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16651851#comment-16651851 ] 

Stefan Podkowinski commented on CASSANDRA-12016:
------------------------------------------------

I've managed to archive some tests I've scavenged from staled (and now deleted) branches. They'll probably not compile anymore, but just want to leave them here as examples for further reference, in addition to the existing tests on trunk.
 * [ActiveRepairServiceTest|https://github.com/spodkowinski/cassandra/commit/84ace66fa1c8890b9ab8aa5275276069e6bff97a]
 * [RepairRunnableTest|https://github.com/spodkowinski/cassandra/commit/d9f5cb5fd83a2706e492967a8270d8dd48fe7cd1]
 * [PaxosTests|https://github.com/spodkowinski/cassandra/tree/473704f6e95e65729bf2de8c531f8ca3dd049ca4/test/unit/org/apache/cassandra/service/paxos]

> Create MessagingService mocking classes
> ---------------------------------------
>
>                 Key: CASSANDRA-12016
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12016
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Testing
>            Reporter: Stefan Podkowinski
>            Assignee: Stefan Podkowinski
>            Priority: Major
>             Fix For: 3.10
>
>         Attachments: 12016-trunk.patch, ActiveRepairServiceTest.patch, AddRepairRunnableTest.patch, PaxosTests.patch
>
>
> Interactions between clients and nodes in the cluster are taking place by exchanging messages through the {{MessagingService}}. Black box testing for message based systems is usually pretty easy, as we're just dealing with messages in/out. My suggestion would be to add tests that make use of this fact by mocking message exchanges via MessagingService. Given the right use case, this would turn out to be a much simpler and more efficient alternative for dtests.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org