Commit Graph

25 Commits

Author SHA1 Message Date
Andreas Jaeger 8c881bcbe5 Retire repository
See
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007708.html

Change-Id: If97f10290c16903d550c66163b082bd23357fca2
2020-05-08 13:51:25 +02:00
Michael Dong 6cf7bdab87 Bug fixes and error message updates
Fixes:
1) Crashes in runner and file_utils
2) Binary strings being read in as payloads

Updates:
1) Clarified error messages in parser
2) Confusing variable names in test cases vs issues

Adds:
1) A `syntribos root` CLI sub command to display the current syntribos root dir

Change-Id: I22edf7a1f3d39724522aee88d08b00d299b67248
2018-11-28 12:32:24 -06:00
Michael Dong feb3a59c95 YAML support, basicauth extension, bugfixes
1) Allows for YAML body in request templates. If a content-type
    is specified for a request template, Syntribos will validate the
    body against the header. This is to prevent templates from silently
    failing to parse and sending unintended data to the target.
 2) Added extension to support basicauth
 3) Lowered confidence ratings for various tests

Change-Id: I672b0e0aa3da1aa6dd7e9a8456da73f0a15759b7
2018-10-09 15:55:53 -05:00
Michael Dong c4586a374b Improve performance by multithreading test calls
This change:
1) rewrites the runner to spawn a thread pool for each template
   and assigns a worker for each test case
2) makes the output colorized by default
3) makes minor changes to the output

Change-Id: I49906f5daaa339ca9429913680203c762a0ad9fe
2017-09-18 13:23:00 -05:00
Vinay Potluri c300ca8313 Fixing nits in i18n patch
Running syntribos throws an error due to nits in the i18n
patch. This patch fixes the errors in runner.py and result.py.

Change-Id: Ic1c041f586e4f556fd1c1e30b6dc3f3dcd0284fe
2017-03-14 14:18:39 -05:00
Rahul Nair 38eb9f2a77 Adding i18n support to Syntribos
Adding i18n support to syntribos log messages and prompts.

Change-Id: If9914447ccbf3ac2f9c88c3460756f4b682630ec
2017-03-13 01:51:50 -05:00
Rahul Nair 94d0205b8e Pylint changes update
Updated the enabled tests and edited set of files to pass present
enabled tests.

Change-Id: I369166bacbd816b4d85732d476158468ed271d49
2016-11-22 16:10:50 -06:00
Rahul Nair b7b925cf4d Loading payload from remote URI
POC on loading payloads using remote URI. This is part of a larger
effort in packaging syntribos to ensure that the project would
work without much configuration post install from pypi.

Change-Id: Id61e840d4f49d5b6deb72bce2e8bcc0e1096fa52
2016-10-25 10:28:25 -05:00
Jenkins 062412da01 Merge "Modifying log file path" 2016-08-29 23:22:09 +00:00
Rahul Nair 38a6dc1d2e Modifying log file path
Modifying debug log file path so that logs are saved per template.

Change-Id: I24614944358377a2f7a6465491e9bbad048b9230
2016-08-29 16:42:37 -05:00
michael.dong@rackspace.com adca69a272 Revamped results schema
Results are now formatted in the schema as defined here:
https://gist.github.com/cneill/a511451284a0c5f33295477150bd94d4

Furthermore, the json formatter is no longer responsible for the aggregation
of issues. Instead, this logic has been moved to the IssueTestResult class

Change-Id: Id39e122b2b4c1c9cafab09fdbc5d172dec012d22
2016-08-29 15:40:02 -05:00
michael.dong@rackspace.com 4876101b55 Added config file improvements
1) renamed "user" section for clarity
2) Added option to exclude defect type from output
3) modified default time_diff_percentage and length_diff_percentage values
4) added sample default values to config for oslo-config-generator

Change-Id: I4f88c255f8d4e6edfe3df3a4e463aee0cdd9c26b
2016-08-26 17:46:54 -05:00
michael.dong@rackspace.com e442dc8f6d changes to runner and result
1) results are now printed at the end of the run or on interrupt, not after
every template
2) made test_id's globally unique
3) print number of errors next to number of failures
4) number of failures printed after next to each progress bar and reported
in total at end of run now match up

