We should register the passed plugin as core only if service_type is
False. Otherwise, the passed plugin is a service plugin, in which case
we should register some other core plugin for the test. The easiest
thing is to use the base db plugin for that matter.
This fixes subproject unit tests because now the core plugin will always
have _get_collection function that is needed by some underlying db api
functions.
Reviewed: https:/ /review. openstack. org/450923 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=bae6555816d 7b5784a09bf2619 58025c52df433f
Committed: https:/
Submitter: Jenkins
Branch: master
commit bae6555816d7b57 84a09bf26195802 5c52df433f
Author: Ihar Hrachyshka <email address hidden>
Date: Tue Mar 28 01:57:51 2017 +0000
ExtensionTe stCase: register correct core plugin
We should register the passed plugin as core only if service_type is
False. Otherwise, the passed plugin is a service plugin, in which case
we should register some other core plugin for the test. The easiest
thing is to use the base db plugin for that matter.
This fixes subproject unit tests because now the core plugin will always
have _get_collection function that is needed by some underlying db api
functions.
Change-Id: Ica421831763eb2 f5d25fc06828730 5b402227b53
Closes-Bug: #1676656