Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenAPI Tools
openapi-generator
Commits
9d75b1a2
Commit
9d75b1a2
authored
5 years ago
by
nhomble
Browse files
Options
Download
Plain Diff
Merge branch 'gh-1975-VI' of
https://github.com/nhomble/openapi-generator
into gh-1975-VI
parents
1ea958f3
62981f97
github/fork/nhomble/gh-1975-VI
1 merge request
!6358
[Java][Spring] Add OAuth2 Preauthorize annotations based on scope
Pipeline
#473
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/spring-all-petstore.sh
+0
-0
bin/spring-all-petstore.sh
modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java
+1
-7
...g/openapitools/codegen/java/spring/SpringCodegenTest.java
with
1 addition
and
7 deletions
+1
-7
bin/spring-all-petstore.sh
0 → 100755
+
0
-
0
View file @
9d75b1a2
This diff is collapsed.
Click to expand it.
modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java
+
1
-
7
View file @
9d75b1a2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets