RETIRED, further work has moved to Debian project infrastructure
Go to file
ghanshyam f46b6c99e0 Fix 'format' checking for json schema validation
In json schema, "format" keyword is defined to allow inter-operable
semantic validation for a fixed subset of values.
For example - ip address which comes as 'string' can be further checked
with ipv4 or ipv6 format.

ip_address = {
    'type': 'string',
    'oneOf': [
        {'format': 'ipv4'},
        {'format': 'ipv6'}
    ]
}

Json schema does not validate 'format' correctly if FormatChecker is not
passed during validation. Without FormatChecker, it validate all format as true.

To validate 'format' correctly FormatChecker has to be passed while doing schema
validation.

This commit fix this issue and adds unit tests for that.

Closes-Bug:1460975

Change-Id: Iad6ec9644eb1ec976b4a47f7dec127bfaecfd1fa
2015-06-09 17:20:34 +09:00
doc/source Add release notes to docs for past few releases 2015-04-28 15:08:01 -04:00
tempest_lib Fix 'format' checking for json schema validation 2015-06-09 17:20:34 +09:00
tools Switch to using ostestr for subunit-trace 2015-05-28 18:51:53 +00:00
.coveragerc Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
.gitignore Ignore cover directory from the git repository 2014-09-12 15:49:01 +09:00
.gitreview Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
.mailmap Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
.testr.conf Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:41 +00:00
HACKING.rst Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
LICENSE Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
MANIFEST.in Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
README.rst Improve the library's documentation 2015-02-11 19:04:47 -05:00
babel.cfg Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
openstack-common.conf Stop using oslo logging 2014-08-28 23:00:38 -04:00
requirements.txt Switch to using ostestr for subunit-trace 2015-05-28 18:51:53 +00:00
setup.cfg Switch to using ostestr for subunit-trace 2015-05-28 18:51:53 +00:00
setup.py Updated from global requirements 2014-12-12 22:22:14 +00:00
test-requirements.txt Merge "Fix ValueError in subunit_trace" 2015-04-27 10:03:11 +00:00
tox.ini Switch to using ostestr for subunit-trace 2015-05-28 18:51:53 +00:00

README.rst

tempest-lib

OpenStack Functional Testing Library

tempest-lib is a library of common functionality that was originally in tempest (or similar in scope to tempest)

Features

Some of the current functionality exposed from the library includes:

  • OpenStack python-* client CLI testing framework
  • subunit-trace: A output filter for subunit streams. Useful in conjunction

    with calling a test runner that emits subunit

  • A unified REST Client
  • Utility functions:
    • skip_because: Skip a test because of a bug
    • find_test_caller: Perform stack introspection to find the test caller.

      common methods