A dummy suite with testplan, for determining python versions 43/27743/6
authorVratko Polak <vrpolak@cisco.com>
Tue, 13 Oct 2015 14:12:57 +0000 (16:12 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 17 Oct 2015 02:34:57 +0000 (02:34 +0000)
+ Test case to print system resource limits on Robot machine.
+ Test case to print system resource limits on ODL machine.

Change-Id: I3abf41fefad02e909388f6dfa6cdd353d8e3a3b2
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
csit/suites/test/freeze.robot [new file with mode: 0644]
csit/testplans/test-freeze.txt [new file with mode: 0644]

diff --git a/csit/suites/test/freeze.robot b/csit/suites/test/freeze.robot
new file mode 100644 (file)
index 0000000..8f67770
--- /dev/null
@@ -0,0 +1,21 @@
+*** Settings ***
+Documentation     Not a test, it just logs versions of installed Python modules.
+...               Useful when library documentation mentions version-specific behavior.
+Library           OperatingSystem
+Library           SSHLibrary
+Resource          ${CURDIR}/../../libraries/Utils.robot
+
+*** Test Cases ***
+Freeze
+    ${versions} =    OperatingSystem.Run    pip freeze
+    BuiltIn.Log    ${versions}
+
+Ulimit_On_Robot
+    ${limits} =    OperatingSystem.Run    bash -c "ulimit -a"
+    BuiltIn.Log    ${limits}
+
+Ulimit_On_Controller
+    SSHLibrary.Open_Connection    ${ODL_SYSTEM_IP}
+    Utils.Flexible_Controller_Login
+    ${limits} =    SSHLibrary.Execute_Command    bash -c "ulimit -a"
+    BuiltIn.Log    ${limits}
diff --git a/csit/testplans/test-freeze.txt b/csit/testplans/test-freeze.txt
new file mode 100644 (file)
index 0000000..99dcac5
--- /dev/null
@@ -0,0 +1,8 @@
+# Copyright (c) 2015 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
+
+# Place the suites in run order:
+integration/test/csit/suites/test/freeze.robot