140 Commits

Author SHA1 Message Date
Chris Dent
64f274d487 release 1.35.0
* LHS substitution in response_json_paths
* RHS load data from disk in response_json_paths
2017-07-07 14:23:25 +01:00
Chris Dent
00dd7c24d8 Merge pull request #215 from cdent/json-lhs-expand
Template expansion in LHS of json path test
2017-07-07 14:03:39 +01:00
Chris Dent
92377f8ada Documentation for <@ in json path values
While writing the documentation it was discovered an additional
test case was needed, so that is added here. It tests partial
chunks of JSON.
2017-07-07 10:58:09 +01:00
Chris Dent
683dba6a07 Add some simple docs for the LHS json path substitution.
So that there is some warning about quoting issues.
2017-07-06 16:15:09 +01:00
Chris Dent
75694c888e Update contributors list to reflect recent activity 2017-04-27 10:36:25 +01:00
Chris Dent
9d458ad165 Relase 1.34.0
- stronger types in $RESPONSE subsitutions
2017-04-26 21:53:35 +01:00
Ryan James Spencer
ac0243df46 Add optional test param for custom content handlers (#212)
Add optional `test` param for custom content handlers

This resolves #211.

`multipart/form-data` transmission requires modifying the `Content-Type`
header with a `boundary` section identifier, and as such a custom
content handler would not have previously had access to the running test
case it was working on. This should hopefully be useful for other custom
content handlers in the future.
2017-04-02 17:37:58 +01:00
Chris Dent
b4e738b808 release 1.33.0
* count and poll use substitions
* build_tests param keyword
* fixes to prefix handling
* fixes to reading utf8 encoding on disk data
2017-03-21 09:26:09 +00:00
Chris Dent
d8fe9f801b Release 1.32.0
- Improved error reporting when using multiple files with gabbi-run
2017-02-06 13:28:42 +00:00
Chris Dent
fb9a001db7 Release 1.31.0
- capture exceptions in start_fixture as test errors
2017-01-17 15:22:28 +00:00
Chris Dent
3e450b1d37 Add a bit of test running arcana to the faq
Running just one dynamically generated test can be a bit confusing
so some advice is added to the faq. At some point this should
probably be intergrated into the mainline docs.
2017-01-12 13:44:48 +00:00
Chris Dent
6671e5d4d1 Remove FAQ entry about pytest warnings
The issue was resolved and for older versions, or use of the old style
there is an explanation of how to deal with things in loader.rst.
2017-01-04 11:30:19 +00:00
Chris Dent
d22e643bb6 Use newer style of stating method in example.yaml
It is more readable and the more commonly used style now.
2017-01-04 11:27:26 +00:00
Chris Dent
15ef8d712e Add docs for the $HISTORY feature
To prepare the 1.30.0 release.
2016-12-30 15:48:33 +00:00
Chris Dent
efbaf13629 Minor test format doc improvements
Turn a paragraph identified as a note into an rst-styled note.

Clarify how the 'url' key is required.
2016-12-30 15:14:27 +00:00
Chris Dent
b8954e2a1c release 1.29.0
* allow pathnames when using <@ data loading syntax
* add --verbose to gabbi-run
* add a new technique for loading tests in pytest to avoid yield
  test warnings
2016-11-30 19:01:50 +00:00
Chris Dent
21663d91fc Adjust 'data' docs in format.rst
The details of how things works when data is a non-string were
not correct. When fixing that it became clear that the information
would make more sense presented as a list. So now it is.
2016-11-30 18:49:29 +00:00
Chris Dent
d858e8379c Add docs explaining use of new pytest technique
loader.rst has been expanded to explain both ways for loading
tests using pytest, hopefully with sufficient context to explain
why it is like it is.

With any luck this will help make the obvious cleaner solution
more apparent as we iterate into the future.
2016-11-28 21:02:38 +00:00
Chris Dent
7f2c19f5b0 Merge branch 'master' into fix-185 2016-11-28 14:34:33 +00:00
Chris Dent
e005836817 Merge pull request #189 from tomviner/data-files-in-subdirs
Docs for <@file/path.txt
2016-11-28 10:12:16 +00:00
Tom Viner
59ed73d75f clarify wording of docs 2016-11-27 19:20:48 +00:00
Chris Dent
d181dae229 Add a -v or --verbose flag to gabbi-run
A value of 'all', 'headers' or 'body' will have the expected
effect on all the tests being run in the current testing session.

This is done by manipulating the 'defaults' of each test suite.

Fixes: #185
2016-11-27 15:13:03 +00:00
Tom Viner
968c11b3da update docs to mention filepath rather than file 2016-11-27 13:51:48 +00:00
Chris Dent
787e83a44b release 1.28.0
- pretty print json bodies when verbose: True
2016-11-25 11:44:45 +00:00
Chris Dent
39095289e3 Release 1.27.0
* allow gabbi-run to accept multiple filenames as command args
2016-10-04 14:24:12 +01:00
Chris Dent
b1b0dfa546 Add some rudimentary docs for runner input files handling
This gets the basics in a very simplistic fashion.

What's missing is any indication of the availability of this feature
in the argparse created help (the output one sees from
gabbi-run --help). It's not clear what the best way to add this is,
since the feature is being managed outside argparse.
2016-10-04 11:58:42 +01:00
Chris Dent
f35df02ee8 Release 1.26.0
* switch to content-handlers
* add inner-fixtures
2016-09-29 09:35:51 +01:00
Chris Dent
df198c8849 Add doc for inner fixtures
This covers the basics without being too encouraging. We don't
want to be encouraging on this one.
2016-09-28 16:55:45 +01:00
Chris Dent
0419936f5d Merge branch 'content-handlers' of github.com:cdent/gabbi into content-handlers 2016-09-26 20:00:45 +01:00
FND
9203bc89c3 Fix heading level 2016-09-21 13:50:27 +02:00
Chris Dent
a9e16c7ae3 Release 1.25.0
- allow overriding of fully qualified test name via test_loader_name
2016-09-20 19:31:23 +01:00
Chris Dent
9cb72dbc43 Add some doc and FAQ about quieting pytest warnings (#172)
As it will take some time and effort to replace the existing yield
tests, add some hopefully helpful information on how to deal with
the warnings.
2016-09-20 19:28:19 +01:00
Chris Dent
80df8a8863 Release 1.24.1
* cast jsonpath match to string for regex match
* don't require mock in python >= 3.3
2016-09-06 21:55:36 +01:00
Chris Dent
2bd1c803b7 Add a FAQ about yaml anchors and aliases
They are black magic, but very useful.
2016-08-19 17:01:34 +01:00
Chris Dent
8db2f5ab27 Add the framework for including a FAQ in docs (#163)
Add a faq.rst and two simple questions to get the ball rolling
on having a gabbi faq in the docs.

This format probably won't scale in the long run, but is useful in
the short run and while the format might become lame the content
will not.
2016-08-17 12:42:34 +01:00
Jason Myers
92718ede93 Fixing link to google (#162)
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2016-08-08 13:55:32 +01:00
Chris Dent
b7612145e8 release 1.24.0
- allow regex in jsonpath string matches
2016-07-06 15:26:46 -04:00
Chris Dent
0767cb8c7c Allow regex in json path values (#160)
If the value of jsonpath entry is a string and is wrapped in /.../
then the matching of the results of the jsonpath will be check via
the regex.

Fixes #146
2016-07-06 15:13:35 -04:00
Chris Dent
a9039670e7 Merge branch 'master' into content-handlers 2016-07-03 12:33:39 -04:00
Chris Dent
eabee1f83d release 1.23.0
* better concurrency documentation
* correct pytest test counts and fixture running
2016-06-16 14:22:49 +01:00
Chris Dent
5d8949257a Be more visible about test loader needs when concurrent
Some recent failulres in OpenStack land made it clear that
it was less clear than it should be the precautions that are
required when running gabbi in a concurrent testing environment.
2016-06-16 13:38:56 +01:00
Chris Dent
c72d736a89 Merge branch 'master' into content-handlers 2016-06-16 11:43:08 +01:00
Chris Dent
1b9a0be830 Adjustments for release notes
* add a link to README.rst
* reverse chronological order of notes
2016-06-16 11:21:36 +01:00
Chris Dent
b69f36291a Add a release notes page to the docs. (#155)
The idea is to have informal (but hopefully useful) entries on
this page when something interesting happens. I've filled it in
with all the relevant releases since 1.0.0.
2016-06-15 19:29:16 +01:00
Chris Dent
011421df98 Tune up the docs so modules are presented better
On https://gabbi.readthedocs.io/ not all modules were present.
Notably missing was suitemaker, which is kind of the key to the
whole thing.
2016-06-15 18:19:16 +01:00
Chris Dent
f6fed93824 Tidy up after rebasing from master
Get tests working again, move some modules around for more
sensibility, fix links in documentation.
2016-06-08 16:50:16 +01:00
Chris Dent
32de38d487 Merge branch 'master' into content-handlers 2016-06-08 13:30:03 +01:00
Chris Dent
08cb8ac1bd Allowing forcing SSL in build_tests and gabbi-run
build_tests gains a require_ssl argument which, if set to True,
makes all the loaded test suites default to 'ssl: True'.

gabbi-run will interpret a target containing 'https' as meaning
that the tests in the provided yaml should default to 'ssl: True'.

Fixes: #50
Fixes: #105
Fixes: #138

The changes here are the naive basics to get the desired behavior.
There's an existing cleanup branch on which we can clean this up
later.
2016-06-02 09:15:57 +01:00
Chris Dent
f6eb64fe05 Merge pull request #135 from cdent/cookie-substitution
Cookie substitution
2016-06-01 17:00:31 +01:00
Chris Dent
3d04e979c2 Get gabbi working with IPv6 addresses
According to rfc 2732 an IPv6 address in a url needs to be enclosed
in [] (e.g. http://[::1]/foobar). Gabbi was not doing this. Instead
it was passing host information directly to its URL generation
routine and just using it. When doing tests against real servers
running on ipv6, this results in failures.

The changes here try to do the bare minumum to get the right results
without changing the create_url method too much. It's likely that in
some future version of gabbi we will want to change a lot here (the
current orientation towards hosts and ports instead of URLs is the
result of the wsgi-intercept integration) but for now we want to
keep the change limited.

I hate myself for the mocks in test_runner. A clear sign of bad
abstraction in runner.py, however this is not the place to be
changing that. Another item for the later list.

Fixes #136
2016-06-01 13:35:26 +01:00