Class DeploymentTest
- java.lang.Object
-
- test.de.iip_ecosphere.platform.support.aas.DeploymentTest
-
public class DeploymentTest extends java.lang.ObjectTests deployment scenarios.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Constructor Description DeploymentTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected de.iip_ecosphere.platform.support.SchemaadaptRegistrySchema(de.iip_ecosphere.platform.support.Schema schema)Adapts the registry schema if needed.private voidassertProp(de.iip_ecosphere.platform.support.aas.SubmodelElementCollection coll)Asserts the expected value of a boolean property before/after change.private voidassertProp2(de.iip_ecosphere.platform.support.aas.SubmodelElementCollection coll)Asserts the expected value of an umodifialbe integer property before/after change.private voidassertRemoteAas(de.iip_ecosphere.platform.support.Endpoint regEp, java.lang.String aasUrn, java.lang.String submName, java.lang.String smUrn, de.iip_ecosphere.platform.support.Endpoint aasEp)Asserts the remote AAS created byremoteAasDeploymentTest().voidlocalDynamicSubmodelElementsCollectionDeployment()Tests a dynamically deployed/removed sub-model elements collection.voidlocalDynamicSubmodelElementsCollectionPropertyDeployment()Tests a changed attribute value on a dynamically deployed sub-model elements collection.voidlocalSubmodelDynamicDeployment()Tests a local dynamic sub-model deployment.voidremoteAasDeploymentTest()Tests a remote AAS HTTP deployment.private voidremoteAasDeploymentTestImpl(de.iip_ecosphere.platform.support.Schema schema, de.iip_ecosphere.platform.support.net.KeyStoreDescriptor kstore)Tests a remote AAS deployment.voidremoteAasSslDeploymentTest()Tests a remote AAS HTTPS deployment.
-
-
-
Method Detail
-
localSubmodelDynamicDeployment
public void localSubmodelDynamicDeployment() throws java.io.IOException, java.util.concurrent.ExecutionExceptionTests a local dynamic sub-model deployment.- Throws:
java.io.IOException- shall not occur if the test worksjava.util.concurrent.ExecutionException- shall not occur
-
localDynamicSubmodelElementsCollectionDeployment
public void localDynamicSubmodelElementsCollectionDeployment() throws java.io.IOException, java.util.concurrent.ExecutionExceptionTests a dynamically deployed/removed sub-model elements collection.- Throws:
java.io.IOException- shall not occurjava.util.concurrent.ExecutionException- shall not occur
-
localDynamicSubmodelElementsCollectionPropertyDeployment
public void localDynamicSubmodelElementsCollectionPropertyDeployment() throws java.io.IOException, java.util.concurrent.ExecutionExceptionTests a changed attribute value on a dynamically deployed sub-model elements collection. Does not work, similarly when creating the connectors component AAS.- Throws:
java.io.IOException- shall not occurjava.util.concurrent.ExecutionException- shall not occur
-
assertProp
private void assertProp(de.iip_ecosphere.platform.support.aas.SubmodelElementCollection coll) throws java.util.concurrent.ExecutionExceptionAsserts the expected value of a boolean property before/after change.- Parameters:
coll- the parent collection- Throws:
java.util.concurrent.ExecutionException- if access fails
-
assertProp2
private void assertProp2(de.iip_ecosphere.platform.support.aas.SubmodelElementCollection coll) throws java.util.concurrent.ExecutionExceptionAsserts the expected value of an umodifialbe integer property before/after change.- Parameters:
coll- the parent collection- Throws:
java.util.concurrent.ExecutionException- if access fails
-
remoteAasDeploymentTest
public void remoteAasDeploymentTest() throws java.io.IOExceptionTests a remote AAS HTTP deployment.- Throws:
java.io.IOException- shall not occur if the test works
-
remoteAasSslDeploymentTest
public void remoteAasSslDeploymentTest() throws java.io.IOExceptionTests a remote AAS HTTPS deployment.- Throws:
java.io.IOException- shall not occur if the test works
-
adaptRegistrySchema
protected de.iip_ecosphere.platform.support.Schema adaptRegistrySchema(de.iip_ecosphere.platform.support.Schema schema)
Adapts the registry schema if needed.- Parameters:
schema- the schema- Returns:
schema
-
remoteAasDeploymentTestImpl
private void remoteAasDeploymentTestImpl(de.iip_ecosphere.platform.support.Schema schema, de.iip_ecosphere.platform.support.net.KeyStoreDescriptor kstore) throws java.io.IOExceptionTests a remote AAS deployment.- Parameters:
schema- the schema for the serverskstore- the key store descriptor, ignored if null- Throws:
java.io.IOException- shall not occur if the test works
-
assertRemoteAas
private void assertRemoteAas(de.iip_ecosphere.platform.support.Endpoint regEp, java.lang.String aasUrn, java.lang.String submName, java.lang.String smUrn, de.iip_ecosphere.platform.support.Endpoint aasEp) throws java.io.IOExceptionAsserts the remote AAS created byremoteAasDeploymentTest().- Parameters:
regEp- the registry endpointaasUrn- the AAS URNsubmName- the name of the submodel to assert forsmUrn- the submodel URNaasEp- the endpoint of the AAS server- Throws:
java.io.IOException- in case that obtaining the registry/receiving the AAS fails
-
-