1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! Tests of `config_check` (a split crate) that need the facade or repository fixtures:
//! a crate's tests run in the crate's directory, without the crates above it.
use crate*;
const MACHINE_DEPENDENT: &str = r#"tls_cert_file = "/nonexistent/cert.pem"
tls_key_file = "/nonexistent/key.pem"
spa_fallback = "nonexistent-index.html"
[[upstream]]
name = "app"
backends = ["10.0.0.10:8080"] # http1-only builds reject https:// backends
tls_ca_file = "/nonexistent/ca.pem"
[[route]]
[route.match]
path = "/api/*"
[route.action]
type = "proxy"
upstream = "app"
[route.middleware]
auth = { type = "bearer", token_env = "RWS_TEST_OFFLINE_TOKEN_UNSET" }
[[route]]
[route.match]
path = "/files/*"
[route.action]
type = "static"
[route.action.static]
root = "/nonexistent/www"
"#;
/// Every TOML block on the cookbook pages is a complete configuration that
/// `rws --check` accepts (offline: files, env vars and the network aren't
/// looked at). Recipes stay working as settings change (#74). Needs the
/// features the recipes use; CI's feature-set run has them.