old_contents: import os
  import osgtest.library.core as core
  import osgtest.library.files as files
  import osgtest.library.osgunittest as osgunittest
  import osgtest.library.service as service
  
  class TestStartGridFTP(osgunittest.OSGTestCase):
  
  
      def test_01_configure_lcmaps_voms(self):
          if core.osg_release() < 3.4:
              return
  
          core.skip_ok_unless_installed('globus-gridftp-server-progs', 'lcmaps-plugins-voms')
          core.config['gridftp.env'] = '/etc/sysconfig/globus-gridftp-server'
          files.append(core.config['gridftp.env'],
                       '''export LLGT_VOMS_ENABLE_CREDENTIAL_CHECK=1
  export LCMAPS_DEBUG_LEVEL=5''',
                       owner='gridftp')
      
      def test_02_configure_hdfs_gridftp(self):
          core.skip_ok_unless_installed('globus-gridftp-server-progs', 'hadoop-hdfs')
          core.config['automated-tests-gridftp.conf'] = '/etc/gridftp.d/automated-tests.conf'
          file_contents = "$GRIDFTP_HDFS_MOUNT_POINT /"
          files.write(core.config['automated-tests-gridftp.conf'],
                      file_contents, 'root')
                      
      def test_03_start_gridftp(self):
          core.state['gridftp.started-server'] = False
          core.state['gridftp.running-server'] = False
  
          core.skip_ok_unless_installed('globus-gridftp-server-progs')
          if service.is_running('globus-gridftp-server'):
              core.state['gridftp.running-server'] = True
              return
  
          service.check_start('globus-gridftp-server')
          core.state['gridftp.running-server'] = True
          core.state['gridftp.started-server'] = True
  
new_contents: import os
  import osgtest.library.core as core
  import osgtest.library.files as files
  import osgtest.library.osgunittest as osgunittest
  import osgtest.library.service as service
  
  class TestStartGridFTP(osgunittest.OSGTestCase):
  
  
      def test_01_configure_lcmaps_voms(self):
          if core.osg_release() < 3.4:
              return
  
          core.skip_ok_unless_installed('globus-gridftp-server-progs', 'lcmaps-plugins-voms')
          core.config['gridftp.env'] = '/etc/sysconfig/globus-gridftp-server'
          files.append(core.config['gridftp.env'],
                       '''export LLGT_VOMS_ENABLE_CREDENTIAL_CHECK=1
  export LCMAPS_DEBUG_LEVEL=5''',
                       owner='gridftp')
      
      def test_02_configure_hdfs_gridftp(self):
          core.skip_ok_unless_installed('globus-gridftp-server-progs', 'hadoop-hdfs')
          #core.config['automated-tests-gridftp.conf'] = '/etc/gridftp.d/automated-tests.conf'
          #file_contents = "$GRIDFTP_HDFS_MOUNT_POINT /etc"
          #files.write(core.config['automated-tests-gridftp.conf'], file_contents, 'root')
                      
      def test_03_start_gridftp(self):
          core.state['gridftp.started-server'] = False
          core.state['gridftp.running-server'] = False
  
          core.skip_ok_unless_installed('globus-gridftp-server-progs')
          if service.is_running('globus-gridftp-server'):
              core.state['gridftp.running-server'] = True
              return
  
          service.check_start('globus-gridftp-server')
          core.state['gridftp.running-server'] = True
          core.state['gridftp.started-server'] = True
  
subject: test without hdfs config