Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
certbot /
plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-03-20 10:36
__init__.py
30
B
-rw-r--r--
2018-11-07 22:14
common.py
16.9
KB
-rw-r--r--
2018-11-07 22:14
common_test.py
16.53
KB
-rw-r--r--
2018-11-07 22:14
disco.py
9.92
KB
-rw-r--r--
2018-11-07 22:14
disco_test.py
11.34
KB
-rw-r--r--
2018-11-07 22:14
dns_common.py
11.7
KB
-rw-r--r--
2018-11-07 22:14
dns_common_lexicon.py
3.96
KB
-rw-r--r--
2018-11-07 22:14
dns_common_lexicon_test.py
651
B
-rw-r--r--
2018-11-07 22:14
dns_common_test.py
8.25
KB
-rw-r--r--
2018-11-07 22:14
dns_test_common.py
1.61
KB
-rw-r--r--
2018-11-07 22:14
dns_test_common_lexicon.py
5.48
KB
-rw-r--r--
2018-11-07 22:14
enhancements.py
5.58
KB
-rw-r--r--
2018-11-07 22:14
enhancements_test.py
2.36
KB
-rw-r--r--
2018-11-07 22:14
manual.py
10.6
KB
-rw-r--r--
2018-11-07 22:14
manual_test.py
7.37
KB
-rw-r--r--
2018-11-07 22:14
null.py
1.34
KB
-rw-r--r--
2018-11-07 22:14
null_test.py
624
B
-rw-r--r--
2018-11-07 22:14
selection.py
13.55
KB
-rw-r--r--
2018-11-07 22:14
selection_test.py
7.77
KB
-rw-r--r--
2018-11-07 22:14
standalone.py
11.36
KB
-rw-r--r--
2018-11-07 22:14
standalone_test.py
9.2
KB
-rw-r--r--
2018-11-07 22:14
storage.py
4.08
KB
-rw-r--r--
2018-11-07 22:14
storage_test.py
5.37
KB
-rw-r--r--
2018-11-07 22:14
util.py
1.7
KB
-rw-r--r--
2018-11-07 22:14
util_test.py
1.61
KB
-rw-r--r--
2018-11-07 22:14
webroot.py
11.9
KB
-rw-r--r--
2018-11-07 22:14
webroot_test.py
11.95
KB
-rw-r--r--
2018-11-07 22:14
Save
Rename
"""Base test class for DNS authenticators.""" import os import configobj import josepy as jose import mock import six from acme import challenges from certbot import achallenges 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): # pylint: disable=no-member self.assertTrue(isinstance(self.auth.more_info(), six.string_types)) def test_get_chall_pref(self): # pylint: disable=no-member self.assertEqual(self.auth.get_chall_pref(None), [challenges.DNS01]) def test_parser_arguments(self): m = mock.MagicMock() # pylint: disable=no-member self.auth.add_parser_arguments(m) 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) os.chmod(path, 0o600)