← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1966354] [NEW] [test][unit] The method of creating resources does not support setting project_ id

 

Public bug reported:

Some basic unit test classes in neutron, contain basic methods for creating resources, which are often referenced by other unit tests.
eg:
MeteringPluginDbTestCaseMixin.metering_label
MeteringPluginDbTestCaseMixin.metering_label_rule
NeutronDbPluginV2TestCase.network
NeutronDbPluginV2TestCase.subnet
NeutronDbPluginV2TestCase.subnetpool
NeutronDbPluginV2TestCase.port
AddressScopeTestCase.address_scope
L3NatExtensionTestCase.router

these methods only distinguish parameter "tenant_id", if the parameter "project_id" passed into, will raise error or not working.
to write a new unit test, need to set "project_id", and then use the discarded "tenant_id" is not appropriate.

** Affects: neutron
     Importance: Undecided
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1966354

Title:
  [test][unit] The method of creating  resources does not support
  setting project_ id

Status in neutron:
  In Progress

Bug description:
  Some basic unit test classes in neutron, contain basic methods for creating resources, which are often referenced by other unit tests.
  eg:
  MeteringPluginDbTestCaseMixin.metering_label
  MeteringPluginDbTestCaseMixin.metering_label_rule
  NeutronDbPluginV2TestCase.network
  NeutronDbPluginV2TestCase.subnet
  NeutronDbPluginV2TestCase.subnetpool
  NeutronDbPluginV2TestCase.port
  AddressScopeTestCase.address_scope
  L3NatExtensionTestCase.router

  these methods only distinguish parameter "tenant_id", if the parameter "project_id" passed into, will raise error or not working.
  to write a new unit test, need to set "project_id", and then use the discarded "tenant_id" is not appropriate.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1966354/+subscriptions



Follow ups