Skip to content

Commit

Permalink
Merge pull request #141 from ARGOeu/devel
Browse files Browse the repository at this point in the history
release 0.5.7
  • Loading branch information
themiszamani authored Jul 26, 2022
2 parents 7be4d7c + e34ca09 commit cced055
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.5.7] - 2022-06-22

### Fixed

AM-249 ams-library: bug fix regarding sub and topic acl methods #137

## [0.5.6] - 2022-06-21

### Added
Expand Down
4 changes: 3 additions & 1 deletion argo-ams-library.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Name: argo-ams-library
Summary: %{sum}
Version: 0.5.6
Version: 0.5.7
Release: 1%{?dist}

Group: Development/Libraries
Expand Down Expand Up @@ -95,6 +95,8 @@ rm -rf %{buildroot}


%changelog
* Wed Jun 22 2022 agelostsal <[email protected]> - 0.5.7-1%{?dist}
- AM-249 ams-library: bug fix regarding sub and topic acl methods
* Tue Jun 21 2022 agelostsal <[email protected]> - 0.5.6-1%{?dist}
- AM-233 ams-library: support for project_member_get api call
- AM-230 ams-library: support for project_member_add api call
Expand Down
9 changes: 4 additions & 5 deletions pymod/ams.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def getacl_topic(self, topic, **reqkwargs):
python-requests library call.
"""

topicobj = self.get_topic(topic, retobj=True)
topicobj = self.get_topic(topic, retobj=True, **reqkwargs)

route = self.routes["topic_getacl"]
# Compose url
Expand Down Expand Up @@ -511,7 +511,7 @@ def modifyacl_topic(self, topic, users, **reqkwargs):
python-requests library call.
"""

topicobj = self.get_topic(topic, retobj=True)
topicobj = self.get_topic(topic, retobj=True, **reqkwargs)

route = self.routes["topic_modifyacl"]
# Compose url
Expand Down Expand Up @@ -542,7 +542,7 @@ def getacl_sub(self, sub, **reqkwargs):
python-requests library call.
"""

subobj = self.get_sub(sub, retobj=True)
subobj = self.get_sub(sub, retobj=True, **reqkwargs)

route = self.routes["sub_getacl"]
# Compose url
Expand Down Expand Up @@ -654,7 +654,7 @@ def modifyacl_sub(self, sub, users, **reqkwargs):
python-requests library call.
"""

subobj = self.get_sub(sub, retobj=True)
subobj = self.get_sub(sub, retobj=True, **reqkwargs)

route = self.routes["sub_modifyacl"]
# Compose url
Expand Down Expand Up @@ -1115,7 +1115,6 @@ def add_project_member(self, username, project=None, roles=None, **reqkwargs):
project = self.project

body = {
"project": project,
"roles": roles
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ def get_ver():
url='https://github.com/ARGOeu/argo-ams-library',
package_dir={'argo_ams_library': 'pymod/'},
packages=['argo_ams_library'],
install_requires=['requests']
install_requires=['requests==2.20']
)
1 change: 0 additions & 1 deletion tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def testAddMember(self):
def add_member_mock(url, request):
self.assertEqual("/v1/projects/test-proj/members/test-member:add", url.path)
self.assertEqual("POST", request.method)
self.assertTrue('"project": "test-proj"' in request.body)
self.assertTrue('"roles": ["consumer"]' in request.body)
return response(200, self.member_json, None, None, 5, request)

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deps = coverage==4.5.4
pytest
httmock
mock
requests0: requests
requests0: requests==2.20
requests2123: requests==2.12.3
requests260: requests==2.6.0
requests2125: requests==2.12.5
Expand Down

0 comments on commit cced055

Please sign in to comment.