software/caddy-frontend/test: use resource.Session as context manager

this prevents ResourceWarning because this way the sockets are closed
1 job for 1.0
Status Job ID Name Coverage
  External
failed SlapOS.SoftwareReleases.IntegrationTest-Master.Python3