Introduction

Cluster Singleton testing: Common Keywords

Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.

This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html

Cluster Singleton service is designed to ensure that only one instance of an application is registered globally in the cluster.

Creates and uses the following suite variables: Created by Cluster_Singleton_Init: ${cs_all_indices} ${cs_exp_candidates} Created by Get_And_Save_Present_CsOwner_And_CsCandidates: ${cs_owner} ${cs_candidates} Created by Isolate_Owner_And_Verify_Isolated ${cs_isolated_index}

Keywords

Documentation

Resouce initial keyword. Creates {cs_exp_candidates} and {cs_all_indices} suite variables which are used in other keywords.

Arguments

node_to_ask

Documentation

Store owner index into suite variables.

Documentation

Isolate the owner cluster node. Wait until the new owner is elected and store new values of owner and candidates.

Arguments

monitoring_duration owner_index

Documentation

Verify that the owner remains on the same node after non-owner candidate is unregistered.

Arguments

index_list

Documentation

Register a candidate application on each node which starts the test.

Arguments

member_index constant

Documentation

Register the singleton candidate and add it to the list of ${cs_exp_candidates}.

Arguments

index_list

Documentation

Register a candidate application on given nodes.

Documentation

Rejoin isolated node.

Arguments

index_list rate_limit_to_pass test_duration

Documentation

Unregister the testing service and check recevied statistics.

Arguments

member_index

Documentation

Unregister the singleton candidate. Also remove it from the list of ${cs_exp_candidates}.

Arguments

index_list

Documentation

Unregister the application from given nodes.

Arguments

owner_index

Documentation

Fail if the actual owner is different from ${owner_index} or if the actual candidate list is different from ${cs_exp_candidates}.

Documentation

Iterate over all non-isolated cluster nodes. They should return the correct constant.

Arguments

node_to_ask cs_exp_constant

Documentation

Verify that the expected constant is return from the given node.

Arguments

index_list cs_exp_constant

Documentation

Iterate over all cluster nodes and all should return expected constant.

CsCommon

image/svg+xml