Linux newlinux5.pouyasazan.org 3.10.0-962.3.2.lve1.5.60.el7.x86_64 #1 SMP Fri Jul 23 07:07:00 EDT 2021 x86_64
LiteSpeed
Server IP : 88.99.66.243 & Your IP : 216.73.216.178
Domains :
Cant Read [ /etc/named.conf ]
User : wdbbsgxf
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
certbot /
plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
23
B
-rw-r--r--
2021-01-05 21:07
__init__.pyc
186
B
-rw-r--r--
2021-10-08 10:38
__init__.pyo
186
B
-rw-r--r--
2021-10-08 10:38
common.py
14.12
KB
-rw-r--r--
2021-01-05 21:07
common.pyc
17.05
KB
-rw-r--r--
2021-10-08 10:38
common.pyo
17.05
KB
-rw-r--r--
2021-10-08 10:38
dns_common.py
11.68
KB
-rw-r--r--
2021-01-05 21:07
dns_common.pyc
13.77
KB
-rw-r--r--
2021-10-08 10:38
dns_common.pyo
13.77
KB
-rw-r--r--
2021-10-08 10:38
dns_common_lexicon.py
5.48
KB
-rw-r--r--
2021-01-05 21:07
dns_common_lexicon.pyc
5.58
KB
-rw-r--r--
2021-10-08 10:38
dns_common_lexicon.pyo
5.58
KB
-rw-r--r--
2021-10-08 10:38
dns_test_common.py
1.71
KB
-rw-r--r--
2021-01-05 21:07
dns_test_common.pyc
2.88
KB
-rw-r--r--
2021-10-08 10:38
dns_test_common.pyo
2.88
KB
-rw-r--r--
2021-10-08 10:38
dns_test_common_lexicon.py
5.6
KB
-rw-r--r--
2021-01-05 21:07
dns_test_common_lexicon.pyc
6.75
KB
-rw-r--r--
2021-10-08 10:38
dns_test_common_lexicon.pyo
6.75
KB
-rw-r--r--
2021-10-08 10:38
enhancements.py
5.95
KB
-rw-r--r--
2021-01-05 21:07
enhancements.pyc
6.79
KB
-rw-r--r--
2021-10-08 10:38
enhancements.pyo
6.79
KB
-rw-r--r--
2021-10-08 10:38
storage.py
4.1
KB
-rw-r--r--
2021-01-05 21:07
storage.pyc
4.57
KB
-rw-r--r--
2021-10-08 10:38
storage.pyo
4.57
KB
-rw-r--r--
2021-10-08 10:38
util.py
1.69
KB
-rw-r--r--
2021-01-05 21:07
util.pyc
2.08
KB
-rw-r--r--
2021-10-08 10:38
util.pyo
2.08
KB
-rw-r--r--
2021-10-08 10:38
Save
Rename
"""Base test class for DNS authenticators.""" import configobj import josepy as jose try: import mock except ImportError: # pragma: no cover from unittest import mock # type: ignore import six from acme import challenges from certbot import achallenges from certbot.compat import filesystem from certbot.tests import acme_util from certbot.tests import util as test_util DOMAIN = 'example.com' KEY = jose.JWKRSA.load(test_util.load_vector("rsa512_key.pem")) class BaseAuthenticatorTest(object): """ A base test class to reduce duplication between test code for DNS Authenticator Plugins. Assumes: * That subclasses also subclass unittest.TestCase * That the authenticator is stored as self.auth """ achall = achallenges.KeyAuthorizationAnnotatedChallenge( challb=acme_util.DNS01, domain=DOMAIN, account_key=KEY) def test_more_info(self): self.assertTrue(isinstance(self.auth.more_info(), six.string_types)) # pylint: disable=no-member def test_get_chall_pref(self): self.assertEqual(self.auth.get_chall_pref(None), [challenges.DNS01]) # pylint: disable=no-member def test_parser_arguments(self): m = mock.MagicMock() self.auth.add_parser_arguments(m) # pylint: disable=no-member m.assert_any_call('propagation-seconds', type=int, default=mock.ANY, help=mock.ANY) def write(values, path): """Write the specified values to a config file. :param dict values: A map of values to write. :param str path: Where to write the values. """ config = configobj.ConfigObj() for key in values: config[key] = values[key] with open(path, "wb") as f: config.write(outfile=f) filesystem.chmod(path, 0o600)