Add skeletons of drivers, collector and reporter 95/26195/6
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Mon, 19 Dec 2016 03:14:40 +0000 (11:14 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 20 Dec 2016 01:24:55 +0000 (09:24 +0800)
Change-Id: I22a021800bbc813d7c5309d075fcbb8a19946e3f
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
qtip/agent/__init__.py [new file with mode: 0644]
qtip/agent/collector.py [new file with mode: 0644]
qtip/agent/reporter.py [new file with mode: 0644]
qtip/drivers/__init__.py [new file with mode: 0644]
qtip/drivers/ansible.py [new file with mode: 0644]
qtip/drivers/base.py [new file with mode: 0644]
qtip/drivers/yardstick.py [new file with mode: 0644]

diff --git a/qtip/agent/__init__.py b/qtip/agent/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qtip/agent/collector.py b/qtip/agent/collector.py
new file mode 100644 (file)
index 0000000..3df2137
--- /dev/null
@@ -0,0 +1,13 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# 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
+##############################################################################
+
+
+class Collector(object):
+    """collect test result and test condition"""
+    pass
diff --git a/qtip/agent/reporter.py b/qtip/agent/reporter.py
new file mode 100644 (file)
index 0000000..b5c4acf
--- /dev/null
@@ -0,0 +1,13 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# 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
+##############################################################################
+
+
+class Reporter(object):
+    """generate test report and push test data to database"""
+    pass
diff --git a/qtip/drivers/__init__.py b/qtip/drivers/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qtip/drivers/ansible.py b/qtip/drivers/ansible.py
new file mode 100644 (file)
index 0000000..04e9f9b
--- /dev/null
@@ -0,0 +1,14 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# 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
+##############################################################################
+
+from base import BaseDriver
+
+
+class AnsibleDriver(BaseDriver):
+    """driver for running performance tests with Ansible"""
diff --git a/qtip/drivers/base.py b/qtip/drivers/base.py
new file mode 100644 (file)
index 0000000..1aa8d8a
--- /dev/null
@@ -0,0 +1,12 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# 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
+##############################################################################
+
+
+class BaseDriver(object):
+    """performance testing tool driver"""
diff --git a/qtip/drivers/yardstick.py b/qtip/drivers/yardstick.py
new file mode 100644 (file)
index 0000000..83f1b3d
--- /dev/null
@@ -0,0 +1,14 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# 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
+##############################################################################
+
+from base import BaseDriver
+
+
+class YardstickDriver(BaseDriver):
+    """driver for running performance test with yardstick"""