20 lines
860 B
Java
20 lines
860 B
Java
|
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 {
|
||
|
// 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();
|
||
|
}
|
||
|
|
||
|
}
|