Commit 9d75b1a2 authored by nhomble's avatar nhomble
Browse files

Merge branch 'gh-1975-VI' of https://github.com/nhomble/openapi-generator into gh-1975-VI

1 merge request!6358[Java][Spring] Add OAuth2 Preauthorize annotations based on scope
Pipeline #473 failed with stages
Showing with 1 addition and 7 deletions
+1 -7
......@@ -713,13 +713,7 @@ public class SpringCodegenTest {
String path = outputPath + "/src/main/java/org/openapitools/api/PetsApi.java";
assertFileNotContains(Paths.get(path),
"hasAuthority('write_pets'");
assertFileNotContains(Paths.get(path),
"hasAuthority('read_pets");
assertFileNotContains(Paths.get(path),
"@PreAuthorize(\"");
assertFileNotContains(Paths.get(path),
"import org.springframework.security.access.prepost.PreAuthorize;\n");
"hasAuthority('write_pets'", "hasAuthority('read_pets", "@PreAuthorize(\"", "import org.springframework.security.access.prepost.PreAuthorize;\n");
}
@Test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment