2020-06-29 16:57:59 +02:00
|
|
|
package org.gcube.event.publisher;
|
|
|
|
|
|
|
|
import java.net.MalformedURLException;
|
|
|
|
import java.net.URL;
|
|
|
|
|
|
|
|
public class HTTPEventSenderTest {
|
|
|
|
|
|
|
|
public HTTPEventSenderTest() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void main(String[] args) throws MalformedURLException {
|
2020-07-09 15:39:45 +02:00
|
|
|
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"));
|
2020-06-29 16:57:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|