Introduction

DOMRpcBroker 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

The aim of this resource is to groups reusable blocks of commands into keywords. It should be initiated by DrbCommons_Init. It creates ${all_indices}, ${registered_indices}, ${nonregistered_indices} and ${possible_constants} suite variables. ${registered_indices} - list of indexes where rpc is registered; including isolated mebers; exluding killed/stopped members ${nonregistered_indices} - list of indexes where rpc is not registrated; including isolated mebers; exluding killed/stopped members ${possible_constants} - list of valid constants responded from the cluster; constant from isolated node with regirered rpc is invalid ${active_indices} - list of indexes of non-isolated, non-stopped/killed nodes

Akka can create spurious UnreachableMember events, see https://bugs.opendaylight.org/show_bug.cgi?id=8430 so some keywords contain "tolerance" argument which applies BuiltIn.Wait_Until_Keyword_Succeeds.

The delay before subsequent ReachableMember is significantly higher than RPC registration delay documented at http://docs.opendaylight.org/en/latest/developer-guide/controller.html#rpcs-and-cluster

Keywords

Arguments

member_index

Documentation

Add a constant to the ${possible_constants} list. The list is about to maintain all valid constants possibly responded from the odl cluster (excluding isolated nodes).

Arguments

member_index

Documentation

Remove member index from the list of indices with registered rpc. Isolated nodes are included in the list.

Arguments

member_index

Documentation

Add member index to the list of indices with registered rpc. Isolated nodes are included in the list.

Arguments

member_index

Documentation

Remove a constant from the ${possible_constants} list. The list is about to maintain all valid constants possibly responded from the odl cluster (excluding isolated nodes).

Arguments

activate_idx
= ${EMPTY}
deactivate_idx
= ${EMPTY}

Documentation

Add or remove member index to/from the list of active nodes.

Documentation

Resouce initial keyword. Creates several suite variables which are used in other keywords and should be used im the test suites.

Arguments

member_index

Documentation

Ivoke get-constant rpc on given member index. Returns the index of the node where the constant came from.

Arguments

member_index

Documentation

Ivoke get-contexted-constant rpc on given member index. Returns the index of the node where the constant came from.

Arguments

member_index

Documentation

Isolate a member and update appropriate suite variables.

Arguments

member_index

Documentation

Register routed rpc on given node of the cluster.

Arguments

index_list

Documentation

Register global rpc on given nodes of the cluster.

Arguments

member_index

Documentation

Register global rpc on given node of the cluster.

Arguments

index_list

Documentation

Register global rpc on given nodes of the cluster.

Arguments

member_index

Documentation

Rejoin a member and update appropriate suite variables.

Arguments

member_index

Documentation

Unregister routed rpc on given node of the cluster.

Arguments

index_list

Documentation

Unregister global rpc on given nodes of the cluster.

Arguments

member_index

Documentation

Unregister global rpc on given node of the cluster.

Arguments

index_list

Documentation

Unregister global rpc on given nodes of the cluster.

Arguments

tolerance
= ${BUG_8430_TOLERANCE}

Documentation

Verify that the rpc response comes from the local node for every node in the list. As a workaround for Bug 8430, ${tolerance} can be set as duration (number of seconds) for WUKS.

Arguments

member_index

Documentation

Verify that the rpc response comes from the local node.

Arguments

index_list

Documentation

Verify that the rpc response comes from the local node for every node in the list.

Arguments

member_index

Documentation

Verify that the response comes from other nodes with rpc registered. Verification passes for registered nodes too.

Arguments

index_list

Documentation

Verify that the rpc response comes from the remote node for every node in the list.

Arguments

tolerance
= ${BUG_8430_TOLERANCE}

Documentation

Verify that the rpc response comes from the local node for every node in the list. As a workaround for Bug 8430, ${tolerance} can be set as duration (number of seconds) for WUKS.

Arguments

member_index

Documentation

Verify that the rpc response comes from the local node.

Arguments

index_list

Documentation

Verify that the rpc response comes from the local node for every node in the list.

Arguments

member_index

Documentation

Verify that the response comes from other nodes with rpc registered. Verification passes for registered nodes too.

Arguments

index_list exp_constant

Documentation

Verify that the rpc response comes only from one node only for every node in the list.

DrbCommons

image/svg+xml