def on_service_install():
    '''This method will run only once - when the service is installed through Ambari.
  
  Fill in this method with any necessary one-time commands to set up the environment before starting the demo.
  
  Note this method will only be run **after** the demo has run its setup commands. This method will always be the last thing to be run before starting the service.
  '''
    print 'Running on_service_install'

    #  service_installer.install_nifi()
    service_installer.add_zeppelin_notebooks()
    service_installer.add_nifi_templates()

    pass
예제 #2
0
def on_service_install():
  '''This method will run only once - when the service is installed through Ambari.
  
  Fill in this method with any necessary one-time commands to set up the environment before starting the demo.
  
  Note this method will only be run **after** the demo has run its setup commands. This method will always be the last thing to be run before starting the service.
  '''
  print 'Running on_service_install'
  
#  service_installer.install_nifi()
  service_installer.add_zeppelin_notebooks()
  service_installer.add_nifi_templates()
  
  
  
  
  pass
  def test_mixed_response(self, mock1, mock2, mock3):
    assert (not service_installer.add_nifi_templates())
    
  

    
    
      
      
 def test_bad(self, mock1, mock2, mock3):
   assert (not service_installer.add_nifi_templates())
 def test_mixed_response(self, mock1, mock2, mock3):
     assert (not service_installer.add_nifi_templates())
 def test_bad(self, mock1, mock2, mock3):
     assert (not service_installer.add_nifi_templates())