This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "aggregate": { | |
| "timestamp": "2020-05-19T10:14:18.542Z", | |
| "scenariosCreated": 169703, | |
| "scenariosCompleted": 169703, | |
| "requestsCompleted": 169703, | |
| "latency": { | |
| "min": 7, | |
| "max": 1581.9, | |
| "median": 10.5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resources: | |
| - name: project-repo | |
| type: git | |
| source: | |
| uri: [email protected]:spring-petclinic/spring-petclinic-kotlin.git | |
| branch: master | |
| jobs: | |
| - name: build | |
| plan: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| platform: linux | |
| image_resource: | |
| type: registry-image | |
| source: | |
| repository: gradle | |
| inputs: | |
| - name: tasks-repo | |
| - name: project-repo | |
| outputs: | |
| - name: build-output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eu | |
| gradle build -p ./project-repo | |
| cp ./project-repo/build/libs/-*.jar ./build-output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resources: | |
| - name: project-repo | |
| type: git | |
| source: | |
| uri: [email protected]:spring-petclinic/spring-petclinic-kotlin.git | |
| branch: master | |
| - name: tasks-repo | |
| type: git | |
| source: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| await new Promise(resolve => setTimeout(() => resolve(5), 3000)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Configuration | |
| public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { | |
| @Override | |
| protected void configure(HttpSecurity http) throws Exception { | |
| http.authorizeRequests() | |
| .anyRequest() | |
| .authenticated(); | |
| http.oauth2ResourceServer() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring.security.oauth2.resourceserver.jwt.jwk-set-uri=https://www.googleapis.com/service_accounts/v1/jwk/securetoken%40system.gserviceaccount.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RestController | |
| @RequestMapping("/app") | |
| public class AppController { | |
| @GetMapping(path = "/test") | |
| public String test(Principal principal) { | |
| return principal.getName(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl --location --request GET 'http://localhost:8080/app/test' \ | |
| --header 'Authorization: Bearer [your JWT token]' \ |