Skip to content

cust-auth-url-param-filter branch has a faulty test #19

@Joel-Berglund

Description

@Joel-Berglund

The following test in BeerRestControllerIT:

@test
void deleteBeerBadCredsUrl() throws Exception{
mockMvc.perform(delete("/api/v1/beer/97df0c39-90c4-4ae0-b663-453e8e19c311")
.param("apiKey","spring").header("apiSecret", "guruXXXX"))
.andExpect(status().isUnauthorized());
}

should be:

@test
void deleteBeerBadCredsUrl() throws Exception{
mockMvc.perform(delete("/api/v1/beer/97df0c39-90c4-4ae0-b663-453e8e19c311")
.param("apiKey","spring").param("apiSecret","guruXXXX"))
.andExpect(status().isUnauthorized());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions