diff options
-rw-r--r-- | qtip/agent/__init__.py | 0 | ||||
-rw-r--r-- | qtip/agent/collector.py | 13 | ||||
-rw-r--r-- | qtip/agent/reporter.py | 13 | ||||
-rw-r--r-- | qtip/cli/commands/cmd_testplan.py | 16 | ||||
-rw-r--r-- | qtip/drivers/__init__.py | 0 | ||||
-rw-r--r-- | qtip/drivers/ansible.py | 14 | ||||
-rw-r--r-- | qtip/drivers/base.py | 12 | ||||
-rw-r--r-- | qtip/drivers/yardstick.py | 14 |
8 files changed, 77 insertions, 5 deletions
diff --git a/qtip/agent/__init__.py b/qtip/agent/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/qtip/agent/__init__.py diff --git a/qtip/agent/collector.py b/qtip/agent/collector.py new file mode 100644 index 00000000..3df21379 --- /dev/null +++ b/qtip/agent/collector.py @@ -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 index 00000000..b5c4acfa --- /dev/null +++ b/qtip/agent/reporter.py @@ -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/cli/commands/cmd_testplan.py b/qtip/cli/commands/cmd_testplan.py index 24899a84..200e4665 100644 --- a/qtip/cli/commands/cmd_testplan.py +++ b/qtip/cli/commands/cmd_testplan.py @@ -8,7 +8,9 @@ ############################################################################## import click +import sys from prettytable import PrettyTable + from qtip.runner.testplan import TestPlan @@ -36,8 +38,12 @@ def list(): @click.argument('name') def show(name): plan = TestPlan(name) - results = plan.describe() - table = PrettyTable(["Name", "Description"]) - table.align = 'l' - table.add_row([results['name'], results['description']]) - click.echo(table) + desc = plan.describe() + if desc['abspath'] is None: + click.echo("Wrong TestPlan specified") + sys.exit(1) + else: + table = PrettyTable(["Name", "Description"]) + table.align = 'l' + table.add_row([desc['name'], desc['description']]) + click.echo(table) diff --git a/qtip/drivers/__init__.py b/qtip/drivers/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/qtip/drivers/__init__.py diff --git a/qtip/drivers/ansible.py b/qtip/drivers/ansible.py new file mode 100644 index 00000000..04e9f9bd --- /dev/null +++ b/qtip/drivers/ansible.py @@ -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 index 00000000..1aa8d8ad --- /dev/null +++ b/qtip/drivers/base.py @@ -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 index 00000000..83f1b3d8 --- /dev/null +++ b/qtip/drivers/yardstick.py @@ -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""" |