summaryrefslogtreecommitdiff
path: root/test/envparsing.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/envparsing.sh')
-rwxr-xr-xtest/envparsing.sh107
1 files changed, 26 insertions, 81 deletions
diff --git a/test/envparsing.sh b/test/envparsing.sh
index 14b265b32..f75b6fd3f 100755
--- a/test/envparsing.sh
+++ b/test/envparsing.sh
@@ -2,7 +2,7 @@
set -eu
-EXPECT=$(cat <<"EOF"
+EXPECT=$(cat << "EOF"
{
"account-domain": "peepee",
"accounts-allow-custom-css": true,
@@ -18,86 +18,31 @@ EXPECT=$(cat <<"EOF"
"application-name": "gts",
"bind-address": "127.0.0.1",
"cache": {
- "gts": {
- "account-max-size": 99,
- "account-note-max-size": 1000,
- "account-note-sweep-freq": 60000000000,
- "account-note-ttl": 1800000000000,
- "account-sweep-freq": 1000000000,
- "account-ttl": 10800000000000,
- "block-ids-max-size": 500,
- "block-ids-sweep-freq": 60000000000,
- "block-ids-ttl": 1800000000000,
- "block-max-size": 1000,
- "block-sweep-freq": 60000000000,
- "block-ttl": 1800000000000,
- "domain-block-max-size": 2000,
- "domain-block-sweep-freq": 60000000000,
- "domain-block-ttl": 86400000000000,
- "emoji-category-max-size": 100,
- "emoji-category-sweep-freq": 60000000000,
- "emoji-category-ttl": 1800000000000,
- "emoji-max-size": 2000,
- "emoji-sweep-freq": 60000000000,
- "emoji-ttl": 1800000000000,
- "follow-ids-max-size": 500,
- "follow-ids-sweep-freq": 60000000000,
- "follow-ids-ttl": 1800000000000,
- "follow-max-size": 2000,
- "follow-request-ids-max-size": 500,
- "follow-request-ids-sweep-freq": 60000000000,
- "follow-request-ids-ttl": 1800000000000,
- "follow-request-max-size": 2000,
- "follow-request-sweep-freq": 60000000000,
- "follow-request-ttl": 1800000000000,
- "follow-sweep-freq": 60000000000,
- "follow-ttl": 1800000000000,
- "instance-max-size": 2000,
- "instance-sweep-freq": 60000000000,
- "instance-ttl": 1800000000000,
- "list-entry-max-size": 2000,
- "list-entry-sweep-freq": 60000000000,
- "list-entry-ttl": 1800000000000,
- "list-max-size": 2000,
- "list-sweep-freq": 60000000000,
- "list-ttl": 1800000000000,
- "marker-max-size": 2000,
- "marker-sweep-freq": 60000000000,
- "marker-ttl": 21600000000000,
- "media-max-size": 1000,
- "media-sweep-freq": 60000000000,
- "media-ttl": 1800000000000,
- "mention-max-size": 2000,
- "mention-sweep-freq": 60000000000,
- "mention-ttl": 1800000000000,
- "notification-max-size": 1000,
- "notification-sweep-freq": 60000000000,
- "notification-ttl": 1800000000000,
- "report-max-size": 100,
- "report-sweep-freq": 60000000000,
- "report-ttl": 1800000000000,
- "status-fave-max-size": 2000,
- "status-fave-sweep-freq": 60000000000,
- "status-fave-ttl": 1800000000000,
- "status-max-size": 2000,
- "status-sweep-freq": 60000000000,
- "status-ttl": 1800000000000,
- "tag-max-size": 2000,
- "tag-sweep-freq": 60000000000,
- "tag-ttl": 1800000000000,
- "tombstone-max-size": 500,
- "tombstone-sweep-freq": 60000000000,
- "tombstone-ttl": 1800000000000,
- "user-max-size": 500,
- "user-sweep-freq": 60000000000,
- "user-ttl": 1800000000000,
- "webfinger-max-size": 250,
- "webfinger-sweep-freq": 900000000000,
- "webfinger-ttl": 86400000000000
- },
- "visibility-max-size": 2000,
- "visibility-sweep-freq": 60000000000,
- "visibility-ttl": 1800000000000
+ "account-mem-ratio": 18,
+ "account-note-mem-ratio": 0.1,
+ "block-mem-ratio": 3,
+ "emoji-category-mem-ratio": 0.1,
+ "emoji-mem-ratio": 3,
+ "follow-ids-mem-ratio": 4,
+ "follow-mem-ratio": 4,
+ "follow-request-ids-mem-ratio": 2,
+ "follow-request-mem-ratio": 2,
+ "instance-mem-ratio": 1,
+ "list-entry-mem-ratio": 3,
+ "list-mem-ratio": 3,
+ "marker-mem-ratio": 0.5,
+ "media-mem-ratio": 4,
+ "memory-target": 209715200,
+ "mention-mem-ratio": 5,
+ "notification-mem-ratio": 5,
+ "report-mem-ratio": 1,
+ "status-fave-mem-ratio": 5,
+ "status-mem-ratio": 18,
+ "tag-mem-ratio": 3,
+ "tombstone-mem-ratio": 2,
+ "user-mem-ratio": 0.1,
+ "visibility-mem-ratio": 2,
+ "webfinger-mem-ratio": 0.1
},
"config-path": "internal/config/testdata/test.yaml",
"db-address": ":memory:",