"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/test_0920_status.py" between
mod_md-2.1.3.tar.gz and mod_md-2.1.4.tar.gz

About: mod_md is an Apache module that adds Let's Encrypt (ACME) support. Beta version (for Apache httpd 2.4.41 or later).

test_0920_status.py  (mod_md-2.1.3):test_0920_status.py  (mod_md-2.1.4)
skipping to change at line 112 skipping to change at line 112
conf = HttpdConf() conf = HttpdConf()
conf.add_admin( "admin@not-forbidden.org" ) conf.add_admin( "admin@not-forbidden.org" )
conf.add_md( domains ) conf.add_md( domains )
conf.add_line("MDCertificateStatus off") conf.add_line("MDCertificateStatus off")
conf.add_vhost(domain) conf.add_vhost(domain)
conf.install() conf.install()
assert TestEnv.apache_restart() == 0 assert TestEnv.apache_restart() == 0
assert TestEnv.await_completion( [ domain ], restart=False ) assert TestEnv.await_completion( [ domain ], restart=False )
status = TestEnv.get_certificate_status( domain ) status = TestEnv.get_certificate_status( domain )
assert not status assert not status
# get the complete md-status JSON, check that it
def test_920_004(self):
domain = self.test_domain
domains = [ domain ]
conf = HttpdConf()
conf.add_admin( "admin@not-forbidden.org" )
conf.add_md( domains )
conf.add_line("MDCertificateStatus off")
conf.add_vhost(domain)
conf.install()
assert TestEnv.apache_restart() == 0
assert TestEnv.await_completion( [ domain ] )
status = TestEnv.get_md_status( "" )
assert "version" in status
assert "managed-domains" in status
assert 1 == len(status["managed-domains"])
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)