opnfv_yardstick_tc070.rst
opnfv_yardstick_tc071.rst
opnfv_yardstick_tc072.rst
+ opnfv_yardstick_tc075.rst
OPNFV Feature Test Cases
========================
+-----------------------------------------------------------------------------+
-|Network Capacity and Scale Testing |
+|Network Capacity and Scale Testing |
| |
+--------------+--------------------------------------------------------------+
|test case id | OPNFV_YARDSTICK_TC075_Network_Capacity_and_Scale_testing |
-| | |
+| | |
+--------------+--------------------------------------------------------------+
|metric | Number of connections, Number of frames sent/received |
| | |
+--------------+--------------------------------------------------------------+
-|test purpose | To evaluate the network capacity and scale with regards to |
-| | connections and frmaes. |
-| | |
+|test purpose | To evaluate the network capacity and scale with regards to |
+| | connections and frmaes. |
| | |
+--------------+--------------------------------------------------------------+
|configuration | file: opnfv_yardstick_tc075.yaml |
| | |
-| | There is no additional configuration to be set for this TC. |
-| | |
+| | There is no additional configuration to be set for this TC. |
| | |
+--------------+--------------------------------------------------------------+
|test tool | netstar |
| | |
-| | Netstat is normally part of any Linux distribution, hence it |
-| | doesn't need to be installed. |
-| | |
+| | Netstat is normally part of any Linux distribution, hence it |
+| | doesn't need to be installed. |
| | |
+--------------+--------------------------------------------------------------+
|references | Netstat man page |
| | ETSI-NFV-TST001 |
| | |
+--------------+--------------------------------------------------------------+
-|applicability | This test case is mainly for evaluating network performance. |
-| | |
+|applicability | This test case is mainly for evaluating network performance. |
| | |
+--------------+--------------------------------------------------------------+
|pre_test | Each pod node must have netstat included in it. |
| | Result: Logs are stored. |
| | |
+--------------+--------------------------------------------------------------+
-|test verdict | None. Number of connections and frames are fetched and |
+|test verdict | None. Number of connections and frames are fetched and |
| | stored. |
| | |
+--------------+--------------------------------------------------------------+
name: storperf
deployment:
- ip: local
+ ip: 192.168.200.1
user: root
password: root
'benchmark/scenarios/availability/*.yaml',
'benchmark/scenarios/availability/attacker/*.yaml',
'benchmark/scenarios/availability/ha_tools/*.bash',
+ 'benchmark/scenarios/availability/ha_tools/*/*.bash',
'benchmark/scenarios/availability/attacker/scripts/*.bash',
'benchmark/scenarios/availability/monitor/*.yaml',
'benchmark/scenarios/availability/monitor/script_tools/*.bash',
RUN apt-get update && apt-get install -y \
wget \
+ expect \
curl \
git \
sshpass \
# Prepare a admin-rc file for StorPerf integration
$YARDSTICK_REPO_DIR/tests/ci/prepare_storperf_admin-rc.sh
+# copy a admin-rc file for StorPerf integration to the deployment location
+expect $YARDSTICK_REPO_DIR/tests/ci/scp_storperf_admin-rc.sh
+
# Fetching id_rsa file from jump_server..."
verify_connectivity() {
local ip=$1
--- /dev/null
+#!/usr/bin/expect
+set timeout 30
+
+spawn scp -o StrictHostKeyChecking=no /root/storperf_admin-rc root@192.168.200.1:/root/storperf_admin-rc
+expect "root@192.168.200.1's password: "
+send "root\r"
+interact
exit 1
fi
+ fi
+}
+
+remove_storperf()
+{
+ # remove Storper from huawei-pod1
+ if [ "$NODE_NAME" == "huawei-pod1" ]; then
echo
- echo "========== Installed storperf container =========="
+ echo "========== Removing storperf =========="
+
+ if ! yardstick -d plugin remove plugin/CI/storperf.yaml; then
+ echo "Remove storperf plugin FAILED";
+ exit 1
+ fi
+
fi
}
install_storperf
run_test
+ remove_storperf
}
main
runner:
type: Duration
- duration: 600
+ duration: 60
interval: 10
sla:
schema: "yardstick:task:0.1"
{% set public_network = public_network or "ext-net" %}
-{% set StorPerf_ip = StorPerf_ip or "192.168.200.2" %}
+{% set StorPerf_ip = StorPerf_ip or "192.168.200.1" %}
scenarios:
-
type: StorPerf
pod: huawei-pod1
task_args:
huawei-pod1: '{"public_network": "ext-net",
- "StorPerf_ip": "192.168.200.2"}'
+ "StorPerf_ip": "192.168.200.1"}'
-
- file_name: opnfv_yardstick_tc075.yaml
+ file_name: opnfv_yardstick_tc075.yaml
constraint:
installer: compass
pod: huawei-pod1
task_args:
huawei-pod1: '{"pod_info": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml",
"host": "node1.LF"}'
+
--- /dev/null
+---
+# Huawei US bare daily task suite
+
+schema: "yardstick:suite:0.1"
+
+name: "os-odl_l2-moon-ha"
+test_cases_dir: "tests/opnfv/test_cases/"
+test_cases:
+-
+ file_name: opnfv_yardstick_tc002.yaml
+-
+ file_name: opnfv_yardstick_tc005.yaml
+-
+ file_name: opnfv_yardstick_tc010.yaml
+-
+ file_name: opnfv_yardstick_tc011.yaml
+-
+ file_name: opnfv_yardstick_tc012.yaml
+-
+ file_name: opnfv_yardstick_tc014.yaml
+-
+ file_name: opnfv_yardstick_tc037.yaml
+-
+ file_name: opnfv_yardstick_tc055.yaml
+ constraint:
+ installer: compass
+ pod: huawei-pod1
+ task_args:
+ huawei-pod1: '{"pod_info": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml",
+ "host": "node5.yardstick-TC055"}'
+-
+ file_name: opnfv_yardstick_tc063.yaml
+ constraint:
+ installer: compass
+ pod: huawei-pod1
+ task_args:
+ huawei-pod1: '{"pod_info": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml",
+ "host": "node5.yardstick-TC063"}'
+-
+ file_name: opnfv_yardstick_tc069.yaml
+-
+ file_name: opnfv_yardstick_tc070.yaml
+-
+ file_name: opnfv_yardstick_tc071.yaml
+-
+ file_name: opnfv_yardstick_tc072.yaml
+-
+ file_name: opnfv_yardstick_tc075.yaml
+ constraint:
+ installer: compass
+ pod: huawei-pod1
+ task_args:
+ huawei-pod1: '{"pod_info": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml",
+ "host": "node1.LF"}'
mock.call.set_missing_host_key_policy("autoadd"),
mock.call.connect("example.net", username="admin",
port=22, pkey="key", key_filename=None,
- password=None, timeout=1),
+ password=None,
+ allow_agent=False, look_for_keys=False,
+ timeout=1),
]
self.assertEqual(client_calls, client.mock_calls)
self._client.connect(self.host, username=self.user,
port=self.port, pkey=self.pkey,
key_filename=self.key_filename,
- password=self.password, timeout=1)
+ password=self.password,
+ allow_agent=False, look_for_keys=False,
+ timeout=1)
return self._client
except Exception as e:
message = ("Exception %(exception_type)s was raised "