Add specific values to specific fields in get_random_object_fields()
Generally, get_random_object_fields() generates random values to
update OVO objects. However, in some cases, specific values are
required, otherwise Foreign Key violation is triggered.
This patch adds a dictionary to hold all updatable fields which
require specific values.
Reviewed: https:/ /review. openstack. org/485082 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d24abbe792c 7ddb911c4f7ffee 5c3b2fced4650b
Committed: https:/
Submitter: Jenkins
Branch: master
commit d24abbe792c7ddb 911c4f7ffee5c3b 2fced4650b
Author: Lujin <email address hidden>
Date: Wed Jul 19 16:34:33 2017 +0900
Add specific values to specific fields in get_random_ object_ fields( )
Generally, get_random_ object_ fields( ) generates random values to
update OVO objects. However, in some cases, specific values are
required, otherwise Foreign Key violation is triggered.
This patch adds a dictionary to hold all updatable fields which
require specific values.
Change-Id: I6da72c3ac43f01 b5ffa21f128fb3e eaf9fd0a503
Closes-Bug: #1705187