Test updated to new UMA settings

This commit is contained in:
Mauro Mugnaini 2020-07-09 15:39:45 +02:00
parent c15cd4b718
commit 01bee7e266
1 changed files with 7 additions and 5 deletions

View File

@ -9,11 +9,13 @@ public class HTTPEventSenderTest {
}
public static void main(String[] args) throws MalformedURLException {
// HTTPEventSender sender = new HTTPEventSender(null, "lr62_portal", "28726d01-9f24-4ef4-a057-3d208d96aaa0",
// new URL("https://nubis2.int.d4science.net/auth/realms/d4science/protocol/openid-connect/token"));
new Thread(new HTTPEventSender(null, null, null, null).new HTTPost(new URL("https://nubis1.int.d4science.net/api/workflow/startup"),
"{\"sender\":\"gcube\",\"name\":\"startup\",\"ids\":\"20154\",\"type\":\"portal\",\"uuid\":\"474be056-365f-4b2c-9519-b9614299b09a\",\"timestamp\":\"2020-06-25T13:08:10.673Z\"}"))
.start();
HTTPWithUMAAuthEventSender sender = new HTTPWithUMAAuthEventSender(
new URL("https://nubis1.int.d4science.net/api/workflow/"), "lr62_portal",
"28726d01-9f24-4ef4-a057-3d208d96aaa0",
new URL("https://nubis2.int.d4science.net/auth/realms/d4science/protocol/openid-connect/token"),
"%2Fgcube");
sender.send(new Event("startup", "portal", "gcube"));
}
}