mirror of
https://github.com/agersant/polaris
synced 2025-03-02 14:27:09 +00:00
Test that settings endpoint requires auth
This commit is contained in:
parent
f5d46a0aa3
commit
be1479a40c
1 changed files with 6 additions and 0 deletions
|
@ -129,6 +129,12 @@ fn settings() {
|
|||
let env = get_test_environment("api_settings.sqlite");
|
||||
let client = &env.client;
|
||||
complete_initial_setup(client);
|
||||
|
||||
{
|
||||
let response = client.get("/api/settings").dispatch();
|
||||
assert_eq!(response.status(), Status::Unauthorized);
|
||||
}
|
||||
|
||||
do_auth(client);
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue