Example #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())
 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())
Example #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'))
Example #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"'))
Example #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'))
Example #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'))
Example #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
Example #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'))
 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())
Example #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'))
Example #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'))
Example #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"'))
Example #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'))
Example #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'))
Example #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
 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'))
 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'))
Example #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'))
Example #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'))
Example #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())
Example #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'))
Example #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())
Example #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())
Example #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'))
 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'))
Example #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'))
 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'))
 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'))
Example #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'))
Example #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())
Example #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'))
 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'))
Example #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())
Example #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}'))
Example #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'))
Example #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())
Example #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())
Example #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()
     )
Example #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())
Example #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())
Example #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'))
Example #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'))
Example #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())
Example #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}'))
 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'))
 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'))
Example #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())
Example #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())
Example #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'))
 def testProfileDNotOverridden(self):
     ErrorHelper().compile(self.bp)
     fah = FileAssertHelper()
     fah.expect().path(self.build_dir, '.profile.d',
                       'dontdelete.sh').exists()
Example #51
0
 def assert_config_options(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, '.bp-config', 'options.json')
         .exists())
Example #52
0
 def testProfileDNotOverridden(self):
     ErrorHelper().compile(self.bp)
     fah = FileAssertHelper()
     fah.expect().path(self.build_dir, '.profile.d',
                       'finalize_dontdelete.sh').exists()
Example #53
0
 def assert_web_dir_exists(self, build_dir, web_dir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, web_dir).exists())
Example #54
0
 def assert_no_web_dir(self, build_dir, webdir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, webdir).does_not_exist())
Example #55
0
 def is_not_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, 'newrelic').does_not_exist())
Example #56
0
 def is_not_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, 'newrelic')
         .does_not_exist())
Example #57
0
 def assert_config_options(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect().path(build_dir, '.bp-config', 'options.json').exists())
Example #58
0
 def assert_no_web_dir(self, build_dir, webdir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, webdir)
         .does_not_exist())
Example #59
0
 def assert_web_dir_exists(self, build_dir, web_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, web_dir)
         .exists())
Example #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())