use of com.netflix.titus.api.clustermembership.model.event.ClusterMembershipEvent in project titus-control-plane by Netflix.
the class KubeClusterMembershipConnectorTest method setUp.
@Before
public void setUp() {
connector = new KubeClusterMembershipConnector(LOCAL_MEMBER_UNREGISTERED, kubeExecutors, kubeExecutors, configuration, titusRuntime);
connector.membershipChangeEvents().subscribe(connectorEvents);
// Initial sequence common for all tests
assertThat(connector.getLocalClusterMemberRevision().getCurrent()).isEqualTo(LOCAL_MEMBER_UNREGISTERED);
ClusterMembershipEvent snapshotEvent = connectorEvents.takeNext();
assertThat(snapshotEvent).isInstanceOf(ClusterMembershipSnapshotEvent.class);
}
Aggregations