Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Num Num Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad Call NameLoad attr attr TupleLoad Str Call AttributeLoad Str attr ListLoad Str Str Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr TupleLoad Num Num Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad Str ListLoad ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Call NameLoad ListLoad Str Str ListLoad ListLoad Str Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad ListLoad ListLoad Str ListLoad ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Assign NameStore Call NameLoad ListLoad Str Str Str Assign NameStore Call NameLoad ListLoad Str Str Assign NameStore Call NameLoad ListLoad Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad Expr Call AttributeLoad NameLoad attr ListLoad ListLoad ListLoad Str ListLoad ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad ListLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad ListLoad Str ListLoad ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad ListLoad Str Str ListLoad ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Call AttributeLoad NameLoad attr Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Call AttributeLoad NameLoad attr Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad Call NameLoad attr attr TupleLoad Str Call AttributeLoad Str attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Assign AttributeStore AttributeLoad Call NameLoad attr attr TupleLoad Str Call AttributeLoad Str attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Assign AttributeStore AttributeLoad Call NameLoad attr attr TupleLoad Str Call AttributeLoad Str attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad Call NameLoad attr attr TupleLoad Str Call AttributeLoad Str attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad Call NameLoad attr attr TupleLoad Str Call AttributeLoad Str attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad Call NameLoad attr attr TupleLoad Str Call AttributeLoad Str attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str Str Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str Str Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ListLoad Str Str ListLoad ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Test for certbot_nginx.configurator. N/A os N/A shutil N/A unittest N/A mock N/A OpenSSL acme challenges acme messages certbot achallenges certbot errors certbot_nginx.tests util NginxConfiguratorTest N/A N/A util NginxTest N/A N/A Test a semi complex vhost configuration. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super NginxConfiguratorTest self setUp N/A N/A self config N/A N/A util get_nginx_configurator N/A self config_path N/A self config_dir N/A self work_dir N/A tearDown N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self temp_dir N/A N/A N/A shutil rmtree N/A self config_dir N/A N/A N/A shutil rmtree N/A self work_dir N/A test_prepare_no_install N/A N/A self mock_exe_exists N/A N/A N/A N/A mock_exe_exists return_value False N/A N/A N/A self assertRaises N/A errors NoInstallationError N/A N/A self config prepare N/A N/A N/A mock patch certbot_nginx.configurator.le_util.exe_exists test_prepare N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A 1 6 2 N/A N/A self config version N/A N/A N/A self assertEquals 5 N/A len N/A N/A N/A self config parser parsed N/A test_prepare_initializes_version N/A N/A self mock_popen mock_exe_exists N/A N/A N/A N/A N/A N/A mock_popen communicate return_value N/A N/A N/A join N/A nginx version: nginx/1.6.2 built by clang 6.0 (clang-600.0.56) (based on LLVM 3.5svn) TLS SNI support enabled configure arguments: --prefix=/usr/local/Cellar/nginx/1.6.2 --with-http_ssl_module N/A N/A mock_exe_exists return_value True N/A N/A N/A self config version None N/A N/A N/A self config config_test N/A N/A mock Mock N/A N/A N/A N/A self config prepare N/A N/A N/A self assertEquals N/A 1 6 2 N/A N/A self config version N/A N/A N/A mock patch certbot_nginx.configurator.le_util.exe_exists N/A N/A mock patch certbot_nginx.configurator.subprocess.Popen test_get_all_names N/A N/A self mock_gethostbyaddr N/A N/A N/A N/A mock_gethostbyaddr return_value N/A 155.225.50.69.nephoscale.net N/A N/A N/A names N/A N/A N/A self config get_all_names N/A N/A N/A self assertEqual names N/A set N/A *.www.foo.com somename another.alias alias localhost .example.com ~^(www\.)?(example|bar)\. 155.225.50.69.nephoscale.net *.www.example.com example.* www.example.org myhost N/A N/A N/A mock patch certbot_nginx.configurator.socket.gethostbyaddr test_supported_enhancements N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A redirect N/A N/A N/A self config supported_enhancements N/A test_enhance N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config enhance myhost unknown_enhancement N/A test_get_chall_pref N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A challenges TLSSNI01 N/A N/A N/A self config get_chall_pref myhost N/A test_save N/A N/A self N/A N/A N/A filep N/A N/A N/A N/A self config parser abs_path sites-enabled/example.com N/A N/A N/A N/A N/A self config parser add_server_directives filep N/A set N/A .example.com example.* N/A N/A listen 5001 ssl replace False N/A N/A N/A N/A self config save N/A parsed N/A N/A N/A N/A self config parser _parse_files filep override True N/A N/A N/A self assertEqual N/A N/A N/A server N/A N/A listen 69.50.225.155:9000 N/A listen 127.0.0.1 N/A server_name .example.com N/A server_name example.* N/A listen 5001 ssl N/A parsed N/A 0 N/A test_choose_vhost N/A N/A self N/A N/A N/A localhost_conf N/A set N/A localhost ~^(www\.)?(example|bar)\. N/A server_conf N/A set N/A somename another.alias alias N/A example_conf N/A set N/A .example.com example.* N/A foo_conf N/A set N/A *.www.foo.com *.www.example.com N/A results N/A localhost alias example.com example.com.uk.test www.example.com test.www.example.com abc.www.foo.com www.bar.co.uk localhost_conf server_conf example_conf example_conf example_conf foo_conf foo_conf localhost_conf N/A conf_path N/A localhost alias example.com example.com.uk.test www.example.com test.www.example.com abc.www.foo.com www.bar.co.uk etc_nginx/nginx.conf etc_nginx/nginx.conf etc_nginx/sites-enabled/example.com etc_nginx/sites-enabled/example.com etc_nginx/sites-enabled/example.com etc_nginx/foo.conf etc_nginx/foo.conf etc_nginx/nginx.conf N/A bad_results N/A www.foo.com example t.www.bar.co 69.255.225.155 N/A name results N/A N/A vhost N/A N/A N/A self config choose_vhost name N/A path N/A N/A N/A os path relpath N/A vhost filep N/A self temp_dir N/A N/A N/A self assertEqual N/A results N/A name N/A vhost names N/A N/A N/A self assertEqual N/A conf_path N/A name path N/A name bad_results N/A N/A N/A N/A self assertEqual N/A set N/A name N/A N/A N/A N/A self config choose_vhost name names N/A test_more_info N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A nginx.conf N/A N/A N/A self config more_info N/A test_deploy_cert_stapling N/A N/A self N/A N/A N/A N/A N/A self config version N/A 1 9 6 N/A example_conf N/A N/A N/A N/A self config parser abs_path sites-enabled/example.com N/A N/A N/A N/A self config deploy_cert www.example.com example/cert.pem example/key.pem example/chain.pem example/fullchain.pem N/A N/A N/A N/A self config save N/A N/A N/A N/A N/A self config parser load N/A generated_conf N/A N/A N/A N/A self config parser parsed N/A example_conf N/A N/A N/A self assertTrue N/A N/A util contains_at_depth generated_conf N/A ssl_stapling on 2 N/A N/A N/A self assertTrue N/A N/A util contains_at_depth generated_conf N/A ssl_stapling_verify on 2 N/A N/A N/A self assertTrue N/A N/A util contains_at_depth generated_conf N/A ssl_trusted_certificate example/chain.pem 2 N/A test_deploy_cert_stapling_requires_chain_path N/A N/A self N/A N/A N/A N/A N/A self config version N/A 1 3 7 N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config deploy_cert www.example.com example/cert.pem example/key.pem None example/fullchain.pem N/A test_deploy_cert_requires_fullchain_path N/A N/A self N/A N/A N/A N/A N/A self config version N/A 1 3 1 N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config deploy_cert www.example.com example/cert.pem example/key.pem example/chain.pem None N/A test_deploy_cert N/A N/A self N/A N/A N/A server_conf N/A N/A N/A N/A self config parser abs_path server.conf N/A nginx_conf N/A N/A N/A N/A self config parser abs_path nginx.conf N/A example_conf N/A N/A N/A N/A self config parser abs_path sites-enabled/example.com N/A N/A N/A self config version N/A 1 3 1 N/A N/A N/A N/A self config deploy_cert www.example.com example/cert.pem example/key.pem example/chain.pem example/fullchain.pem N/A N/A N/A N/A self config deploy_cert another.alias /etc/nginx/cert.pem /etc/nginx/key.pem /etc/nginx/chain.pem /etc/nginx/fullchain.pem N/A N/A N/A N/A self config save N/A N/A N/A N/A N/A self config parser load N/A parsed_example_conf N/A N/A util filter_comments N/A N/A N/A N/A self config parser parsed N/A example_conf N/A parsed_server_conf N/A N/A util filter_comments N/A N/A N/A N/A self config parser parsed N/A server_conf N/A parsed_nginx_conf N/A N/A util filter_comments N/A N/A N/A N/A self config parser parsed N/A nginx_conf N/A N/A N/A self assertEqual N/A N/A N/A server N/A N/A listen 69.50.225.155:9000 N/A listen 127.0.0.1 N/A server_name .example.com N/A server_name example.* N/A listen 5001 ssl N/A ssl_certificate example/fullchain.pem N/A ssl_certificate_key example/key.pem N/A include N/A N/A N/A N/A self config parser loc N/A ssl_options parsed_example_conf N/A N/A N/A self assertEqual N/A N/A server_name somename  alias  another.alias parsed_server_conf N/A N/A N/A self assertTrue N/A N/A util contains_at_depth parsed_nginx_conf N/A N/A server N/A N/A listen 8000 N/A listen somename:8080 N/A include server.conf N/A N/A location / N/A N/A root html N/A index index.html index.htm N/A listen 5001 ssl N/A ssl_certificate /etc/nginx/fullchain.pem N/A ssl_certificate_key /etc/nginx/key.pem N/A include N/A N/A N/A N/A self config parser loc N/A ssl_options 2 N/A test_get_all_certs_keys N/A N/A self N/A N/A N/A nginx_conf N/A N/A N/A N/A self config parser abs_path nginx.conf N/A example_conf N/A N/A N/A N/A self config parser abs_path sites-enabled/example.com N/A N/A N/A N/A self config deploy_cert www.example.com example/cert.pem example/key.pem example/chain.pem example/fullchain.pem N/A N/A N/A N/A self config deploy_cert another.alias /etc/nginx/cert.pem /etc/nginx/key.pem /etc/nginx/chain.pem /etc/nginx/fullchain.pem N/A N/A N/A N/A self config save N/A N/A N/A N/A N/A self config parser load N/A N/A N/A self assertEqual N/A set N/A N/A example/fullchain.pem example/key.pem example_conf N/A /etc/nginx/fullchain.pem /etc/nginx/key.pem nginx_conf N/A N/A N/A self config get_all_certs_keys N/A test_perform N/A N/A self mock_restart mock_perform N/A N/A N/A achall1 N/A N/A achallenges KeyAuthorizationAnnotatedChallenge challb N/A N/A messages ChallengeBody chall N/A N/A challenges TLSSNI01 token kNdwjwOeX0I_A8DXt9Msmg uri https://ca.org/chall0_uri status N/A N/A messages Status pending domain localhost account_key N/A self rsa512jwk N/A achall2 N/A N/A achallenges KeyAuthorizationAnnotatedChallenge challb N/A N/A messages ChallengeBody chall N/A N/A challenges TLSSNI01 token m8TdO1qik4JVFtgPPurJmg uri https://ca.org/chall1_uri status N/A N/A messages Status pending domain example.com account_key N/A self rsa512jwk N/A expected N/A N/A N/A achall1 response N/A self rsa512jwk N/A N/A achall2 response N/A self rsa512jwk N/A N/A mock_perform return_value expected N/A responses N/A N/A N/A self config perform N/A achall1 achall2 N/A N/A N/A self assertEqual N/A mock_perform call_count 1 N/A N/A N/A self assertEqual responses expected N/A N/A N/A self assertEqual N/A mock_restart call_count 1 N/A N/A N/A mock patch certbot_nginx.configurator.tls_sni_01.NginxTlsSni01.perform N/A N/A mock patch certbot_nginx.configurator.NginxConfigurator.restart test_get_version N/A N/A self mock_popen N/A N/A N/A N/A N/A N/A mock_popen communicate return_value N/A N/A N/A join N/A nginx version: nginx/1.4.2 built by clang 6.0 (clang-600.0.56) (based on LLVM 3.5svn) TLS SNI support enabled configure arguments: --prefix=/usr/local/Cellar/nginx/1.6.2 --with-http_ssl_module N/A N/A N/A self assertEqual N/A N/A N/A self config get_version N/A 1 4 2 N/A N/A N/A N/A mock_popen communicate return_value N/A N/A N/A join N/A nginx version: nginx/0.9 built by clang 6.0 (clang-600.0.56) (based on LLVM 3.5svn) TLS SNI support enabled configure arguments: --with-http_ssl_module N/A N/A N/A self assertEqual N/A N/A N/A self config get_version N/A 0 9 N/A N/A N/A N/A mock_popen communicate return_value N/A N/A N/A join N/A blah 0.0.1 built by clang 6.0 (clang-600.0.56) (based on LLVM 3.5svn) TLS SNI support enabled configure arguments: --with-http_ssl_module N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config get_version N/A N/A N/A N/A mock_popen communicate return_value N/A N/A N/A join N/A nginx version: nginx/1.4.2 TLS SNI support enabled N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config get_version N/A N/A N/A N/A mock_popen communicate return_value N/A N/A N/A join N/A nginx version: nginx/1.4.2 built by clang 6.0 (clang-600.0.56) (based on LLVM 3.5svn) configure arguments: --with-http_ssl_module N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config get_version N/A N/A N/A N/A mock_popen communicate return_value N/A N/A N/A join N/A nginx version: nginx/0.8.1 built by clang 6.0 (clang-600.0.56) (based on LLVM 3.5svn) TLS SNI support enabled configure arguments: --with-http_ssl_module N/A N/A N/A self assertRaises N/A errors NotSupportedError N/A N/A self config get_version N/A N/A mock_popen side_effect N/A OSError Can't find program N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config get_version N/A N/A N/A mock patch certbot_nginx.configurator.subprocess.Popen test_nginx_restart N/A N/A self mock_popen N/A N/A N/A mocked N/A mock_popen N/A N/A N/A mocked communicate return_value N/A N/A N/A mocked returncode 0 N/A N/A N/A N/A self config restart N/A N/A N/A mock patch certbot_nginx.configurator.subprocess.Popen test_nginx_restart_fail N/A N/A self mock_popen N/A N/A N/A mocked N/A mock_popen N/A N/A N/A mocked communicate return_value N/A N/A N/A mocked returncode 1 N/A N/A N/A self assertRaises N/A errors MisconfigurationError N/A N/A self config restart N/A N/A N/A mock patch certbot_nginx.configurator.subprocess.Popen test_no_nginx_start N/A N/A self mock_popen N/A N/A N/A N/A mock_popen side_effect N/A OSError Can't find program N/A N/A N/A self assertRaises N/A errors MisconfigurationError N/A N/A self config restart N/A N/A N/A mock patch certbot_nginx.configurator.subprocess.Popen test_config_test N/A N/A self _ N/A N/A N/A N/A N/A N/A self config config_test N/A N/A N/A mock patch certbot.le_util.run_script test_config_test_bad_process N/A N/A self mock_run_script N/A N/A N/A N/A mock_run_script side_effect N/A errors SubprocessError N/A N/A N/A self assertRaises N/A errors MisconfigurationError N/A N/A self config config_test N/A N/A N/A mock patch certbot.le_util.run_script test_recovery_routine_throws_error_from_reverter N/A N/A self mock_recovery_routine N/A N/A N/A N/A mock_recovery_routine side_effect N/A N/A errors ReverterError foo N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config recovery_routine N/A N/A N/A mock patch certbot.reverter.Reverter.recovery_routine test_view_config_changes_throws_error_from_reverter N/A N/A self mock_view_config_changes N/A N/A N/A N/A mock_view_config_changes side_effect N/A N/A errors ReverterError foo N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config view_config_changes N/A N/A N/A mock patch certbot.reverter.Reverter.view_config_changes test_rollback_checkpoints_throws_error_from_reverter N/A N/A self mock_rollback_checkpoints N/A N/A N/A N/A mock_rollback_checkpoints side_effect N/A N/A errors ReverterError foo N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config rollback_checkpoints N/A N/A N/A mock patch certbot.reverter.Reverter.rollback_checkpoints test_revert_challenge_config_throws_error_from_reverter N/A N/A self mock_revert_temporary_config N/A N/A N/A N/A mock_revert_temporary_config side_effect N/A N/A errors ReverterError foo N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config revert_challenge_config N/A N/A N/A mock patch certbot.reverter.Reverter.revert_temporary_config test_save_throws_error_from_reverter N/A N/A self mock_add_to_checkpoint N/A N/A N/A N/A mock_add_to_checkpoint side_effect N/A N/A errors ReverterError foo N/A N/A N/A self assertRaises N/A errors PluginError N/A N/A self config save N/A N/A N/A mock patch certbot.reverter.Reverter.add_to_checkpoint test_get_snakeoil_paths N/A N/A self N/A N/A N/A N/A cert key N/A N/A N/A self config _get_snakeoil_paths N/A N/A N/A self assertTrue N/A N/A N/A os path exists cert N/A N/A N/A self assertTrue N/A N/A N/A os path exists key N/A N/A open cert cert_file N/A N/A N/A N/A N/A OpenSSL crypto load_certificate N/A N/A OpenSSL crypto FILETYPE_PEM N/A N/A cert_file read N/A N/A open key key_file N/A N/A N/A N/A N/A OpenSSL crypto load_privatekey N/A N/A OpenSSL crypto FILETYPE_PEM N/A N/A key_file read N/A test_redirect_enhance N/A N/A self N/A N/A N/A expected N/A N/A if ($scheme != "https") N/A N/A return 301 https://$host$request_uri N/A example_conf N/A N/A N/A N/A self config parser abs_path sites-enabled/example.com N/A N/A N/A N/A self config enhance www.example.com redirect N/A generated_conf N/A N/A N/A N/A self config parser parsed N/A example_conf N/A N/A N/A self assertTrue N/A N/A util contains_at_depth generated_conf expected 2 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main