Commit da75bab4 authored by pgouvas's avatar pgouvas
Browse files

Initial tests

parent bbd08e80
version: '3'
services:
db:
image: "postgres"
environment:
......@@ -10,7 +9,7 @@ services:
ports:
- "5432:5432"
volumes:
- ./mnt/ejbcapostgres:/var/lib/postgresql/data
- /mnt/ejbcapostgres:/var/lib/postgresql/data
ejbca:
image: primekey/ejbca-ce:6.15.2
......
......@@ -20,21 +20,22 @@ import org.springframework.web.bind.annotation.RestController;
* @author Panagiotis Gouvas (pgouvas@ubitech.eu)
*/
@RestController
@RequestMapping("/test")
public class TestController {
@RequestMapping("/ca")
public class RestCAController {
private static final Logger logger = Logger.getLogger(TestController.class.getName());
private static final Logger logger = Logger.getLogger(RestController.class.getName());
@Autowired
EjbcaWSClientImpl ca;
@RequestMapping(path = "/0", method = RequestMethod.GET)
public void test0(HttpServletRequest request) {
@RequestMapping(path = "/getAvailableCAs", method = RequestMethod.GET)
public List<NameAndId> getAvailableCAs(HttpServletRequest request) {
List<NameAndId> availableCAs = ca.getAvailableCAs();
logger.info("availableCAs: "+availableCAs.size());
availableCAs.forEach(ca->{
logger.info(ca.getName()+" "+ca.getId());
});
return availableCAs;
}//EoM
@RequestMapping(path = "/1", method = RequestMethod.GET)
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.461+02:00
* 2020-01-06T12:47:16.557+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.430+02:00
* 2020-01-06T12:47:16.525+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.393+02:00
* 2020-01-06T12:47:16.487+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.371+02:00
* 2020-01-06T12:47:16.463+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.386+02:00
* 2020-01-06T12:47:16.480+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.379+02:00
* 2020-01-06T12:47:16.472+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.523+02:00
* 2020-01-06T12:47:16.613+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.507+02:00
* 2020-01-06T12:47:16.600+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.497+02:00
* 2020-01-06T12:47:16.591+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.518+02:00
* 2020-01-06T12:47:16.609+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.423+02:00
* 2020-01-06T12:47:16.518+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.512+02:00
* 2020-01-06T12:47:16.604+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.473+02:00
* 2020-01-06T12:47:16.570+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.399+02:00
* 2020-01-06T12:47:16.494+02:00
* Generated source version: 3.3.2
*/
......
......@@ -10,7 +10,7 @@ import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.529+02:00
* 2020-01-06T12:47:16.617+02:00
* Generated source version: 3.3.2
*
*/
......
......@@ -10,7 +10,7 @@ import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.566+02:00
* 2020-01-06T12:47:16.650+02:00
* Generated source version: 3.3.2
*
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.437+02:00
* 2020-01-06T12:47:16.532+02:00
* Generated source version: 3.3.2
*/
......
......@@ -6,7 +6,7 @@ import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 3.3.2
* 2019-12-05T11:41:11.362+02:00
* 2020-01-06T12:47:16.454+02:00
* Generated source version: 3.3.2
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment