uncap json schema

All openstack projects now use this requirement

Change-Id: Idf458b53843ddf2cb4eec211a1fe667c18db5b05
This commit is contained in:
Eyal 2019-12-29 11:56:04 +02:00
parent 8afc9de172
commit 2580e0f4fe
4 changed files with 11 additions and 21 deletions

View File

@ -47,7 +47,7 @@ class TestDownloadSanity(base.BaseArtifactTest):
self.assertEqual(sha256, art_blob['sha256'])
# Download data from the folder (dict_of_blobs)
self.assertEqual(data,
self.assertEqual(encoded_data,
self.artifacts_client.download_blob(
'sample_artifact', art['id'],
'/dict_of_blobs/new_blob'), pformat(art))
@ -73,7 +73,7 @@ class TestDownloadSanity(base.BaseArtifactTest):
self.assertEqual(sha256, art_blob['sha256'])
# Download data
self.assertEqual(data,
self.assertEqual(encoded_data,
self.artifacts_client.download_blob(
'sample_artifact', art['id'],
'/blob'), pformat(art))

View File

@ -22,14 +22,14 @@ keystoneauth1>=3.3.0 # Apache-2.0
keystonemiddleware>=4.17.0 # Apache-2.0
python-memcached>=1.56 # PSF
WSME>=0.8.0 # MIT
PyJWT>=1.0.1 # MIT
PyJWT>=1.6.0 # MIT
cryptography!=2.0,>=1.9 # BSD/Apache-2.0
# For paste.util.template used in keystone.common.template
Paste>=2.0.2 # MIT
jsonpatch>=1.16 # BSD
jsonschema<3.0.0,>=2.6.0 # MIT
jsonschema>=2.6.0 # MIT
pyOpenSSL>=16.2.0 # Apache-2.0
# Required by openstack.common libraries
six>=1.10.0 # MIT
@ -55,4 +55,4 @@ semantic-version>=2.3.1 # BSD
# timeutils
iso8601>=0.1.11 # MIT
monotonic>=0.6 # Apache-2.0
monotonic>=0.6;python_version<'3.3' # Apache-2.0

View File

@ -14,7 +14,8 @@ coverage!=4.4,>=4.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
mox3>=0.20.0 # Apache-2.0
mock>=2.0.0 # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
requests>=2.14.2 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testresources>=2.0.0 # Apache-2.0/BSD
@ -27,9 +28,9 @@ stestr>=1.0.0 # Apache-2.0
# Optional packages that should be installed when testing
PyMySQL>=0.7.6 # MIT License
psycopg2>=2.6.2 # LGPL/ZPL
pysendfile>=2.0.0 # MIT
pysendfile>=2.0.0;sys_platform!='win32' # MIT
qpid-python>=0.26;python_version=='2.7' # Apache-2.0
xattr>=0.9.2 # MIT
xattr>=0.9.2;sys_platform!='win32' # MIT
python-swiftclient>=3.2.0 # Apache-2.0
# Documentation

15
tox.ini
View File

@ -1,9 +1,10 @@
[tox]
minversion = 1.6
envlist = py27,pep8,py35
envlist = py37,pep8
skipsdist = True
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
@ -17,26 +18,19 @@ whitelist_externals = bash
passenv = *_proxy *_PROXY
[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}
[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper {posargs}
[testenv:debug-py37]
basepython = python3.7
commands = oslo_debug_helper {posargs}
[testenv:pep8]
basepython = python3
commands =
flake8 {posargs}
# Run security linter
bandit -c bandit.yaml -r glare -n5
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source glare --parallel-mode --omit="*/test*"
@ -47,27 +41,22 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:genconfig]
basepython = python3
commands =
oslo-config-generator --config-file etc/oslo-config-generator/glare.conf
[testenv:genpolicy]
basepython = python3
sitepackages = False
envdir = {toxworkdir}/venv
commands =
oslopolicy-sample-generator --namespace=glare --output-file=etc/policy.yaml.sample
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx
[testenv:bandit]
basepython = python3
usedevelop = False
commands = bandit -c bandit.yaml -r glare -n5 {posargs}