Skip to content

Commit

Permalink
Fix: Remove requests version from requirements that was outdated.
Browse files Browse the repository at this point in the history
  • Loading branch information
reglim committed Sep 14, 2023
1 parent 157685a commit d11b508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
boto
requests==2.28.2
requests
requests-unixsocket
python-swiftclient
flake8
Expand Down
3 changes: 2 additions & 1 deletion system/t12_api/unix_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def run(self):
"""
def check(self):
session = requests_unixsocket.Session()
r = session.get('http+unix://%s/api/version' % urllib.parse.quote(UnixSocketAPITest.socket_path, safe=''))
parsed = urllib.parse.quote(self.socket_path, safe='')
r = session.get(f'http+unix://{parsed}/api/version')
# Just needs to come back, we actually don't care much about the code.
# Only needs to verify that the socket is actually responding.
self.check_equal(r.json(), {'Version': os.environ['APTLY_VERSION']})

0 comments on commit d11b508

Please sign in to comment.