Library scope: | GLOBAL |
---|
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
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).
Remove member index from the list of indices with registered rpc. Isolated nodes are included in the list.
Add member index to the list of indices with registered rpc. Isolated nodes are included in the list.
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).
Add or remove member index to/from the list of active nodes.
Resouce initial keyword. Creates several suite variables which are used in other keywords and should be used im the test suites.
Ivoke get-constant rpc on given member index. Returns the index of the node where the constant came from.
Ivoke get-contexted-constant rpc on given member index. Returns the index of the node where the constant came from.
Isolate a member and update appropriate suite variables.
Register routed rpc on given node of the cluster.
Register global rpc on given nodes of the cluster.
Register global rpc on given node of the cluster.
Register global rpc on given nodes of the cluster.
Rejoin a member and update appropriate suite variables.
Unregister routed rpc on given node of the cluster.
Unregister global rpc on given nodes of the cluster.
Unregister global rpc on given node of the cluster.
Unregister global rpc on given nodes of the cluster.
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.
Verify that the rpc response comes from the local node.
Verify that the rpc response comes from the local node for every node in the list.
Verify that the response comes from other nodes with rpc registered. Verification passes for registered nodes too.
Verify that the rpc response comes from the remote node for every node in the list.
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.
Verify that the rpc response comes from the local node.
Verify that the rpc response comes from the local node for every node in the list.
Verify that the response comes from other nodes with rpc registered. Verification passes for registered nodes too.
Verify that the rpc response comes only from one node only for every node in the list.