예제 #1
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().root(build_dir, 'php').path('etc', 'php.ini')  # noqa
      .path('bin', 'php').path('bin', 'phar.phar').root(
          build_dir, 'php', 'lib', 'php', 'extensions',
          'no-debug-non-zts-20100525').path('bz2.so').path('zlib.so').path(
              'curl.so').path('mcrypt.so').exists())
예제 #2
0
 def assert_app6_specifics(self):
     fah = FileAssertHelper()
     (fah.expect().root(self.build_dir).path('public')  # noqa
      .path('public',
            'index.php').path('public', 'info.php').path('vendor').path(
                'vendor', 'lib.php').path('.bp-config',
                                          'options.json').exists())
예제 #3
0
 def assert_contents_of_env_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d', 'bp_env_vars.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(
         build_dir, '.profile.d', 'bp_env_vars.sh').any_line().equals(
             'export [email protected]\n'))
예제 #4
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d/finalize_rewrite.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(
         build_dir, '.profile.d/finalize_rewrite.sh').any_line().contains(
             '$HOME/.bp/bin/rewrite "$HOME/httpd/conf"'))
예제 #5
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, 'start.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, 'start.sh').line(0).equals(
         'export PYTHONPATH=$HOME/.bp/lib\n')  # noqa
      .line(-1).equals('$HOME/.bp/bin/start'))
예제 #6
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, '.procs').any_line().equals(
         'nginx: $HOME/nginx/sbin/nginx -c '  # noqa
         '"$HOME/nginx/conf/nginx.conf"\n'))
예제 #7
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d/finalize_rewrite.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(
         build_dir, '.profile.d/finalize_rewrite.sh').line(0).contains(
             'export PYTHONPATH=$HOME/.bp/lib'))  # noqa
예제 #8
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, '.procs').any_line().equals(
         'php-fpm: $HOME/php/sbin/php-fpm -p '  # noqa
         '"$HOME/php/etc" -y "$HOME/php/etc/php-fpm.conf"'
         ' -c "$HOME/php/etc"\n'))
예제 #9
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().root(build_dir, 'php').path('etc',
                                               'php-fpm.conf')  # noqa
      .path('etc', 'php.ini').path('sbin', 'php-fpm').path('bin').root(
          build_dir, 'php', 'lib', 'php', 'extensions',
          'no-debug-non-zts-20170718').path('bz2.so').path('zlib.so').path(
              'curl.so').exists())
예제 #10
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, '.procs').any_line().equals(
         'httpd: $HOME/httpd/bin/apachectl -f '  # noqa
         '"$HOME/httpd/conf/httpd.conf" -k start '
         '-DFOREGROUND\n'))
예제 #11
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, 'start.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, 'start.sh').any_line().equals(
         '$HOME/.bp/bin/rewrite "$HOME/hhvm/etc"\n').equals(
             'hhvm() { $HOME/hhvm/usr/bin/hhvm '
             '-c "$HOME/hhvm/etc/php.ini" "$@"; }\n'))
예제 #12
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d/rewrite.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.profile.d/rewrite.sh')
         .any_line()
         .contains('$HOME/.bp/bin/rewrite "$HOME/php/etc"'))
예제 #13
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.procs')
         .line(0)
         .equals('php-app: $HOME/php/bin/php -c "$HOME/php/etc" app.php\n'))
예제 #14
0
 def assert_contents_of_env_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d', 'bp_env_vars.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.profile.d', 'bp_env_vars.sh')
         .any_line()
         .equals('export [email protected]\n'))
예제 #15
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d/rewrite.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.profile.d/rewrite.sh')
         .line(0)
             .contains('export PYTHONPATH=$HOME/.bp/lib'))  # noqa
예제 #16
0
 def assert_contents_of_env_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.env').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, '.env').any_line().equals(
         'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'
         '$HOME/hhvm/usr/lib/hhvm\n').equals(
             'export PATH=$PATH:$HOME/hhvm/usr/bin\n'))
예제 #17
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, 'start.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'start.sh')
         .any_line()
         .equals('$HOME/.bp/bin/rewrite "$HOME/nginx/conf"\n'))
예제 #18
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.procs')
         .line(0)
         .equals('php-app: $HOME/php/bin/php -c "$HOME/php/etc" app.php\n'))
예제 #19
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, '.procs').any_line().equals(
         'hhvm: $HOME/hhvm/usr/bin/hhvm --mode server '  # noqa
         '-c $HOME/hhvm/etc/server.ini '
         '-c $HOME/hhvm/etc/php.ini\n'))
