#### Added - [ACME] Display warning about sudo usage when issuing certificate with DNS API validation (require `sudo -E`) #### Changed - [ACME] Resolve domain IP over HTTPS with Cloudflare DNS Resolver - [CORE] Cement Framework updated to v2.10.2 - [SITE] database name = 0 to 16 characters from the site name + 4 randomly generated character - [SITE] database user = 0 to 12 characters from the site name + 4 randomy generated character - [STACK] Improve sysctl tweak deployment #### Fixed - [SITE] https redirection missing on subdomains sites - Issues with digitalocean mariadb repository - Cement Framework output handler issues - [CLEAN] check if Nginx is installed before purging fastcgi or opcache
50 lines
1.6 KiB
Python
50 lines
1.6 KiB
Python
from wo.utils import test
|
|
from wo.cli.main import WOTestApp
|
|
|
|
|
|
class CliTestCaseSiteUpdate(test.WOTestCase):
|
|
|
|
def test_wo_cli(self):
|
|
with WOTestApp as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_html(self):
|
|
with WOTestApp(argv=['site', 'update', 'example2.com',
|
|
'--html']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_php(self):
|
|
with WOTestApp(argv=['site', 'update', 'example1.com',
|
|
'--php']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_mysql(self):
|
|
with WOTestApp(argv=['site', 'update', 'example1.com',
|
|
'--html']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wp(self):
|
|
with WOTestApp(argv=['site', 'update', 'example5.com',
|
|
'--wp']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wpsubdir(self):
|
|
with WOTestApp(argv=['site', 'update', 'example4.com',
|
|
'--wpsubdir']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wpsubdomain(self):
|
|
with WOTestApp(argv=['site', 'update', 'example7.com',
|
|
'--wpsubdomain']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wpfc(self):
|
|
with WOTestApp(argv=['site', 'update', 'example9.com',
|
|
'--wpfc']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wpsc(self):
|
|
with WOTestApp(argv=['site', 'update', 'example6.com',
|
|
'--wpsc']) as app:
|
|
app.run()
|