Commit graph

20 commits

Author SHA1 Message Date
Jonas Bonér
2dcceb58ce Split up all tests that are related to failure detection into two versions: Accrual FD and FD Puppet. Also moved all tests that are not failure detection tests to use FD Puppet.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 16:48:19 +02:00
Jonas Bonér
b65cf5c2ec Created FailureDetectorStrategy with two implementations: FailureDetectorPuppetStrategy and AccrualFailureDetectorStrategy.
- Created FailureDetectorStrategy base trait.
- Created FailureDetectorPuppetStrategy.
- Created AccrualFailureDetectorStrategy.
- Created two versions of LeaderDowningNodeThatIsUnreachableMultiJvmSpec
    - LeaderDowningNodeThatIsUnreachableWithFailureDetectorPuppet
    - LeaderDowningNodeThatIsUnreachableWithAccrualFailureDetector
- Added AccrualFailureDetectorStrategy to all the remaining tests - will be split up into two versions shortly.

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 14:32:17 +02:00
Patrik Nordwall
56735477b8 initialParticipants default as roles.size in cluster tests 2012-06-08 09:23:36 +02:00
Jonas Bonér
4acee03195 Merge branch 'master' into wip-2162-membership-change-listener-spec-jboner
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-04 23:32:27 +02:00
Jonas Bonér
391fed6594 Misc changes, fixes and improvements after review.
- Renamed all 'frequency' to 'interval'
- Split up NodeJoinAndUpSpec and into NodeJoinSpec and NodeUpSpec.
- Split up MembershipChangeListenerJoinAndUpSpec and into MembershipChangeListenerJoinSpec and MembershipChangeListenerUpSpec.
- Added utility method 'startClusterNode()'
- Fixed race in register listener and telling node to leave
- Removed 'after' blocks
- Cleaned up unused code
- Improved comments

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-04 23:21:28 +02:00
Patrik Nordwall
e4104cfd06 Replace 'after' barrier with explicit barrier inside test method.
* It's no problem using after, but scalatest will output the test method
  as completed (green) before running after, so it looks confusing in the logs
* Using unique barrier names adds extra traceability in case of failures.
2012-06-04 11:58:09 +02:00
Patrik Nordwall
e469561543 Minor corrections and cleanup 2012-05-30 17:17:09 +02:00
Patrik Nordwall
d8530811c9 Minor cleanup 2012-05-28 15:45:21 +02:00
Patrik Nordwall
4786078565 Adjust cluster tests to not fail when excluded, see 2139 2012-05-27 19:46:42 +02:00
Patrik Nordwall
6993064cde Revert "Commented out the cluster tests because it's not possible to exclude them right now"
This reverts commit 2abe5308da.
2012-05-27 19:21:38 +02:00
Patrik Nordwall
2abe5308da Commented out the cluster tests because it's not possible to exclude them right now 2012-05-25 17:04:53 +02:00
Patrik Nordwall
17d54f1ae8 Tag as LongRunningTest 2012-05-25 15:45:13 +02:00
Patrik Nordwall
829783f359 Remove port awareness in asserts of leader and members. See #2133
* Extracted common parts to MultiNodeClusterSpec
2012-05-25 12:10:37 +02:00
Patrik Nordwall
3aba8dc424 Assert with sorted member addresses, since ports are random 2012-05-25 10:00:30 +02:00
Patrik Nordwall
ed31c1738f Change node naming. See 2115 2012-05-25 08:55:02 +02:00
Patrik Nordwall
ee73090c98 Remove hardcode host/port for node-to-join. See #2115 2012-05-24 16:25:57 +02:00
Patrik Nordwall
d16590f82e Remove node var. See #2115 2012-05-24 15:34:11 +02:00
Patrik Nordwall
ae69c6a975 Changed the stupid node var. See #2115 2012-05-24 12:18:53 +02:00
Patrik Nordwall
dd5a78597a Port NodeMembershipSpec to MultiNodeSpec. See #2115 2012-05-24 12:00:16 +02:00
Patrik Nordwall
33cec55dbe Moved NodeMembershipSpec to multi-jvm. See #2115 2012-05-24 12:00:16 +02:00
Renamed from akka-cluster/src/test/scala/akka/cluster/NodeMembershipSpec.scala (Browse further)