Skip to content

Commit 17ee702

Browse files
kevin-bateslresende
authored andcommitted
Release 0.3.6
Prepare for release 0.3.6. Aside from updating the version and changelog, this also includes minor updates to a few test files to satisfy lint.
1 parent 2a4ec01 commit 17ee702

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ Programmatic interface
8888
Changelog
8989
=========
9090

91+
0.3.6 Release
92+
- Extend ResourceManager to allow applications to better
93+
determine resource availability prior to submission.
94+
9195
0.3.5 Release
9296
- Hotfix release to fix internal signature mismatch
9397

tests/test_hadoop_conf.py

-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def test_get_jobhistory_host_port(self):
165165
host_port = hadoop_conf.get_jobhistory_host_port()
166166
self.assertIsNone(host_port)
167167

168-
169168
def test_get_nodemanager_host_port(self):
170169
with patch('yarn_api_client.hadoop_conf.parse') as parse_mock:
171170
parse_mock.return_value = 'example.com:8022'
@@ -182,7 +181,6 @@ def test_get_nodemanager_host_port(self):
182181
host_port = hadoop_conf.get_nodemanager_host_port()
183182
self.assertIsNone(host_port)
184183

185-
186184
def test_get_webproxy_host_port(self):
187185
with patch('yarn_api_client.hadoop_conf.parse') as parse_mock:
188186
parse_mock.return_value = 'example.com:8022'

tests/test_node_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_node_information(self, request_mock):
1818
def test_node_applications(self, request_mock):
1919
self.nm.node_applications('RUNNING', 'root')
2020
request_mock.assert_called_with('/ws/v1/node/apps',
21-
params={"state":'RUNNING', "user":'root'})
21+
params={"state": 'RUNNING', "user": 'root'})
2222

2323
self.nm.node_applications()
2424
request_mock.assert_called_with('/ws/v1/node/apps', params={})

tests/test_resource_manager.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def test_cluster_applications(self, request_mock):
3737
user='root', queue='low', limit=10,
3838
started_time_begin=1, started_time_end=2,
3939
finished_time_begin=3, finished_time_end=4)
40-
request_mock.assert_called_with('/ws/v1/cluster/apps', params={'state': 'KILLED',
41-
'finalStatus': 'FAILED', 'user': 'root', 'queue': 'low',
42-
'limit': 10, 'startedTimeBegin': 1, 'startedTimeEnd': 2,
43-
'finishedTimeBegin': 3, 'finishedTimeEnd': 4})
40+
request_mock.assert_called_with('/ws/v1/cluster/apps', params={'state': 'KILLED', 'finalStatus': 'FAILED',
41+
'user': 'root', 'queue': 'low', 'limit': 10,
42+
'startedTimeBegin': 1, 'startedTimeEnd': 2,
43+
'finishedTimeBegin': 3, 'finishedTimeEnd': 4})
4444

4545
with self.assertRaises(IllegalArgumentError):
4646
self.rm.cluster_applications(state='ololo')

yarn_api_client/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = '0.3.6.dev'
2+
__version__ = '0.3.6'
33
__all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager']
44

55
from .application_master import ApplicationMaster

0 commit comments

Comments
 (0)