Skip to content

Commit

Permalink
Release 0.3.6
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kevin-bates committed Jul 25, 2019
1 parent 2a4ec01 commit 842e3cc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ Programmatic interface
Changelog
=========

0.3.6 Release
- Extend ResourceManager to allow applications to better
determine resource availability prior to submission.

0.3.5 Release
- Hotfix release to fix internal signature mismatch

Expand Down
2 changes: 0 additions & 2 deletions tests/test_hadoop_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def test_get_jobhistory_host_port(self):
host_port = hadoop_conf.get_jobhistory_host_port()
self.assertIsNone(host_port)


def test_get_nodemanager_host_port(self):
with patch('yarn_api_client.hadoop_conf.parse') as parse_mock:
parse_mock.return_value = 'example.com:8022'
Expand All @@ -182,7 +181,6 @@ def test_get_nodemanager_host_port(self):
host_port = hadoop_conf.get_nodemanager_host_port()
self.assertIsNone(host_port)


def test_get_webproxy_host_port(self):
with patch('yarn_api_client.hadoop_conf.parse') as parse_mock:
parse_mock.return_value = 'example.com:8022'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_node_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_node_information(self, request_mock):
def test_node_applications(self, request_mock):
self.nm.node_applications('RUNNING', 'root')
request_mock.assert_called_with('/ws/v1/node/apps',
params={"state":'RUNNING', "user":'root'})
params={"state": 'RUNNING', "user": 'root'})

self.nm.node_applications()
request_mock.assert_called_with('/ws/v1/node/apps', params={})
Expand Down
8 changes: 4 additions & 4 deletions tests/test_resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def test_cluster_applications(self, request_mock):
user='root', queue='low', limit=10,
started_time_begin=1, started_time_end=2,
finished_time_begin=3, finished_time_end=4)
request_mock.assert_called_with('/ws/v1/cluster/apps', params={'state': 'KILLED',
'finalStatus': 'FAILED', 'user': 'root', 'queue': 'low',
'limit': 10, 'startedTimeBegin': 1, 'startedTimeEnd': 2,
'finishedTimeBegin': 3, 'finishedTimeEnd': 4})
request_mock.assert_called_with('/ws/v1/cluster/apps', params={'state': 'KILLED', 'finalStatus': 'FAILED',
'user': 'root', 'queue': 'low', 'limit': 10,
'startedTimeBegin': 1, 'startedTimeEnd': 2,
'finishedTimeBegin': 3, 'finishedTimeEnd': 4})

with self.assertRaises(IllegalArgumentError):
self.rm.cluster_applications(state='ololo')
Expand Down
2 changes: 1 addition & 1 deletion yarn_api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
__version__ = '0.3.6.dev'
__version__ = '0.3.6'
__all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager']

from .application_master import ApplicationMaster
Expand Down

0 comments on commit 842e3cc

Please sign in to comment.