diff --git a/system/requirements.txt b/system/requirements.txt index 39b43f156..3d4be24f8 100644 --- a/system/requirements.txt +++ b/system/requirements.txt @@ -1,5 +1,5 @@ boto -requests==2.28.2 +requests requests-unixsocket python-swiftclient flake8 diff --git a/system/t12_api/unix_socket.py b/system/t12_api/unix_socket.py index b14fe9465..49bd4442f 100644 --- a/system/t12_api/unix_socket.py +++ b/system/t12_api/unix_socket.py @@ -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']})