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:
Luca Frosini 2016-02-08 16:51:15 +00:00
parent a73fbb5a3e
commit 3f12bc77b2
2 changed files with 3 additions and 8 deletions

View File

@ -21,7 +21,7 @@ public class ISSweeperPluginTest {
@Before
public void beforeTest(){
SecurityTokenProvider.instance.set("TOKEN-HERE");
SecurityTokenProvider.instance.set("82a84741-debe-4c90-a907-c429c8272071");
}
@Test

View File

@ -27,16 +27,11 @@ public class SmartExecutorSchedulerTest {
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;
@Before
public void before() throws Exception{
SecurityTokenProvider.instance.set("TOKEN-HERE");
SecurityTokenProvider.instance.set("82a84741-debe-4c90-a907-c429c8272071");
ScopeProvider.instance.set("/gcube/devsec");
proxy = ExecutorPlugin.getExecutorProxy(ISSweeperPluginDeclaration.NAME).build();
Assert.assertNotNull(proxy);
@ -53,7 +48,7 @@ public class SmartExecutorSchedulerTest {
String uuidString = proxy.launch(parameter);
return UUID.fromString(uuidString);
} catch(Exception e){
logger.error("Error laucnhing sheduled task", e);
logger.error("Error launching sheduled task", e);
throw e;
}