-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Integration test failing on a newly created project #24912
Comments
JHipster has completed the sample check This check uses |
changing the test with @Test
void producesMessages() throws Exception {
restMockMvc.perform(post("/api/marlin-agent-kafka/publish?message=value-produce").with(csrf())).andExpect(status().isOk());
assertThat(output.receive(1000, "binding-out-0").getPayload()).isEqualTo("value-produce".getBytes());
} |
Thanks for analysing! Can you do a PR to fix it? |
Sure, I can try to do that. |
fix missing csfr in the Kafka integration test Fix jhipster#24912
fix missing csfr in the Kafka integration test Fix jhipster#24912
Overview of the issue
I have created a new project (Monolith) and w/o changing a bit running ```mvn clean install``. As a result one of the IT tests is failing all the time with 403 error.
Motivation for or Use Case
A newly created project should not have failing tests.
Reproduce the error
create a project with the provided .yo-rc.json and run
mvn clean install
commandRelated issues
Yes, I had a similar issue in the past with an older version of JHipster, but that bug was not solved.
Suggest a Fix
JHipster Version(s)
8.1.0
JHipster configuration
marlin-agent@0.0.0 E:\Projects\JHipster\refirmware\test
`-- generator-jhipster@8.1.0
[
.yo-rc.json
](url)
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
Windows 10 PRO [Version 10.0.19045 Build 19045]
Chrome Version 120.0.6099.225 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: