Add simple test for conf.d
This commit is contained in:
parent
ce59bb364f
commit
1bbaeacc84
4 changed files with 16 additions and 2 deletions
3
emgauwa-core.conf.d/conf_d_working.conf
Normal file
3
emgauwa-core.conf.d/conf_d_working.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[core]
|
||||||
|
not-found-content = "CONF.D WORKING"
|
||||||
|
not-found-content-type = "text/plain"
|
|
@ -1,10 +1,9 @@
|
||||||
[core]
|
[core]
|
||||||
database = "emgauwa-core.sqlite"
|
database = "emgauwa-core.sqlite"
|
||||||
|
include = "../emgauwa-core-testing.conf.d"
|
||||||
content-dir = "."
|
content-dir = "."
|
||||||
not-found-file = "404.html"
|
not-found-file = "404.html"
|
||||||
not-found-file-mime = "text/html"
|
not-found-file-mime = "text/html"
|
||||||
not-found-content = "404 - NOT FOUND"
|
|
||||||
not-found-content-type = "text/plain"
|
|
||||||
|
|
||||||
[ports]
|
[ports]
|
||||||
server = 5000
|
server = 5000
|
||||||
|
|
3
tests/emgauwa-core-testing.conf.d/conf_d_working.conf
Normal file
3
tests/emgauwa-core-testing.conf.d/conf_d_working.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[core]
|
||||||
|
not-found-content = '{"msg": "conf.d working"}'
|
||||||
|
not-found-content-type = "application/json"
|
|
@ -14,3 +14,12 @@ stages:
|
||||||
method: GET
|
method: GET
|
||||||
response:
|
response:
|
||||||
status_code: 404
|
status_code: 404
|
||||||
|
|
||||||
|
- name: "[test_basics] verify conf.d by 404"
|
||||||
|
request:
|
||||||
|
url: "http://localhost:5000/invalid_url_for_testing_do_not_use"
|
||||||
|
method: GET
|
||||||
|
response:
|
||||||
|
status_code: 404
|
||||||
|
json:
|
||||||
|
msg: "conf.d working"
|
||||||
|
|
Loading…
Reference in a new issue