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
| import requests | |
| # given | |
| environment = "pro" | |
| token = '' | |
| headers = { | |
| 'Authorization': token, | |
| 'Content-type': 'application/json; charset=utf-8' | |
| } | |
| url_asgard = "http://asgard.classified-ads-" + environment + ".spain.schibsted.io:8080/eu-west-1/cluster/show/ms_pta__adinsertion.json" |
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
| annotationProcessor "org.projectlombok:lombok:$lombokVersion" | |
| compileOnly "org.projectlombok:lombok:$lombokVersion" | |
| // unlike testCompile, these configurations do not inherit from their compile counterparts | |
| // so if your tests depend on lombok, make sure you have specified these: | |
| testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion" | |
| testCompileOnly "org.projectlombok:lombok:$lombokVersion" |
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
| //@FeignClient(value = "roger", configuration = FeignDictionaryConfiguration.class) | |
| @FeignClient(value = "ms-common--app-dictionaries", url = "https://ms-common--app-dictionaries.global-pre.spain.schibsted.io", configuration = FeignDictionaryConfiguration.class) |
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
| f(g(h(x))) | |
| compose(f,g,h)(x) | |
| pipe(h,g,f)(x) |
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
| public class SoapRouteBuilder extends RouteBuilder { | |
| private final String uriFrom; | |
| private final AlertingService alertingService; | |
| public SoapRouteBuilder(String uriFrom, AlertingService alertingService) { | |
| this.uriFrom = uriFrom; | |
| this.alertingService = alertingService; | |
| } |
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
| /* | |
| @Bean | |
| public RouteBuilder fotocasaRoute() { | |
| return new SoapRouteBuilder("mock:kafka", new FotocasaService("http//foto")); | |
| } | |
| @Bean | |
| public RouteBuilder milAnunciosRoute() { | |
| return new SoapRouteBuilder("mock:kafka", new FotocasaService("http//ma")); | |
| } |
OlderNewer