예제 #1
0
파일: checks.py 프로젝트: r3boot/pki
 def test_unowned_fqdn_permissive(self):
     old_value = checks.PERMISSIVE_MODE
     checks.PERMISSIVE_MODE = True
     assert checks.owns_fqdn(LOCALHOST_PTR, 'example.com') is True
     checks.PERMISSIVE_MODE = old_value
예제 #2
0
파일: checks.py 프로젝트: r3boot/pki
 def test_owned_fqdn(self):
     assert checks.owns_fqdn(LOCALHOST_PTR, LOCALHOST_A) is True
예제 #3
0
파일: checks.py 프로젝트: r3boot/pki
 def test_invalid_fqdn(self):
     assert checks.owns_fqdn(LOCALHOST_PTR, 'some_host_name') is False
예제 #4
0
파일: checks.py 프로젝트: r3boot/pki
 def test_nonexisting_fqdn(self):
     assert checks.owns_fqdn(LOCALHOST_PTR, 'some.random.host') is False
예제 #5
0
파일: checks.py 프로젝트: r3boot/pki
 def test_numeric_fqdn(self):
     assert checks.owns_fqdn(LOCALHOST_PTR, 12345) is False
예제 #6
0
파일: checks.py 프로젝트: r3boot/pki
 def test_unowned_fqdn(self):
     assert checks.owns_fqdn(LOCALHOST_PTR, 'example.com') is False
예제 #7
0
파일: checks.py 프로젝트: r3boot/pki
 def test_empty_fqdn(self):
     assert checks.owns_fqdn(LOCALHOST_PTR, '') is False
예제 #8
0
파일: checks.py 프로젝트: r3boot/pki
 def test_undefined_fqdn(self):
     assert checks.owns_fqdn(LOCALHOST_PTR, None) is False
예제 #9
0
파일: checks.py 프로젝트: r3boot/pki
 def test_numeric_srcip(self):
     assert checks.owns_fqdn(12345, LOCALHOST_A) is False
예제 #10
0
파일: checks.py 프로젝트: r3boot/pki
 def test_empty_srcip(self):
     assert checks.owns_fqdn('', LOCALHOST_A) is False
예제 #11
0
파일: checks.py 프로젝트: r3boot/pki
 def test_undefined_srcip(self):
     assert checks.owns_fqdn(None, LOCALHOST_A) is False