Skip to content

Instantly share code, notes, and snippets.

View alexmoleiro's full-sized avatar
💭
OhMyDown.org

Alex Moleiro alexmoleiro

💭
OhMyDown.org
View GitHub Profile
@alexmoleiro
alexmoleiro / AdInsertion Draft
Created January 15, 2019 14:19
Smoke tests
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"
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"
//@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)
f(g(h(x)))
compose(f,g,h)(x)
pipe(h,g,f)(x)
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;
}
/*
@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"));
}