File tree 3 files changed +5
-5
lines changed
tests/e2e/web/api/v1/contexts
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ async fn it_should_not_allow_adding_a_new_category_to_unauthenticated_users() {
61
61
} )
62
62
. await ;
63
63
64
- assert_eq ! ( response. status, 401 ) ;
64
+ assert_eq ! ( response. status, 403 ) ;
65
65
}
66
66
67
67
#[ tokio:: test]
@@ -194,5 +194,5 @@ async fn it_should_not_allow_guests_to_delete_categories() {
194
194
} )
195
195
. await ;
196
196
197
- assert_eq ! ( response. status, 401 ) ;
197
+ assert_eq ! ( response. status, 403 ) ;
198
198
}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ async fn it_should_not_allow_adding_a_new_tag_to_unauthenticated_users() {
63
63
} )
64
64
. await ;
65
65
66
- assert_eq ! ( response. status, 401 ) ;
66
+ assert_eq ! ( response. status, 403 ) ;
67
67
}
68
68
69
69
#[ tokio:: test]
@@ -174,5 +174,5 @@ async fn it_should_not_allow_guests_to_delete_tags() {
174
174
175
175
let response = client. delete_tag ( DeleteTagForm { tag_id } ) . await ;
176
176
177
- assert_eq ! ( response. status, 401 ) ;
177
+ assert_eq ! ( response. status, 403 ) ;
178
178
}
Original file line number Diff line number Diff line change @@ -231,6 +231,6 @@ mod banned_user_list {
231
231
232
232
let response = client. ban_user ( Username :: new ( registered_user. username . clone ( ) ) ) . await ;
233
233
234
- assert_eq ! ( response. status, 401 ) ;
234
+ assert_eq ! ( response. status, 403 ) ;
235
235
}
236
236
}
You can’t perform that action at this time.
0 commit comments