예제 #20
0
 def assert_scripts_are_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, '.bp', 'bin', 'rewrite')
         .root(build_dir, '.bp', 'lib', 'build_pack_utils')
             .directory_count_equals(18)  # noqa
             .path('utils.py')
             .path('process.py')
         .exists())
예제 #21
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.procs')
         .any_line()
             .equals('nginx: $HOME/nginx/sbin/nginx -c '  # noqa
                     '"$HOME/nginx/conf/nginx.conf"\n'))
예제 #22
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().root(build_dir, 'php').path('etc',
                                               'php-fpm.conf')  # noqa
      .path('etc', 'php.ini').path('sbin', 'php-fpm').path('bin').root(
          build_dir, 'php', 'lib', 'php', 'extensions',
          'no-debug-non-zts-20131226')  # this timestamp is PHP5.6 specific
      .path('bz2.so').path('zlib.so').path('curl.so').path(
          'mcrypt.so').exists())
예제 #23
0
 def assert_scripts_are_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, '.bp', 'bin', 'rewrite')
         .root(build_dir, '.bp', 'lib', 'build_pack_utils')
             .directory_count_equals(18)  # noqa
             .path('utils.py')
             .path('process.py')
         .exists())
예제 #24
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.procs')
         .any_line()
             .equals('hhvm: $HOME/hhvm/usr/bin/hhvm --mode server '  # noqa
                     '-c $HOME/hhvm/etc/server.ini '
                     '-c $HOME/hhvm/etc/php.ini\n'))
예제 #25
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, 'start.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'start.sh')
         .line(0)
             .equals('export PYTHONPATH=$HOME/.bp/lib\n')  # noqa
         .line(-1)
             .equals('$HOME/.bp/bin/start'))
예제 #26
0
 def assert_contents_of_env_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d', 'bp_env_vars.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.profile.d', 'bp_env_vars.sh')
         .any_line()
         .equals('export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'
                 '$HOME/hhvm/usr/lib/hhvm\n')
         .equals('export PATH=$PATH:$HOME/hhvm/usr/bin\n'))
예제 #27
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, 'start.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'start.sh')
         .any_line()
         .equals('$HOME/.bp/bin/rewrite "$HOME/hhvm/etc"\n')
         .equals('hhvm() { $HOME/hhvm/usr/bin/hhvm '
                 '-c "$HOME/hhvm/etc/php.ini" "$@"; }\n'))
예제 #28
0
 def assert_contents_of_env_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.env').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, '.env').any_line().equals(
         'export '
         'PATH=$PATH:$HOME/php/bin:$HOME/php/sbin\n')  # noqa
      .equals('export '
              'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/php/lib\n').equals(
                  'export PHPRC=$HOME/php/etc\n'))
예제 #29
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.procs')
         .any_line()
             .equals('php-fpm: $HOME/php/sbin/php-fpm -p '  # noqa
                     '"$HOME/php/etc" -y "$HOME/php/etc/php-fpm.conf"'
                     ' -c "$HOME/php/etc"\n'))
예제 #30
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().root(build_dir, 'hhvm').path('usr', 'bin',
                                                'hhvm')  # noqa
      .root(build_dir, 'hhvm', 'usr', 'lib', 'hhvm',
            reset=True).path('libboost_program_options.so.1.55.0').
      path('libevent-2.0.so.5').path('libicuuc.so.48').path(
          'libjemalloc.so.1').path('libcurl.so.4').path('libicudata.so.48').
      path('libMagickWand-6.Q16.so.2').path('libonig.so.2').path(
          'libmcrypt.so.4').path('libstdc++.so.6').exists())
예제 #31
0
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.procs')
         .any_line()
             .equals('httpd: $HOME/httpd/bin/apachectl -f '  # noqa
                     '"$HOME/httpd/conf/httpd.conf" -k start '
                     '-DFOREGROUND\n'))
예제 #32
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().root(build_dir, 'newrelic')  # noqa
      .path('daemon',
            'newrelic-daemon.x64').path('agent', 'x64',
                                        'newrelic-20170718.so').exists())
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, 'php', 'etc', 'php.ini').any_line(
     ).startswith('extension=@{HOME}/newrelic/agent/x64/newrelic').equals(
         '[newrelic]\n').equals('newrelic.license=@{NEWRELIC_LICENSE}\n').
      equals('newrelic.appname=app-name-1\n'))
예제 #33
0
 def assert_app6_specifics(self):
     fah = FileAssertHelper()
     (fah.expect()
         .root(self.build_dir)
             .path('public')  # noqa
             .path('public', 'index.php')
             .path('public', 'info.php')
             .path('vendor')
             .path('vendor', 'lib.php')
             .path('.bp-config', 'options.json')
         .exists())
