Skip to content

Commit 16cf15a

Browse files
committed
test(oidc) :: keep static assets available without login
1 parent 43b5e01 commit 16cf15a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/oidc/mod.rs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,11 @@ async fn test_oidc_with_site_prefix() {
720720
redirect_uri.contains("/my-app/sqlpage/oidc_callback"),
721721
"Redirect URI should contain site prefix. Got: {redirect_uri}"
722722
);
723+
724+
let asset_path = include_str!(concat!(env!("OUT_DIR"), "/sqlpage.js.filename.txt"));
725+
let asset_uri = format!("/my-app/{asset_path}");
726+
let asset = request_with_cookies!(app, test::TestRequest::get().uri(&asset_uri), cookies);
727+
assert_eq!(asset.status(), StatusCode::OK);
723728
}
724729

725730
#[actix_web::test]

0 commit comments

Comments
 (0)