Ejemplo n.º 1
0
 def test_create_java_app_env(self):
   app_name = 'foo'
   flexmock(app_manager_server).should_receive('find_web_xml').and_return()
   flexmock(app_manager_server).should_receive('extract_env_vars_from_xml').\
     and_return({})
   env_vars = app_manager_server.create_java_app_env(app_name)
   assert 'appscale' in env_vars['APPSCALE_HOME']
 def test_create_java_app_env(self):
   env_vars = app_manager_server.create_java_app_env()
   assert 'appscale' in env_vars['APPSCALE_HOME']
 def test_create_java_app_env(self):
     app_manager_server.deployment_config = flexmock(
         get_config=lambda x: {})
     app_name = 'foo'
     env_vars = app_manager_server.create_java_app_env(app_name)
     assert 'appscale' in env_vars['APPSCALE_HOME']
Ejemplo n.º 4
0
 def test_create_java_app_env(self):
   app_manager_server.deployment_config = flexmock(get_config=lambda x: {})
   app_name = 'foo'
   env_vars = app_manager_server.create_java_app_env(app_name)
   assert 'appscale' in env_vars['APPSCALE_HOME']
Ejemplo n.º 5
0
 def test_create_java_app_env(self):
     env_vars = app_manager_server.create_java_app_env()
     assert "appscale" in env_vars["APPSCALE_HOME"]