예제 #34
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().root(build_dir, 'nginx').path('logs')  # noqa
      .path('sbin', 'nginx').root(
          build_dir, 'nginx', 'conf').directory_count_equals(10).path(
              'fastcgi_params').path('http-logging.conf').path(
                  'http-defaults.conf').path('http-php.conf').exists())
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, 'nginx', 'conf',
                            'http-php.conf').any_line().does_not_contain(
                                '#{PHP_FPM_LISTEN}')  # noqa
      .does_not_contain('{TMPDIR}'))
예제 #35
0
 def assert_contents_of_env_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d', 'bp_env_vars.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.profile.d', 'bp_env_vars.sh')
         .any_line()
             .equals('export '
                     'PATH=$PATH:$HOME/php/bin:$HOME/php/sbin\n')  # noqa
             .equals('export '
                     'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/php/lib\n')
             .equals('export PHPRC=$HOME/php/etc\n'))
예제 #36
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'php')
             .path('etc', 'php-fpm.conf')  # noqa
             .path('etc', 'php.ini')
             .path('sbin', 'php-fpm')
             .path('bin')
             .root(build_dir, 'php', 'lib', 'php', 'extensions','no-debug-non-zts-20190902') # this should match defaults/config/php/<DEFAULT VERSION>/php.ini extensions_dir value
             .path('bz2.so')
             .path('zlib.so')
             .path('curl.so')
         .exists())
예제 #37
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().root(build_dir, 'httpd',
                        'conf').path('httpd.conf')  # noqa
      .root('extra').path('httpd-modules.conf')  # noqa
      .path('httpd-remoteip.conf').root(
          build_dir, 'httpd', 'modules',
          reset=True).path('mod_authz_core.so').path('mod_authz_host.so').
      path('mod_dir.so').path('mod_env.so').path('mod_log_config.so').path(
          'mod_mime.so').path('mod_mpm_event.so').path('mod_proxy.so').path(
              'mod_proxy_fcgi.so').path('mod_reqtimeout.so').path(
                  'mod_unixd.so').path('mod_remoteip.so').path(
                      'mod_rewrite.so').exists())
예제 #38
0
 def assert_app6_specifics(self):
     fah = FileAssertHelper()
     (
         fah.expect()
         .root(self.build_dir)
         .path("public")  # noqa
         .path("public", "index.php")
         .path("public", "info.php")
         .path("vendor")
         .path("vendor", "lib.php")
         .path(".bp-config", "options.json")
         .exists()
     )
예제 #39
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'php')
             .path('etc', 'php.ini')  # noqa
             .path('bin', 'php')
             .path('bin', 'phar.phar')
         .root(build_dir, 'php', 'lib', 'php', 'extensions',
               'no-debug-non-zts-20100525')
             .path('bz2.so')
             .path('zlib.so')
             .path('curl.so')
             .path('mcrypt.so')
         .exists())
예제 #40
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'php')
             .path('etc', 'php-fpm.conf')  # noqa
             .path('etc', 'php.ini')
             .path('sbin', 'php-fpm')
             .path('bin')
         .root(build_dir, 'php', 'lib', 'php', 'extensions',
               'no-debug-non-zts-20121212') # this timestamp is PHP5.5 specific
             .path('bz2.so')
             .path('zlib.so')
             .path('curl.so')
             .path('mcrypt.so')
         .exists())
예제 #41
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'appdynamics')  # noqa
             .path('daemon', 'appdynamics-daemon.x64')
             .path('agent', 'x64', 'appdynamics-20121212.so')
         .exists())
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'php', 'etc', 'php.ini')
         .any_line()
         .equals(
             'extension=@{HOME}/appdynamics/agent/x64/appdynamics-20121212.so\n')
         .equals('[appdynamics]\n')
         .equals('appdynamics.license=JUNK_LICENSE\n')
         .equals('appdynamics.appname=app-name-1\n'))
예제 #42
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'newrelic')  # noqa
             .path('daemon', 'newrelic-daemon.x64')
             .path('agent', 'x64', 'newrelic-20100525.so')
         .exists())
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'php', 'etc', 'php.ini')
         .any_line()
         .equals(
             'extension=@{HOME}/newrelic/agent/x64/newrelic-20100525.so\n')
         .equals('[newrelic]\n')
         .equals('newrelic.license=JUNK_LICENSE\n')
         .equals('newrelic.appname=app-name-1\n'))
예제 #43
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'hhvm')
             .path('usr', 'bin', 'hhvm')  # noqa
         .root(build_dir, 'hhvm', 'usr', 'lib', 'hhvm', reset=True)
             .path('libboost_program_options.so.1.55.0')
             .path('libevent-2.0.so.5')
             .path('libicuuc.so.48')
             .path('libjemalloc.so.1')
             .path('libcurl.so.4')
             .path('libicudata.so.48')
             .path('libMagickWand-6.Q16.so.2')
             .path('libonig.so.2')
             .path('libmcrypt.so.4')
             .path('libstdc++.so.6')
         .exists())
예제 #44
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'nginx')
             .path('logs')  # noqa
             .path('sbin', 'nginx')
         .root(build_dir, 'nginx', 'conf')
             .directory_count_equals(10)
             .path('fastcgi_params')
             .path('http-logging.conf')
             .path('http-defaults.conf')
             .path('http-php.conf')
         .exists())
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'nginx', 'conf', 'http-php.conf')
         .any_line()
             .does_not_contain('#{PHP_FPM_LISTEN}')  # noqa
             .does_not_contain('{TMPDIR}'))
예제 #45
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().root(build_dir, 'codizy', 'client',
                        'application').path('setup.php')  # noqa
      .path('class', 'Codizy_utils.php').root(
          build_dir,
          'php',
          'lib',
          'php',
          'extensions',
          'no-debug-non-zts-20100525',
          reset=True).path('xhprof.so').path('ioncube.so').path(
              'codizy.so').path('curl.so').path('gettext.so').path(
                  'mbstring.so').path('openssl.so').exists())
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(
         build_dir, 'php', 'etc', 'php.ini').any_line().equals(
             'auto_prepend_file = '
             '@{HOME}/codizy/client/application/setup.php\n'))
예제 #46
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'codizy', 'client', 'application')
             .path('setup.php')  # noqa
             .path('class', 'Codizy_utils.php')
         .root(build_dir, 'php', 'lib', 'php', 'extensions',
               'no-debug-non-zts-20100525', reset=True)
             .path('xhprof.so')
             .path('ioncube.so')
             .path('codizy.so')
             .path('curl.so')
             .path('gettext.so')
             .path('mbstring.so')
             .path('openssl.so')
         .exists())
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'php', 'etc', 'php.ini')
         .any_line()
         .equals('auto_prepend_file = '
                 '@{HOME}/codizy/client/application/setup.php\n'))
예제 #47
0
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'httpd', 'conf')
             .path('httpd.conf')  # noqa
             .root('extra')
                 .path('httpd-modules.conf')  # noqa
                 .path('httpd-remoteip.conf')
         .root(build_dir, 'httpd', 'modules', reset=True)
             .path('mod_authz_core.so')
             .path('mod_authz_host.so')
             .path('mod_dir.so')
             .path('mod_env.so')
             .path('mod_log_config.so')
             .path('mod_mime.so')
             .path('mod_mpm_event.so')
             .path('mod_proxy.so')
             .path('mod_proxy_fcgi.so')
             .path('mod_reqtimeout.so')
             .path('mod_unixd.so')
             .path('mod_remoteip.so')
             .path('mod_rewrite.so')
         .exists())
예제 #48
0
 def assert_no_web_server_is_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, 'httpd').path(build_dir,
                                                 'nginx').does_not_exist())
예제 #49
0
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, 'start.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect().on_file(build_dir, 'start.sh').any_line().equals(
         '$HOME/.bp/bin/rewrite "$HOME/httpd/conf"\n'))
예제 #50
0
 def testProfileDNotOverridden(self):
     ErrorHelper().compile(self.bp)
     fah = FileAssertHelper()
     fah.expect().path(self.build_dir, '.profile.d',
                       'dontdelete.sh').exists()
예제 #51
0
 def assert_config_options(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, '.bp-config', 'options.json')
         .exists())
예제 #52
0
 def testProfileDNotOverridden(self):
     ErrorHelper().compile(self.bp)
     fah = FileAssertHelper()
     fah.expect().path(self.build_dir, '.profile.d',
                       'finalize_dontdelete.sh').exists()
예제 #53
0
 def assert_web_dir_exists(self, build_dir, web_dir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, web_dir).exists())
예제 #54
0
 def assert_no_web_dir(self, build_dir, webdir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, webdir).does_not_exist())
예제 #55
0
 def is_not_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, 'newrelic').does_not_exist())
예제 #56
0
 def is_not_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, 'newrelic')
         .does_not_exist())
예제 #57
0
 def assert_config_options(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, '.bp-config', 'options.json').exists())
예제 #58
0
 def assert_no_web_dir(self, build_dir, webdir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, webdir)
         .does_not_exist())
예제 #59
0
 def assert_web_dir_exists(self, build_dir, web_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, web_dir)
         .exists())
예제 #60
0
 def assert_no_web_server_is_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, 'httpd')
         .path(build_dir, 'nginx')
         .does_not_exist())