Mercurial Hosting > luan
comparison host/test/test_https.luan @ 2057:634a44d10c96 acme-tiny
https.luan cleanup and add test
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Wed, 12 Nov 2025 23:18:04 -0700 |
| parents | |
| children | e22d4489aa7c |
comparison
equal
deleted
inserted
replaced
| 2056:75cd3c7bda02 | 2057:634a44d10c96 |
|---|---|
| 1 local Luan = require "luan:Luan.luan" | |
| 2 local error = Luan.error | |
| 3 local do_file = Luan.do_file or error() | |
| 4 local Io = require "luan:Io.luan" | |
| 5 local uri = Io.uri or error() | |
| 6 local Hosted = require "luan:host/Hosted.luan" | |
| 7 local Logging = require "luan:logging/Logging.luan" | |
| 8 local logger = Logging.logger "test_https" | |
| 9 | |
| 10 | |
| 11 do_file "classpath:luan/host/https.luan" | |
| 12 | |
| 13 local is_https = true | |
| 14 local domain = "https.s3.luan.software" | |
| 15 local site_dir = uri("file:local") | |
| 16 local luanhost_dir = uri("file:..") | |
| 17 local dry_run = true | |
| 18 | |
| 19 site_dir.mkdir() | |
| 20 | |
| 21 Hosted.do_set_https(is_https,domain,site_dir,luanhost_dir,dry_run) |
