- PHP 7.4 support - Improved Webp images support with Cloudflare (Issue [#95](https://github.com/WordOps/WordOps/issues/95)). Nginx will not serve webp images alternative with Cloudflare IP ranges. - Stack upgrade for adminer - Check acme.sh installation and setup acme.sh if needed before issuing certificate - Add `--ufw` to `wo stack status` - Add Nginx directive `gzip_static on;` to serve precompressed assets with Cache-Enabler or WP-Rocket. (Issue [#207](https://github.com/WordOps/WordOps/issues/207)) - Previous `--php73` & `--php73=off` flags are replaced by `--php72`, `--php73`, `--php74` to switch site's php version - phpMyAdmin updated to v4.9.2 - Adminer updated to v4.7.5 - Replace dot and dashes by underscores in database names (Issue [#206](https://github.com/WordOps/WordOps/issues/206)) - Increased database name length to 32 characters from domain name + 8 random characters - typo error in motd-news script (Issue [#204](https://github.com/WordOps/WordOps/issues/204)) - Install Nginx before ngxblocker - WordOps install/update script text color - Issue with MySQL stack on Raspbian 9/10 - Typo error (PR [#205](https://github.com/WordOps/WordOps/pull/205)) - php version in `wo debug` (PR [#209](https://github.com/WordOps/WordOps/pull/209)) - SSL certificates expiration display with shared wildcard certificates
46 lines
1.5 KiB
Python
46 lines
1.5 KiB
Python
from wo.utils import test
|
|
from wo.cli.main import WOTestApp
|
|
|
|
|
|
class CliTestCaseSiteUpdate(test.WOTestCase):
|
|
|
|
def test_wo_cli_site_update_html(self):
|
|
with WOTestApp(argv=['site', 'update', 'php.com',
|
|
'--html']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_php(self):
|
|
with WOTestApp(argv=['site', 'update', 'html.com',
|
|
'--php']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_mysql(self):
|
|
with WOTestApp(argv=['site', 'update', 'mysql.com',
|
|
'--html']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wp(self):
|
|
with WOTestApp(argv=['site', 'update', 'mysql.com',
|
|
'--wp']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wpsubdir(self):
|
|
with WOTestApp(argv=['site', 'update', 'wp.com',
|
|
'--wpsubdir']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wpsubdomain(self):
|
|
with WOTestApp(argv=['site', 'update', 'wpsubdir.com',
|
|
'--wpsubdomain']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wpfc(self):
|
|
with WOTestApp(argv=['site', 'update', 'wpsc.com',
|
|
'--wpfc']) as app:
|
|
app.run()
|
|
|
|
def test_wo_cli_site_update_wpsc(self):
|
|
with WOTestApp(argv=['site', 'update', 'wpfc.com',
|
|
'--wpsc']) as app:
|
|
app.run()
|