Change-Id: I28617c64218ab632c1a35083ef9351874054a26d
2016-08-25 14:37:06 -05:00
michael.dong@rackspace.com be1cd5ce91 Minor changes to runner and templates
1) Runner now only considers .template files
    1b) renamed all template files
    1c) fixed broken keystone template files
2) moved print_log() out of print_result()
3) fixed "ran x tests in x seconds" stats

Change-Id: I4600e5e154b5d3c951a08375a15904ea42621075
2016-08-22 12:30:18 -05:00
Rahul Nair d3123057c3 Adding sub commands to Syntribos
This change adds some commands to syntribos

sub commands:

- list_tests
- run
- dry_run

Also, refactoring runner.py and added utils/cli.py
to add all utility methods used for cli output.
Change-Id: Ieed2e06e0fb6eec34be640ae1db86785403546df
2016-08-16 16:15:14 -05:00
Rahul Nair 0009bf49ce Adding unique_id to tests
Adding a simple counter based id to tests to track them in debug
log and results log. Also, this patch improves the result output
like adding a progress bar and uniform test names..

Change-Id: Ib83181b25a0c18c7993f491cde98d73555b01404
2016-08-04 20:22:17 +00:00
michael.dong@rackspace.com 1875d5ca29 added min and max severity and confidence filtering
Change-Id: I807cf5651ad635421398f915f5c363317e46dc07
2016-06-22 14:32:44 -05:00
Jenkins b0e2da37ce Merge "Json formatter now outputs data according to findings schema" 2016-04-15 18:06:24 +00:00
michael.dong@rackspace.com e3f932001c Json formatter now outputs data according to findings schema
Results are now output according to this schema:
https://gist.github.com/MCDong/9969351647c06f7ab67ab7d954e6cd66

Change-Id: I4042e425f9577da21488d9dacfa4597456644cac
Implements: blueprint improve-reporting
2016-04-15 12:37:16 -05:00
Charles Neill 921157a4d6 Change license from block quotes to '#'s (Sphinx)
We are currently using block quotes for license comments, which means
that Sphinx pulls this into every module, which is bad. Hash-prefixed
comments for licenses seem to be the standard for OpenStack as well.

Change-Id: Iabc60228c1201a960f672e1b0c7ab3c5312c9d8e
Implements: blueprint docstring-add-to-framework
2016-04-14 18:17:40 -05:00
Charles Neill 9eca39e127 Updating doc strings for core pieces of Syntribos
This PR adds docstrings to a number of important components of
Syntribos, and adds this documentation to our Sphinx doc structure. It
also removes copyrights from __init__.py files with no other content,
in line with OpenStack style guidelines.

Set 2: Fixed PEP8 failure.

Change-Id: Ic57b31f451ec3ecf7f5b308da4544f808c9c9a5d
Implements: blueprint docstring-add-to-framework
2016-04-05 16:20:56 -05:00
Michael Dong ec54af8d32 Results aggregation
Issues are now only reported once for each URL and HTTP method

Change-Id: Icd711d3e0d735d030c785d0220bdaaf4a42e07e4
2016-03-08 13:26:30 -06:00
michael.dong@rackspace.com 77f0b58ca3 JSON output now lives in formatter class
Change-Id: I2ba383e7c572740cd3322047f339ba686bf9f6d1
2016-02-09 16:09:36 -06:00
michael.dong@rackspace.com fcd5483041 Added notion of output type and output file to runner
Change-Id: I84620487805bda759deb8672b711c77aeea174bb
2016-02-01 16:55:15 +00:00
michael.dong@rackspace.com 95947f75aa Test runner and test result class now use Issues
Modified the unittest result class to store Issue objects instead
of stacktraces. Modified the test suite runner to use the new result
class

Change-Id: Ib7c80bde83a149a723221e288c04b89c9c1229f4
2016-01-05 12:50:12 -06:00