Skip to content

Commit 2745b17

Browse files
committed
Add qos_network_policy_id to network port tests
Added "qos_network_policy_id" to "port show" command. Because this is just a read-only parameter and is read from the SDK port definition, this patch only modifies the corresponding tests. This patch is adding this new parameter to the test bench. Change-Id: Ice7423e0e0b98a39cc36622b70eae5a8493a037c Closes-Bug: #1851362
1 parent d15bbad commit 2745b17

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

openstackclient/tests/unit/network/v2/fakes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ def create_one_port(attrs=None):
639639
'security_group_ids': [],
640640
'status': 'ACTIVE',
641641
'tenant_id': 'project-id-' + uuid.uuid4().hex,
642+
'qos_network_policy_id': 'qos-policy-id-' + uuid.uuid4().hex,
642643
'qos_policy_id': 'qos-policy-id-' + uuid.uuid4().hex,
643644
'tags': [],
644645
'uplink_status_propagation': False,

openstackclient/tests/unit/network/v2/test_port.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def _get_common_cols_data(fake_port):
6161
'network_id',
6262
'port_security_enabled',
6363
'project_id',
64+
'qos_network_policy_id',
6465
'qos_policy_id',
6566
'security_group_ids',
6667
'status',
@@ -91,6 +92,7 @@ def _get_common_cols_data(fake_port):
9192
fake_port.network_id,
9293
fake_port.port_security_enabled,
9394
fake_port.project_id,
95+
fake_port.qos_network_policy_id,
9496
fake_port.qos_policy_id,
9597
format_columns.ListColumn(fake_port.security_group_ids),
9698
fake_port.status,

0 commit comments

Comments
 (0)