Disabled Test
This commit is contained in:
parent
73e2ea157e
commit
f237854911
6
pom.xml
6
pom.xml
|
@ -25,9 +25,9 @@
|
||||||
|
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}-legacy-jdk8.git</connection>
|
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</connection>
|
||||||
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}-legacy-jdk8.git</developerConnection>
|
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</developerConnection>
|
||||||
<url>https://code-repo.d4science.org/gCubeSystem/${project.artifactId}-legacy-jdk8</url>
|
<url>https://code-repo.d4science.org/gCubeSystem/${project.artifactId}</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ import org.junit.Test;
|
||||||
|
|
||||||
public class CallTest {
|
public class CallTest {
|
||||||
|
|
||||||
|
@Ignore
|
||||||
@Test
|
@Test
|
||||||
public void haspred4s() {
|
public void haspred4s() {
|
||||||
System.out.println("pred4s".hashCode() & 0xfffffff);
|
System.out.println("pred4s".hashCode() & 0xfffffff);
|
||||||
|
@ -39,35 +40,35 @@ public class CallTest {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void getToken() throws Exception {
|
public void getToken() throws Exception {
|
||||||
System.out.println(authorizationService().get("a6cec25b-3844-4901-83f3-95eee83319ba-980114272").getClientInfo().getRoles());
|
System.out.println(authorizationService().get("a6cec25b-3844-4901-83f3-95eee83319ba-980114272").getClientInfo().getRoles());
|
||||||
System.out.println(authorizationService().get("a6cec25b-3844-4901-83f3-95eee83319ba-980114272").getContext());
|
System.out.println(authorizationService().get("a6cec25b-3844-4901-83f3-95eee83319ba-980114272").getContext());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void removeUserinContext() throws Exception {
|
public void removeUserinContext() throws Exception {
|
||||||
authorizationService().removeAllReleatedToken("lucio.lelii", "/gcube/devsec");
|
authorizationService().removeAllReleatedToken("lucio.lelii", "/gcube/devsec");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void requestExternalServiceToken() throws Exception {
|
public void requestExternalServiceToken() throws Exception {
|
||||||
SecurityTokenProvider.instance.set(requestTestToken("/gcube"));
|
SecurityTokenProvider.instance.set(requestTestToken("/gcube"));
|
||||||
System.out.println(authorizationService().generateExternalServiceToken("URIResolver"));
|
System.out.println(authorizationService().generateExternalServiceToken("URIResolver"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void getExternalServiceToken() throws Exception {
|
public void getExternalServiceToken() throws Exception {
|
||||||
SecurityTokenProvider.instance.set(requestTestToken("/gcube/devsec"));
|
SecurityTokenProvider.instance.set(requestTestToken("/gcube/devsec"));
|
||||||
System.out.println(authorizationService().retrieveExternalServiceGenerated());
|
System.out.println(authorizationService().retrieveExternalServiceGenerated());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void requestNodeToken() throws Exception {
|
public void requestNodeToken() throws Exception {
|
||||||
System.out.println(_requestNodeToken());
|
System.out.println(_requestNodeToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void addPolicy() throws Exception {
|
public void addPolicy() throws Exception {
|
||||||
SecurityTokenProvider.instance.set(requestTestToken("/gcube/devNext/NextNext"));
|
SecurityTokenProvider.instance.set(requestTestToken("/gcube/devNext/NextNext"));
|
||||||
List<Policy> policies = new ArrayList<Policy>();
|
List<Policy> policies = new ArrayList<Policy>();
|
||||||
|
@ -76,7 +77,7 @@ public class CallTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void getPolicies() throws Exception{
|
public void getPolicies() throws Exception{
|
||||||
SecurityTokenProvider.instance.set(requestTestToken("/gcube/devNext"));
|
SecurityTokenProvider.instance.set(requestTestToken("/gcube/devNext"));
|
||||||
List<Policy> policies = authorizationService().getPolicies("/gcube/devsec");
|
List<Policy> policies = authorizationService().getPolicies("/gcube/devsec");
|
||||||
|
@ -84,28 +85,28 @@ public class CallTest {
|
||||||
System.out.println(policy);
|
System.out.println(policy);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void removePolicy() throws Exception {
|
public void removePolicy() throws Exception {
|
||||||
authorizationService().removePolicies(2, 3, 4);
|
authorizationService().removePolicies(2, 3, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void generateToken() throws Exception{
|
public void generateToken() throws Exception{
|
||||||
System.out.println(authorizationService().generateUserToken(new UserInfo("guest", new ArrayList<String>()), "/pred4s"));
|
System.out.println(authorizationService().generateUserToken(new UserInfo("guest", new ArrayList<String>()), "/pred4s"));
|
||||||
}
|
}
|
||||||
@Test(expected=RuntimeException.class)
|
@Ignore @Test(expected=RuntimeException.class)
|
||||||
public void createKeyWithError() throws Exception {
|
public void createKeyWithError() throws Exception {
|
||||||
authorizationService().generateApiKey("TEST");
|
authorizationService().generateApiKey("TEST");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void getSymmKey() throws Exception{
|
public void getSymmKey() throws Exception{
|
||||||
SecurityTokenProvider.instance.set(_requestNodeToken());
|
SecurityTokenProvider.instance.set(_requestNodeToken());
|
||||||
authorizationService().getSymmKey("/tmp");
|
authorizationService().getSymmKey("/tmp");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void createKey() throws Exception {
|
public void createKey() throws Exception {
|
||||||
String token = requestTestToken("/gcube");
|
String token = requestTestToken("/gcube");
|
||||||
SecurityTokenProvider.instance.set(token);
|
SecurityTokenProvider.instance.set(token);
|
||||||
|
@ -114,7 +115,7 @@ public class CallTest {
|
||||||
System.out.println(resolveToken(key));
|
System.out.println(resolveToken(key));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void retrieveApiKeys() throws Exception {
|
public void retrieveApiKeys() throws Exception {
|
||||||
String token = requestTestToken("/gcube/devNext");
|
String token = requestTestToken("/gcube/devNext");
|
||||||
SecurityTokenProvider.instance.set(token);
|
SecurityTokenProvider.instance.set(token);
|
||||||
|
@ -129,7 +130,7 @@ public class CallTest {
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void createTestToken() throws Exception {
|
public void createTestToken() throws Exception {
|
||||||
System.out.println(requestTestToken("/pred4s"));
|
System.out.println(requestTestToken("/pred4s"));
|
||||||
}
|
}
|
||||||
|
@ -143,78 +144,8 @@ public class CallTest {
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* List<String> scopes = Arrays.asList("/d4science.research-infrastructures.eu/gCubeApps/TabularDataLab",
|
|
||||||
"/d4science.research-infrastructures.eu/FARM/AquaMaps",
|
|
||||||
"/d4science.research-infrastructures.eu/FARM/WECAFC-FIRMS",
|
|
||||||
"/d4science.research-infrastructures.eu/gCubeApps/PGFA-UFMT",
|
|
||||||
"/d4science.research-infrastructures.eu/FARM",
|
|
||||||
"/d4science.research-infrastructures.eu/gCubeApps/EcologicalModelling",
|
|
||||||
"/d4science.research-infrastructures.eu/gCubeApps/EuBrazilOpenBio",
|
|
||||||
"/d4science.research-infrastructures.eu/gCubeApps/AlieiaVRE",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ENVRIPlus",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ENVRI",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ICES_DASC",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/FAO_TunaAtlas",
|
|
||||||
/d4science.research-infrastructures.eu/SoBigData/ResourceCatalogue",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/StocksAndFisheriesKB",
|
|
||||||
/d4science.research-infrastructures.eu/SoBigData/TagMe",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/BlueCommons",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ICES_TCSSM",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/OpenIt",
|
|
||||||
/d4science.research-infrastructures.eu/SmartArea/SmartApps",
|
|
||||||
/d4science.research-infrastructures.eu",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/Parthenos",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/AquacultureAtlasGeneration",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/IGDI",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/RStudioLab",
|
|
||||||
/d4science.research-infrastructures.eu/SoBigData",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/BlueBridgeProject",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/rScience",
|
|
||||||
/d4science.research-infrastructures.eu/FARM/VME-DB",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/EllinikaPsariaVRE",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/gCube",
|
|
||||||
/d4science.research-infrastructures.eu/FARM/TBTI_VRE",
|
|
||||||
/d4science.research-infrastructures.eu/FARM/GRSF",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/DocumentsWorkflow",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ICOS_ETC",
|
|
||||||
/d4science.research-infrastructures.eu/SoBigData/CityOfCitizens",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/SoBigData.eu",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/BiOnym",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/PerformanceEvaluationInAquaculture",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/SmartArea",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ICES_TCRE",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/CNR_OpenScienceTF",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/BlueBRIDGE-PSC",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/BOBLME_HilsaAWG",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ScalableDataMining",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/BiodiversityLab",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/DESCRAMBLE",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ICES_FIACO",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/BlueBRIDGE-EAB",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ARIADNE",
|
|
||||||
/d4science.research-infrastructures.eu/SmartArea/SmartBuilding",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ProtectedAreaImpactMaps",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ForkysVRE",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/EGIEngage",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ICES_StockAssessmentAdvanced",
|
|
||||||
/d4science.research-infrastructures.eu/FARM/GRSF",
|
|
||||||
/d4science.research-infrastructures.eu/SmartArea",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/RPrototypingLab",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/TCom",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ICCAT_BFT-E",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/ICES_DALSA",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/SoBigData.it",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/EGIP",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/BlueUptake",
|
|
||||||
/d4science.research-infrastructures.eu/FARM/iMarineBoardVRE",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/KnowledgeBridging",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/EFG",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/StockAssessment",
|
|
||||||
/d4science.research-infrastructures.eu/gCubeApps/iSearch",
|
|
||||||
"/d4science.research-infrastructures.eu/gCubeApps",
|
|
||||||
"/d4science.research-infrastructures.eu/gCubeApps/StrategicInvestmentAnalysis")*/
|
|
||||||
|
|
||||||
@Test
|
@Ignore @Test
|
||||||
public void requestListOfTokenForVREs() throws Exception{
|
public void requestListOfTokenForVREs() throws Exception{
|
||||||
SecurityTokenProvider.instance.set(requestTestToken("/d4science.research-infrastructures.eu"));
|
SecurityTokenProvider.instance.set(requestTestToken("/d4science.research-infrastructures.eu"));
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,13 @@ import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.gcube.common.authorization.library.provider.UserInfo;
|
import org.gcube.common.authorization.library.provider.UserInfo;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class StressTest {
|
public class StressTest {
|
||||||
|
|
||||||
|
|
||||||
|
@Ignore
|
||||||
@Test
|
@Test
|
||||||
public void stressing(){
|
public void stressing(){
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
Loading…
Reference in New Issue