refs #2032: Create IS Sweeper as SmartExecutor Plugin
https://support.d4science.org/issues/2032 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/is-sweeper-se-plugin@122933 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a73fbb5a3e
commit
3f12bc77b2
|
@ -21,7 +21,7 @@ public class ISSweeperPluginTest {
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void beforeTest(){
|
public void beforeTest(){
|
||||||
SecurityTokenProvider.instance.set("TOKEN-HERE");
|
SecurityTokenProvider.instance.set("82a84741-debe-4c90-a907-c429c8272071");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -27,16 +27,11 @@ public class SmartExecutorSchedulerTest {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(SmartExecutorSchedulerTest.class);
|
private static Logger logger = LoggerFactory.getLogger(SmartExecutorSchedulerTest.class);
|
||||||
|
|
||||||
public static final String START = "START";
|
|
||||||
public static final String END = "END";
|
|
||||||
|
|
||||||
public static final String SCOPE = "";
|
|
||||||
|
|
||||||
private SmartExecutorProxy proxy;
|
private SmartExecutorProxy proxy;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void before() throws Exception{
|
public void before() throws Exception{
|
||||||
SecurityTokenProvider.instance.set("TOKEN-HERE");
|
SecurityTokenProvider.instance.set("82a84741-debe-4c90-a907-c429c8272071");
|
||||||
ScopeProvider.instance.set("/gcube/devsec");
|
ScopeProvider.instance.set("/gcube/devsec");
|
||||||
proxy = ExecutorPlugin.getExecutorProxy(ISSweeperPluginDeclaration.NAME).build();
|
proxy = ExecutorPlugin.getExecutorProxy(ISSweeperPluginDeclaration.NAME).build();
|
||||||
Assert.assertNotNull(proxy);
|
Assert.assertNotNull(proxy);
|
||||||
|
@ -53,7 +48,7 @@ public class SmartExecutorSchedulerTest {
|
||||||
String uuidString = proxy.launch(parameter);
|
String uuidString = proxy.launch(parameter);
|
||||||
return UUID.fromString(uuidString);
|
return UUID.fromString(uuidString);
|
||||||
} catch(Exception e){
|
} catch(Exception e){
|
||||||
logger.error("Error laucnhing sheduled task", e);
|
logger.error("Error launching sheduled task", e);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue