Mercurial Hosting > luan
comparison host/test/test_renew_ssl.luan @ 2109:8f5863f0870d ssltesting tip
minor test
| author | Violet7 |
|---|---|
| date | Tue, 16 Dec 2025 18:58:36 -0800 |
| parents | 9df13949912f |
| children |
comparison
equal
deleted
inserted
replaced
| 2108:9df13949912f | 2109:8f5863f0870d |
|---|---|
| 7 local logger = Logging.logger "test_https" | 7 local logger = Logging.logger "test_https" |
| 8 | 8 |
| 9 local Https = require "classpath:luan/host/Https.luan" | 9 local Https = require "classpath:luan/host/Https.luan" |
| 10 | 10 |
| 11 local domain = "https.s3.luan.software" | 11 local domain = "https.s3.luan.software" |
| 12 local site_dir = uri("file:../sites/ssl1.s3.luan.software/") | 12 local site_dir = uri("file:../sites/https.s3.luan.software/") |
| 13 local luanhost_dir = uri("file:..") | 13 local luanhost_dir = uri("file:..") |
| 14 local dry_run = true | 14 local dry_run = true |
| 15 local files = Https.get_files(domain, site_dir) | 15 local files = Https.get_files(domain, site_dir) |
| 16 logger.info(files) | 16 logger.info(files.csr_file.canonical().to_string()) |
| 17 | |
| 17 site_dir.exists() or error() | 18 site_dir.exists() or error() |
| 18 | 19 |
| 19 Https.renew_ssl(files, 0,domain,site_dir,luanhost_dir,dry_run) | 20 Https.renew_ssl(files, 0,domain,site_dir,luanhost_dir,dry_run) |
