Commit Graph

26 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 a6db29dc7c Bug fixes related to python 3 changes
Change-Id: I048bb19cf456281521883eb1500832343d72fb97
2018-10-18 14:39:59 -05: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 cb458c03db Clarified docs and error messages
Change-Id: Ic30f6ade79461770a5283b4783aaa6d547049cff
2017-09-15 19:38:41 -05:00
Michael Dong 92978b3783 Added support for inline meta variable definitions
Before, a meta variable of the form "application/|type|" would
throw an error, now you can specify |type| as a metavar.

Change-Id: I0f9ba4635cdd6e2886d7f2f5e1ce2ab5b8dc2330
2017-09-15 19:38:41 -05:00
Ngo Quoc Cuong 1f1b7be594 Remove translation of log messages
The i18n team has decided not to translate the logs because it
seems like it not very useful; operators prefer to have them in
English so that they can search for those strings on the internet.

Change-Id: I84b1a2397f424430ed332aa7d4d874379abd0357
2017-06-16 15:42:45 +07:00
Michael Dong 5d7771fb8e Added meta variable support to runner
The runner will now respect inheritence when passing meta variables
to the parser.

Change-Id: I84ae827fcb396a1cb701d212601a8dcd56a37d9e
2017-03-13 14:43:49 -05:00
Michael Dong 6ded748d09 Added meta var support to datagen
The datagen will now respect the limits defined in the meta
variable file when fuzzing a template

Change-Id: If1e7b2d86b8b2ac45d64d37562e0b7d776c54742
2017-03-13 12:03:34 -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
Jenkins 9fe18d5e96 Merge "Adding XST test to syntribos" 2017-02-27 21:37:01 +00:00
Rahul Nair 5ed065aaed Adding XST test to syntribos
Adding cross site tracing test to syntribos. This vulnerability
can be exploited only if there are existing xss vulnerabilities
in the app.

Moving "checks" that deals specificially with header data to
"header" directory.

Change-Id: I7b4b40ca54a95628e9b6d55963b5e159e6862a45
2017-02-23 15:16:39 -06:00
Anh Tran 9c736a3560 Remove unused logging import
Change-Id: Ica3568dd9c10a1e02a063af491b2fd4f2a1a2134
2017-02-20 11:23:45 +07:00
Michael Dong c5a4dd083d Added support for meta variable JSON files
Syntribos now allows the user to specify variables in their request
templates by reading from a meta.json file. This is part 1 of 3 of
the full effort, dealing primarily with the template parser itself.

Change-Id: Id41d331f595cd3bc32f085ef49cb5d1b16779a5c
2017-01-27 11:03:39 -06: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 5911450992 Adding python 3 compatibility and some minor styling changes
As we are moving to the next iteration of the project for Ocata,
I think it would be helpul to makesure that the codebase is
fully compatible in py27 and in py35. Also, some minor styling
changes, removing uncessary spaces etc.

Change-Id: I9aac07dc180cd3a7c7885661bdad985c183ae0a9
2016-10-14 17:39:29 -05:00
Charles Neill 9810a73332 Glance Images Templates
Adds templates for Glance images + members. Also tweaks the HTTP parser
so that it doesn't break with a PATCH body consisting of a list instead
of the more-common dict. This solution is sub-optimal because the body
is treated as a string variable (i.e. you'll get a fuzzed request like
[0x0000] instead of fuzzing the contained object attributes)

Change-Id: I0e23c8281a63018ecadb84959f3a70be1f80fa74
2016-09-13 13:35:38 -05:00
Rahul Nair 7bd2e40756 Fixed bug RequestObject has no attribute `fuzz_request`
We were returning a new object from http parser each time,
causing init_req.fuzz_request to fail, as it is added later,
new object will not have it. This caused fuzz tests to fail,
fixing it

Change-Id: I8c2c717628bce3f14a85bacad2d4bcd654dbb835
2016-08-01 17:45:57 -05:00
Charles Neill 1ab14c473a Improving parser, adding unit tests
- Make the parser more robust by validating data more thoroughly
- Add unit tests to exercise parser functionality

Change-Id: I6d55d18406e655e19633334ff4cfd0b96beef84f
2016-07-28 14:49:08 -05:00
Charles Neill 9049a2c710 Adding unit tests for Runner
Adding some basic unit tests to validate functionality in the Syntribos
runner and config files. Also preparing for py34 compatability.

Change-Id: I6a6352ccd6041f6044911803f753cdf525e0dfef
2016-07-18 17:23: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
Henry Yamauchi 0420f10d4c Last header not being copied in parser.py for GET
In method create_request of class RequestCreator in file
syntribos/clients/http/parser.py line 43, the headers variable
is missing the last HTTP header when a GET file is being processed.
The code works for POST because the POST body is separated from the
header by two newlines. For GET requests, the index value is being
adjusted to account for the fact that it does not have a body so no
empty line will be present.  We just add 1 to the index in that case.

Change-Id: I91881e1882aab21c2c14a7ff351bb3f7b70727f2
Closes-Bug: #1543236
2016-02-08 15:50:53 -06:00
Michael Xin ee5f6b8d4b Change styles to Pep8 compliant
Change-Id: Ic34eb22aad66766f0140087d39b313014533935f
2015-12-22 15:25:50 -06:00
Nathan Buckner 11bb15178c Adding MANIFEST.in, test-requirements.txt, tox.ini to pass gate
Change-Id: I7e05401b1f6b46829d8ab64fe3580b16719ec5f3
2015-10-19 18:31:38 -05:00
Nathan Buckner e6f3e896c4 moved request creator code to http client
fixed flake8 issues
made datagen a Mixin
2015-08-22 01:44:47 -05:00