Made the provider URI not accept empty strings
Change-Id: I654cab93f7495ada5246637b52e1299b8e8535e6
This commit is contained in:
parent
a1287b4351
commit
24468a402d
|
@ -48,7 +48,7 @@ class FlavorSchema(schema_base.SchemaBase):
|
|||
"properties": {
|
||||
"href": {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
"minLength": 2,
|
||||
"required": True
|
||||
},
|
||||
"rel": {
|
||||
|
|
|
@ -35,5 +35,19 @@
|
|||
"empty_provider_list": {
|
||||
"id" : "empty_providers",
|
||||
"providers" : []
|
||||
},
|
||||
"missing_uri_in_provider": {
|
||||
"id" : "doesnt_exist",
|
||||
"providers" : [
|
||||
{
|
||||
"provider" : "mock",
|
||||
"links": [
|
||||
{
|
||||
"href": "",
|
||||
"rel": "provider_url"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue