summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhaojingjing0067370 <zhao.jingjing2@zte.com.cn>2017-06-08 16:45:16 +0800
committerzhaojingjing0067370 <zhao.jingjing2@zte.com.cn>2017-06-08 16:45:16 +0800
commitc579701497b7c94531ad1b439727be2fc36aa050 (patch)
tree067f1b654010721cc1b2796085aa2d38c5711dc0
parent41961a25fdc9e110ec51d8e78c6feb2736bebd6f (diff)
downloadpython-neutronclient-c579701497b7c94531ad1b439727be2fc36aa050.tar.gz
BGP unit test 'auth-type' errors
'auth-type' in position_names is wrong, and it should be modified to 'auth_type' for bgp peer. Change-Id: I54a7ab54500c8d3655212e81046becee241a8c18
-rw-r--r--neutronclient/tests/unit/bgp/test_cli20_peer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neutronclient/tests/unit/bgp/test_cli20_peer.py b/neutronclient/tests/unit/bgp/test_cli20_peer.py
index b165327..c89c21b 100644
--- a/neutronclient/tests/unit/bgp/test_cli20_peer.py
+++ b/neutronclient/tests/unit/bgp/test_cli20_peer.py
@@ -148,7 +148,7 @@ class CLITestV20BGPPeerJSON(test_cli20.CLITestV20Base):
'--peer-ip', peerip,
'--remote-as', remote_asnum,
'--auth-type', authType]
- position_names = ['name', 'peer_ip', 'remote_as', 'auth-type']
+ position_names = ['name', 'peer_ip', 'remote_as', 'auth_type']
position_values = [name, peerip, remote_asnum, authType]
exc = self.assertRaises(exceptions.CommandError,
self._test_create_resource,