Introduction

DOMDataBroker 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

This resource file implements various test cases templates. FIXME: add a link to a document (when published) where the scenarios are defined

TODO: When checking first response in isolation scenarior, make sure it comes from the expected member.

Keywords

Arguments

status DATASTORE_CFG

Documentation

Change status use-tell-based-protocol to True or False

Arguments

resp_list

Documentation

Extract first item from the list, third item of the tuple and call TemplatedRequests to check the http status code.

Arguments

leader_location shard_name
= ${PREF_BASED_SHARD}
shard_type
= ${SHARD_TYPE}

Documentation

Implements clean leader shutdown test scenario.

Arguments

leader_location shard_name
= ${SHARD_NAME}
shard_type
= ${SHARD_TYPE}

Documentation

Implements clean leader shutdown test scenario.

Arguments

listener_node_role isolated_transactions_flag shard_name
= ${PREF_BASED_SHARD}
shard_type
= ${SHARD_TYPE}

Documentation

Implements client isolation test scenario.

Arguments

listener_node_role trans_chain_flag shard_name
= ${SHARD_NAME}
shard_type
= ${SHARD_TYPE}

Documentation

Implements client isolation test scenario.

Arguments

prefix
= ${PREF_BASED_SHARD}

Documentation

Create prefix based shard with replicas on all nodes

Arguments

leader_from leader_to shard_name
= ${PREF_BASED_SHARD}
shard_type
= ${SHARD_TYPE}

Documentation

Implements explicit leader movement test scenario.

Arguments

leader_from leader_to shard_name
= ${SHARD_NAME}
shard_type
= ${SHARD_TYPE}

Documentation

Implements explicit leader movement test scenario.

Arguments

leader_location shard_name shard_type

Documentation

Return indexes for clean leader shudown test case, index where transaction producer shoudl be deployed and a shard leader index.

Arguments

leader_from leader_to shard_name shard_type

Documentation

Return indexes for explicit leader movement test case, indexes of present to next leader node and index where transaction producer should be deployed.

Arguments

date_in_future

Documentation

Return number of seconds remaining to ${date_in_future}.

Documentation

The leader isolation test case end if the heal happens within transaction timeout. All write transaction producers shoudl finish without error.

Arguments

heal_timeout shard_name
= ${PREF_BASED_SHARD}
shard_type
= ${SHARD_TYPE}

Documentation

Implements leader isolation test scenario.

Arguments

heal_timeout shard_name
= ${SHARD_NAME}
shard_type
= ${SHARD_TYPE}

Documentation

Implements leader isolation test scenario.

Arguments

leader_from leader_to shard_name
= ${PREF_BASED_SHARD}
shard_type
= ${SHARD_TYPE}

Documentation

Implements listener stability test scenario for prefix-based shards.

Arguments

leader_from leader_to shard_name
= ${SHARD_NAME}
shard_type
= ${SHARD_TYPE}

Documentation

Implements listener stability test scenario for module-based shards.

Arguments

isolated_node time_to_finish

Documentation

The leader isolation test case end. The transaction producer on isolated node should fail and should be restarted. Then all write transaction producers should finish without error.

Documentation

Verify if write-transaction failed.

Documentation

Verify that no write-transaction rpc finished, means they are still running.

Arguments

isolated_node time_to_finish

Documentation

The leader isolation test case end. The transaction producer on isolated node shoudl fail and should be restarted. Then all write transaction producers shoudl finish without error.

Arguments

prefix
= ${PREF_BASED_SHARD}

Documentation

Remove prefix based shard with all replicas

Documentation

Stop every odl node and start again.

Arguments

member_index shard_name shard_type

Documentation

Verify that shard is removed. Jolokia return 404 for shard memeber.

DdbCommons

image/svg+xml