summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-neutronclient
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2014-09-16 23:49:24 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-09-16 23:49:24 -0400
commita7e4f8f04c1b1cf83de4a4a45f75aefc15f8a6bf (patch)
treeff6b081fa82c8bf9c5bcd0f1383792fffe6398f2 /meta-openstack/recipes-devtools/python/python-neutronclient
parentd926dfba758be9db6bed30df8bd334c73408cdf8 (diff)
downloadmeta-cloud-services-a7e4f8f04c1b1cf83de4a4a45f75aefc15f8a6bf.tar.gz
clients: update clients to juno b3 sync point
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-neutronclient')
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutronclient/neutronclient-use-csv-flag-instead-of-json.patch33
1 files changed, 15 insertions, 18 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutronclient/neutronclient-use-csv-flag-instead-of-json.patch b/meta-openstack/recipes-devtools/python/python-neutronclient/neutronclient-use-csv-flag-instead-of-json.patch
index d9fade3..32541eb 100644
--- a/meta-openstack/recipes-devtools/python/python-neutronclient/neutronclient-use-csv-flag-instead-of-json.patch
+++ b/meta-openstack/recipes-devtools/python/python-neutronclient/neutronclient-use-csv-flag-instead-of-json.patch
@@ -17,11 +17,11 @@ Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
17 neutronclient/tests/unit/test_cli20_network.py | 4 ++-- 17 neutronclient/tests/unit/test_cli20_network.py | 4 ++--
18 2 files changed, 4 insertions(+), 4 deletions(-) 18 2 files changed, 4 insertions(+), 4 deletions(-)
19 19
20diff --git a/neutronclient/tests/unit/test_cli20_agents.py b/neutronclient/tests/unit/test_cli20_agents.py 20Index: git/neutronclient/tests/unit/test_cli20_agents.py
21index 1e75a92..ab01fb7 100644 21===================================================================
22--- a/neutronclient/tests/unit/test_cli20_agents.py 22--- git.orig/neutronclient/tests/unit/test_cli20_agents.py
23+++ b/neutronclient/tests/unit/test_cli20_agents.py 23+++ git/neutronclient/tests/unit/test_cli20_agents.py
24@@ -25,7 +25,7 @@ class CLITestV20Agent(test_cli20.CLITestV20Base): 24@@ -25,7 +25,7 @@
25 def test_list_agents(self): 25 def test_list_agents(self):
26 contents = {'agents': [{'id': 'myname', 'agent_type': 'mytype', 26 contents = {'agents': [{'id': 'myname', 'agent_type': 'mytype',
27 'alive': True}]} 27 'alive': True}]}
@@ -30,7 +30,7 @@ index 1e75a92..ab01fb7 100644
30 resources = "agents" 30 resources = "agents"
31 31
32 cmd = agent.ListAgent(test_cli20.MyApp(sys.stdout), None) 32 cmd = agent.ListAgent(test_cli20.MyApp(sys.stdout), None)
33@@ -40,7 +40,7 @@ class CLITestV20Agent(test_cli20.CLITestV20Base): 33@@ -40,7 +40,7 @@
34 34
35 def test_list_agents_field(self): 35 def test_list_agents_field(self):
36 contents = {'agents': [{'alive': True}]} 36 contents = {'agents': [{'alive': True}]}
@@ -39,28 +39,25 @@ index 1e75a92..ab01fb7 100644
39 resources = "agents" 39 resources = "agents"
40 smile = ':-)' 40 smile = ':-)'
41 41
42diff --git a/neutronclient/tests/unit/test_cli20_network.py b/neutronclient/tests/unit/test_cli20_network.py 42Index: git/neutronclient/tests/unit/test_cli20_network.py
43index 5e9be2a..eb562d0 100644 43===================================================================
44--- a/neutronclient/tests/unit/test_cli20_network.py 44--- git.orig/neutronclient/tests/unit/test_cli20_network.py
45+++ b/neutronclient/tests/unit/test_cli20_network.py 45+++ git/neutronclient/tests/unit/test_cli20_network.py
46@@ -262,7 +262,7 @@ class CLITestV20NetworkJSON(test_cli20.CLITestV20Base): 46@@ -267,7 +267,7 @@
47 fields_1=['a', 'b'], fields_2=['c', 'd']) 47 fields_1=['a', 'b'], fields_2=['c', 'd'])
48 48
49 def _test_list_nets_columns(self, cmd, returned_body, 49 def _test_list_nets_columns(self, cmd, returned_body,
50- args=['-f', 'json']): 50- args=('-f', 'json')):
51+ args=['-f', 'csv']): 51+ args=('-f', 'csv')):
52 resources = 'networks' 52 resources = 'networks'
53 self.mox.StubOutWithMock(network.ListNetwork, "extend_list") 53 self.mox.StubOutWithMock(network.ListNetwork, "extend_list")
54 network.ListNetwork.extend_list(mox.IsA(list), mox.IgnoreArg()) 54 network.ListNetwork.extend_list(mox.IsA(list), mox.IgnoreArg())
55@@ -275,7 +275,7 @@ class CLITestV20NetworkJSON(test_cli20.CLITestV20Base): 55@@ -280,7 +280,7 @@
56 "tenant_id": "tenant_3", 56 "tenant_id": "tenant_3",
57 "subnets": []}]} 57 "subnets": []}]}
58 self._test_list_nets_columns(cmd, returned_body, 58 self._test_list_nets_columns(cmd, returned_body,
59- args=['-f', 'json', '-c', 'id']) 59- args=['-f', 'json', '-c', 'id'])
60+ args=['-f', 'csv', '-c', 'id']) 60+ args=['-f', 'csv', '-c', 'id'])
61 _str = self.fake_stdout.make_string() 61 _str = self.fake_stdout.make_string()
62 returned_networks = utils.loads(_str) 62 returned_networks = jsonutils.loads(_str)
63 self.assertEqual(1, len(returned_networks)) 63 self.assertEqual(1, len(returned_networks))
64--
651.9.3
66