Unit tests use inconsistent default tenant id
Bug #1335821 reported by
Assaf Muller
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Assaf Muller |
Bug Description
Meters and security groups use 'test_tenant' while all other resources use 'test-tenant'.
This means that a test that creates multiple types of resources (While using the the default tenant id) would find that some resources were created under one tenant, and other resources under another tenant.
For example, a test creates a network, subnet, port, security group and meter label + rule. Listing all resources that belong to the 'test-tenant' would return a partial list, leading to confusing results.
Changed in neutron: | |
assignee: | nobody → Assaf Muller (amuller) |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
importance: | Undecided → Low |
milestone: | none → juno-2 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | juno-2 → 2014.2 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/91961 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=5b34d41828a 2a1260b1b92f6bf d91e1264aea7a8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5b34d41828a2a12 60b1b92f6bfd91e 1264aea7a8
Author: Assaf Muller <email address hidden>
Date: Sat May 3 17:05:04 2014 +0300
Replace occurences of 'test_tenant' with 'test-tenant' in tests
tenant_id will now be consistent among all resources created.
This is important when getting or listing resources by tenant_id.
Most resources are created under the 'test-tenant', while
metering and security groups were created under 'test_tenant'.
Closes-Bug: #1335821 2e751f2102f6fd7 ef52c932126
Change-Id: Ifde22814ab5c30