test: Make io tests use environment variables instead of config files where possible.
Load jwt secret from file instead of stdin in tests, because stdin is not supported when reloading the config. Resolves #2126.
This commit is contained in:
@@ -7,4 +7,3 @@ pre-request = "check_alias"
|
||||
role-claim-key = ".aliased"
|
||||
root-spec = "open_alias"
|
||||
secret-is-base64 = true
|
||||
db-config = false
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
app.settings.external_api_secret = "0123456789abcdef"
|
||||
db-config = false
|
||||
@@ -1,4 +0,0 @@
|
||||
# Read secret from a file: /dev/stdin (alias for standard input)
|
||||
jwt-secret = "@/dev/stdin"
|
||||
jwt-secret-is-base64 = true
|
||||
db-config = false
|
||||
@@ -5,4 +5,3 @@ db-anon-role = "required"
|
||||
db-channel-enabled = "1"
|
||||
db-prepared-statements = "0"
|
||||
jwt-secret-is-base64 = "2"
|
||||
db-config = false
|
||||
|
||||
@@ -5,4 +5,3 @@ db-anon-role = "required"
|
||||
db-channel-enabled = "true"
|
||||
db-prepared-statements = "FALSE"
|
||||
jwt-secret-is-base64 = "\"true\""
|
||||
db-config = false
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
db-uri = "@/dev/stdin"
|
||||
jwt-secret = "reallyreallyreallyreallyverysafe"
|
||||
db-config = false
|
||||
@@ -9,7 +9,7 @@ db-pre-request = "check_alias"
|
||||
db-prepared-statements = true
|
||||
db-root-spec = "open_alias"
|
||||
db-schemas = "provided_through_alias"
|
||||
db-config = false
|
||||
db-config = true
|
||||
db-tx-end = "commit"
|
||||
db-uri = "required"
|
||||
db-use-legacy-gucs = true
|
||||
|
||||
@@ -9,7 +9,7 @@ db-pre-request = ""
|
||||
db-prepared-statements = false
|
||||
db-root-spec = ""
|
||||
db-schemas = "required"
|
||||
db-config = false
|
||||
db-config = true
|
||||
db-tx-end = "commit"
|
||||
db-uri = "required"
|
||||
db-use-legacy-gucs = true
|
||||
|
||||
@@ -9,7 +9,7 @@ db-pre-request = ""
|
||||
db-prepared-statements = false
|
||||
db-root-spec = ""
|
||||
db-schemas = "required"
|
||||
db-config = false
|
||||
db-config = true
|
||||
db-tx-end = "commit"
|
||||
db-uri = "required"
|
||||
db-use-legacy-gucs = true
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
jwt-role-claim-key = "$(ROLE_CLAIM_KEY)"
|
||||
jwt-secret = "reallyreallyreallyreallyverysafe"
|
||||
db-config = false
|
||||
@@ -1,4 +0,0 @@
|
||||
# Read secret from a file: /dev/stdin (alias for standard input)
|
||||
jwt-secret = "@/dev/stdin"
|
||||
jwt-secret-is-base64 = false
|
||||
db-config = false
|
||||
@@ -1,3 +0,0 @@
|
||||
jwt-secret = "$(JWT_SECRET_FILE)"
|
||||
jwt-secret-is-base64 = false
|
||||
db-config = false
|
||||
@@ -2,4 +2,3 @@ db-schemas = "public"
|
||||
|
||||
app.settings.name_var = "John"
|
||||
jwt-secret = "invalidinvalidinvalidinvalidinvalid"
|
||||
db-config = false
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
jwt-secret = "reallyreallyreallyreallyverysafe"
|
||||
db-config = false
|
||||
Reference in New Issue
Block a user