fix: ID param for DELETE ssh_tunnel endpoint (#27130)

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
This commit is contained in:
Geido
2024-02-15 22:09:51 +02:00
committed by GitHub
parent eabee9dedd
commit 7c7deb960d
3 changed files with 14 additions and 5 deletions

View File

@@ -458,7 +458,9 @@ def test_delete_ssh_tunnel(
assert 1 == response_tunnel.database_id
# Delete the recently created SSHTunnel
response_delete_tunnel = client.delete("/api/v1/database/1/ssh_tunnel/")
response_delete_tunnel = client.delete(
f"/api/v1/database/{database.id}/ssh_tunnel/"
)
assert response_delete_tunnel.json["message"] == "OK"
response_tunnel = DatabaseDAO.get_ssh_tunnel(1)