Test allow creation of service without type
Bug #1394995 reported by
Lin Hua Cheng
This bug report is a duplicate of:
Bug #1259425: service-create allows 2 services with the same name.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
New
|
Undecided
|
Lin Hua Cheng |
Bug Description
Test in test_catalog and test_v3_catalog, allow service to be created without a type. According to the API specs, service type is a required
field for Service.
https:/
service = {'id': self.service_id, 'name': uuid.uuid4().hex}
This mean the api service is not validating the type is required OR we are not testing that service validates it.
Changed in keystone: | |
assignee: | nobody → Lin Hua Cheng (lin-hua-cheng) |
description: | updated |
To post a comment you must log in.
I just took a quick look at the code and it looks like this is just a disconnect between the controller and backends. The controller seems to validate this properly using a JSON schema. The backends do no such validation. I guess the question is if they should validate or not...