Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDikland-DB committed May 6, 2024
1 parent 7f6e7c2 commit 48ea537
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion delta-sharing/server/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl<S, T> AuthenticationMiddleware<S, T> {
}

/// Create a new [`AuthorizationLayer`] with the given [`Authenticator`].
///
///
/// This is a convenience method that is equivalent to calling [`AuthorizationLayer::new`].
pub fn layer(authenticator: T) -> AuthorizationLayer<T> {
AuthorizationLayer::new(authenticator)
Expand Down
20 changes: 10 additions & 10 deletions delta-sharing/server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ mod tests {
}
}

fn get_anoymous_router() -> Router {
fn get_anonymous_router() -> Router {
get_router(get_state()).layer(AuthorizationLayer::new(AnonymousAuthenticator))
}

#[tokio::test]
async fn test_list_shares() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request = Request::builder()
.uri("/shares")
Expand All @@ -171,7 +171,7 @@ mod tests {

#[tokio::test]
async fn test_get_share() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request = Request::builder()
.uri("/shares/share1")
Expand All @@ -192,7 +192,7 @@ mod tests {

#[tokio::test]
async fn test_get_share_not_found() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request: Request<Body> = Request::builder()
.uri("/shares/nonexistent")
Expand All @@ -209,7 +209,7 @@ mod tests {

#[tokio::test]
async fn test_list_schemas() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request = Request::builder()
.uri("/shares/share1/schemas")
Expand All @@ -230,7 +230,7 @@ mod tests {

#[tokio::test]
async fn test_list_schemas_not_found() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request: Request<Body> = Request::builder()
.uri("/shares/nonexistent/schemas")
Expand All @@ -247,7 +247,7 @@ mod tests {

#[tokio::test]
async fn test_list_share_tables() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request = Request::builder()
.uri("/shares/share1/all-tables")
Expand All @@ -268,7 +268,7 @@ mod tests {

#[tokio::test]
async fn test_list_share_tables_not_found() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request: Request<Body> = Request::builder()
.uri("/shares/nonexistent/all-tables")
Expand All @@ -285,7 +285,7 @@ mod tests {

#[tokio::test]
async fn test_list_schema_tables() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request = Request::builder()
.uri("/shares/share1/schemas/schema1/tables")
Expand All @@ -306,7 +306,7 @@ mod tests {

#[tokio::test]
async fn test_list_schema_tables_not_found() {
let app = get_anoymous_router();
let app = get_anonymous_router();

let request: Request<Body> = Request::builder()
.uri("/shares/share1/schemas/nonexistent/tables")
Expand Down

0 comments on commit 48ea537

Please sign in to comment.