[multisite] add interface of multisite test suite
authormeimei <meimei@huawei.com>
Wed, 13 Jul 2016 02:24:06 +0000 (10:24 +0800)
committerJose Lausuch <jose.lausuch@ericsson.com>
Wed, 13 Jul 2016 08:14:07 +0000 (08:14 +0000)
JIRA: FUNCTEST-179

Change-Id: I23ae0f73a6efb410e54fedd75537bb2e219344e0
Signed-off-by: meimei <meimei@huawei.com>
ci/exec_test.sh
ci/testcases.yaml
testcases/features/multisite.py [new file with mode: 0644]

index 23cb827..0b43454 100755 (executable)
@@ -141,6 +141,9 @@ function run_test(){
             # TODO put the link to Moon script to be run (if test runnable) here
             ${repos_dir}/moon/tests/run_tests.sh
         ;;
+        "multisite")
+            python ${FUNCTEST_REPO_DIR}/testcases/features/multisite.py
+        ;;
         *)
             echo "The test case '${test_name}' does not exist."
             exit 1
index 25aba04..2cf7cc4 100644 (file)
@@ -158,6 +158,14 @@ tiers:
                 dependencies:
                     installer: 'compass'
                     scenario: '(odl)*(moon)'
+            -
+                name: multisite
+                criteria: 'status == "PASS"'
+                description: >-
+                    Test suite from kingbird
+                dependencies:
+                    installer: 'compass'
+                    scenario: 'multisite'
 
     -
         name: openstack
diff --git a/testcases/features/multisite.py b/testcases/features/multisite.py
new file mode 100644 (file)
index 0000000..6d49218
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+#
+# Copyright (c) 2015 All rights reserved
+# This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Execute Multisite Tempest test cases
+#
+import functest.utils.functest_logger as ft_logger
+
+logger = ft_logger.Logger("multisite").getLogger()
+
+
+def main():
+    logger.info("multisite OK")
+
+if __name__ == '__main__':
+    main()