Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Joel-Berglund opened this issue Jun 22, 2021 · 0 comments
Open

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

Joel-Berglund opened this issue Jun 22, 2021 · 0 comments

Comments

@Joel-Berglund
Copy link

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());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant