text: import os
  
  import testinfra.utils.ansible_runner
  
  testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
      os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
  
  
  def test_app_running_and_enabled(host):
      app_service = host.service("test_springboot")
      assert app_service.is_running
      assert app_service.is_enabled
  
  
  def test_app_listening(host):
      assert host.socket("tcp://0.0.0.0:8085").is_listening
  
  
  def test_app_response(host):
      resp = host.run("curl -d 'Francis' -X POST localhost:8085").stdout
      assert "Hello Francis" in resp
  