當前位置: 首頁>>代碼示例>>Python>>正文


Python BuildPackAssertHelper.assert_start_script_is_correct方法代碼示例

本文整理匯總了Python中common.components.BuildPackAssertHelper.assert_start_script_is_correct方法的典型用法代碼示例。如果您正苦於以下問題:Python BuildPackAssertHelper.assert_start_script_is_correct方法的具體用法?Python BuildPackAssertHelper.assert_start_script_is_correct怎麽用?Python BuildPackAssertHelper.assert_start_script_is_correct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在common.components.BuildPackAssertHelper的用法示例。


在下文中一共展示了BuildPackAssertHelper.assert_start_script_is_correct方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_with_nginx

# 需要導入模塊: from common.components import BuildPackAssertHelper [as 別名]
# 或者: from common.components.BuildPackAssertHelper import assert_start_script_is_correct [as 別名]
 def test_with_nginx(self):
     # helpers to confirm the environment
     bp = BuildPackAssertHelper()
     nginx = NginxAssertHelper()
     hhvm = HhvmAssertHelper()
     self.opts.set_php_vm('hhvm')
     self.opts.set_web_server('nginx')
     # run the compile step of the build pack
     output = ErrorHelper().compile(self.bp)
     # confirm downloads
     DownloadAssertHelper(2, 2).assert_downloads_from_output(output)
     # confirm start script
     bp.assert_start_script_is_correct(self.build_dir)
     nginx.assert_start_script_is_correct(self.build_dir)
     hhvm.assert_start_script_is_correct(self.build_dir)
     # confirm bp utils installed
     bp.assert_scripts_are_installed(self.build_dir)
     bp.assert_config_options(self.build_dir)
     # check env & proc files
     nginx.assert_contents_of_procs_file(self.build_dir)
     hhvm.assert_contents_of_procs_file(self.build_dir)
     hhvm.assert_contents_of_env_file(self.build_dir)
     # webdir exists
     nginx.assert_web_dir_exists(self.build_dir, self.opts.get_webdir())
     # check hhvm & nginx installed
     nginx.assert_files_installed(self.build_dir)
     hhvm.assert_files_installed(self.build_dir)
     # check for Nginx socket config
     hhvm.assert_server_ini_contains(self.build_dir,
                                     'hhvm.server.file_socket')
     hhvm.assert_server_ini_contains(self.build_dir, 'php-fpm.socket')
開發者ID:BHARATMAHESH,項目名稱:php-buildpack,代碼行數:33,代碼來源:test_compile.py

示例2: test_with_httpd_hhvm_and_newrelic

# 需要導入模塊: from common.components import BuildPackAssertHelper [as 別名]
# 或者: from common.components.BuildPackAssertHelper import assert_start_script_is_correct [as 別名]
 def test_with_httpd_hhvm_and_newrelic(self):
     # helpers to confirm the environment
     bp = BuildPackAssertHelper()
     nr = NewRelicAssertHelper()
     httpd = HttpdAssertHelper()
     hhvm = HhvmAssertHelper()
     # set web server to httpd, since that's what we're expecting here
     self.opts.set_php_vm("hhvm")
     self.opts.set_hhvm_download_url("{DOWNLOAD_URL}/hhvm/{HHVM_VERSION}/{HHVM_PACKAGE}")
     self.opts.set_web_server("httpd")
     # run the compile step of the build pack
     output = ErrorHelper().compile(self.bp)
     # confirm downloads
     DownloadAssertHelper(16, 2).assert_downloads_from_output(output)
     # confirm start script
     bp.assert_start_script_is_correct(self.build_dir)
     httpd.assert_start_script_is_correct(self.build_dir)
     hhvm.assert_start_script_is_correct(self.build_dir)
     # confirm bp utils installed
     bp.assert_scripts_are_installed(self.build_dir)
     bp.assert_config_options(self.build_dir)
     # check env & proc files
     httpd.assert_contents_of_procs_file(self.build_dir)
     httpd.assert_contents_of_env_file(self.build_dir)
     hhvm.assert_contents_of_procs_file(self.build_dir)
     hhvm.assert_contents_of_env_file(self.build_dir)
     # webdir exists
     httpd.assert_web_dir_exists(self.build_dir, self.opts.get_webdir())
     # check php & httpd installed
     httpd.assert_files_installed(self.build_dir)
     hhvm.assert_files_installed(self.build_dir)
     # Test NewRelic should not be installed w/HHVM
     nr.is_not_installed(self.build_dir)
開發者ID:KKraljic,項目名稱:buildpack-php-lucid64,代碼行數:35,代碼來源:test_newrelic.py

示例3: test_with_httpd

# 需要導入模塊: from common.components import BuildPackAssertHelper [as 別名]
# 或者: from common.components.BuildPackAssertHelper import assert_start_script_is_correct [as 別名]
 def test_with_httpd(self):
     # helpers to confirm the environment
     bp = BuildPackAssertHelper()
     httpd = HttpdAssertHelper()
     hhvm = HhvmAssertHelper()
     # set web server to httpd, since that's what we're expecting here
     self.opts.set_php_vm('hhvm')
     self.opts.set_web_server('httpd')
     # run the compile step of the build pack
     output = ErrorHelper().compile(self.bp)
     # confirm downloads
     DownloadAssertHelper(16, 2).assert_downloads_from_output(output)
     # confirm start script
     bp.assert_start_script_is_correct(self.build_dir)
     httpd.assert_start_script_is_correct(self.build_dir)
     hhvm.assert_start_script_is_correct(self.build_dir)
     # confirm bp utils installed
     bp.assert_scripts_are_installed(self.build_dir)
     bp.assert_config_options(self.build_dir)
     # check env & proc files
     httpd.assert_contents_of_procs_file(self.build_dir)
     httpd.assert_contents_of_env_file(self.build_dir)
     hhvm.assert_contents_of_procs_file(self.build_dir)
     hhvm.assert_contents_of_env_file(self.build_dir)
     # webdir exists
     httpd.assert_web_dir_exists(self.build_dir, self.opts.get_webdir())
     # check php & httpd installed
     httpd.assert_files_installed(self.build_dir)
     hhvm.assert_files_installed(self.build_dir)
     # check for Apache TCP port
     hhvm.assert_server_ini_contains(self.build_dir,
                                     'hhvm.server.port = 9000')
開發者ID:BHARATMAHESH,項目名稱:php-buildpack,代碼行數:34,代碼來源:test_compile.py


注:本文中的common.components.BuildPackAssertHelper.assert_start_script_is_correct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。