Fix minItems value for tags in json-schema
Change-Id: Ice57dc256f7d5a4c276078bbd308132288e9b8e7 Closes-Bug: #1498483
This commit is contained in:
parent
469b97ac54
commit
164af71bff
@ -31,7 +31,7 @@ PKG_UPLOAD_SCHEMA = {
|
|||||||
"properties": {
|
"properties": {
|
||||||
"tags": {
|
"tags": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"minItems": 1,
|
"minItems": 0,
|
||||||
"items": {"type": "string"},
|
"items": {"type": "string"},
|
||||||
"uniqueItems": True
|
"uniqueItems": True
|
||||||
},
|
},
|
||||||
|
@ -82,12 +82,12 @@ class TestRepositorySanity(TestCaseRepository):
|
|||||||
for package in packages_list['packages']:
|
for package in packages_list['packages']:
|
||||||
if 'Dummy' in package['fully_qualified_name']:
|
if 'Dummy' in package['fully_qualified_name']:
|
||||||
self.client.delete_package(package['id'])
|
self.client.delete_package(package['id'])
|
||||||
categorie = self.client.list_categories()[1]['categories'][0]
|
|
||||||
packages_list = self.client.get_list_packages()[1]['packages']
|
packages_list = self.client.get_list_packages()[1]['packages']
|
||||||
|
|
||||||
resp = self.client.upload_package(
|
resp = self.client.upload_package(
|
||||||
'testpackage',
|
'testpackage',
|
||||||
{"categories": [categorie], "tags": ["windows"]})
|
{"categories": [], "tags": []})
|
||||||
self.packages.append(resp.json())
|
self.packages.append(resp.json())
|
||||||
|
|
||||||
_packages_list = self.client.get_list_packages()[1]['packages']
|
_packages_list = self.client.get_list_packages()[1]['packages']
|
||||||
|
Loading…
Reference in New Issue
Block a user