partitions are named incorrectly in the testcase file

Bug #1681624 reported by sreeteja
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-dpm
New
Low
Unassigned

Bug Description

The partition names in the /nova-dpm/nova_dpm/tests/unit/virt/dpm/test_utils.py

Here the partitions under one CPC are listed ...But the partition names are confusing as there are four partitions under this CPC...Names of the partition needs correction as partition-2,3,4 everywhere in the code.

List partition:

[Partition(name=OpenStack-fake-mini-1, object-uri=/api/partitions/1), Partition(name=OpenStack-foo-6511ee0f-0d64-4392-b9e0-aaaaaaaaaaaa, object-uri=/api/partitions/2), Partition(name=OpenStack-foo-6511ee0f-0d64-4392-b9e0-cdbea10a4444, object-uri=/api/partitions/3), Partition(name=OpenStack-foo-6511ee0f-0d64-4392-b9e0-cdbea10accc4, object-uri=/api/partitions/4)]

As per the code in test_utils.py:

partitions': [
                   {
                        'properties': {
                            # object-id is auto-generated
                            # object-uri is auto-generated
                            'name': 'OpenStack-fake-mini-1',
                            'description': 'Partition #1 in CPC #2',
                        },
                    },
                    {
                        'properties': PARTITION1
                    },
                    {
                        'properties': PARTITION2
                    },
                    {
                        'properties': PARTITION3
                    },

sreeteja (sreeteja)
Changed in nova-dpm:
importance: Undecided → High
summary: - partitions are named incorrectly
+ partitions are named incorrectly in the testcase file
Changed in nova-dpm:
importance: High → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.