| package org.eclipse.basyx.regression.xmlAAS; |
| |
| import org.eclipse.basyx.components.configuration.BaSyxContextConfiguration; |
| import org.eclipse.basyx.components.configuration.BaSyxDockerConfiguration; |
| import org.junit.BeforeClass; |
| import org.slf4j.Logger; |
| import org.slf4j.LoggerFactory; |
| |
| public class ITInXMLAAS extends XMLAASSuite { |
| private static Logger logger = LoggerFactory.getLogger(ITInXMLAAS.class); |
| |
| @BeforeClass |
| public static void setUpClass() { |
| logger.info("Running integration test..."); |
| |
| logger.info("Loading servlet configuration"); |
| // Load the servlet configuration inside of the docker configuration from properties file |
| BaSyxContextConfiguration contextConfig = new BaSyxContextConfiguration(); |
| contextConfig.loadFromResource(BaSyxContextConfiguration.DEFAULT_CONFIG_PATH); |
| |
| // Load the docker environment configuration from properties file |
| logger.info("Loading docker configuration"); |
| BaSyxDockerConfiguration dockerConfig = new BaSyxDockerConfiguration(); |
| dockerConfig.loadFromResource(BaSyxDockerConfiguration.DEFAULT_CONFIG_PATH); |
| |
| aasEndpoint = "http://localhost:" + dockerConfig.getHostPort() + contextConfig.getContextPath() + "/" + aasShortId + "/aas"; |
| smEndpoint = "http://localhost:" + dockerConfig.getHostPort() + contextConfig.getContextPath() + "/" + aasShortId + "/aas/submodels/" + smShortId + "/submodel"; |
| |
| logger.info("AAS URL for integration test: " + aasEndpoint); |
| } |
| } |