|
From: Markus K. <ma...@pr...> - 2012-07-27 08:08:23
|
Hi Antoine, (Please include the mailing list address when replying to threads in the list: sig...@li...). See answers below. On 2012-07-27 09:57, Antoine Louiset wrote: > I try to list all the things to do to install signserver in the good > way. I will send to the community a server script which install > signserver in a new linux server. Great, that sounds like a useful script. > > I think there is a problem with enabling a lot of modules to run the > tests, especially module which should not be used in production (for > example clusterclassloader) because we have to launch tests before > sending in production. I think only tests of activated modules should be > launched. Currently the tests are only meant to be run at development time. They are not built to being run in production. One reason is that they might leave data behind in the database. Best regards, Markus > > Best regards, > > Le 27/07/2012 09:41, Markus Kilås a écrit : >> Hi Antoine, >> >> The documentation for developers is lacking a bit... What we have is >> doc/DEVELOP.txt which gives an introduction to testing and refers >> further to the Testing chapter of the manual: >> http://www.signserver.org/manual/complete.en.html#Testing >> >> However, there should also be a note saying that you will have to >> configure the 8442/8443 ports if you are using GlassFish. Also for the >> tests the port number should be taken from the >> signserver_build.properties configuration file but I don't think it is >> like that everywhere yet. >> >> I have registered https://jira.primekey.se/browse/DSS-512 for updating >> the manual. >> >> For the trust anchor error, I think some tests assume there to be a >> truststore (for instance a copy of your cacerts.jks) available as >> p12/truststore.jks with password changeit. Look in the test code and you >> should find some code loading keystores. >> >> >> Best regards, >> Markus >> >> On 2012-07-26 19:34, Antoine Louiset wrote: >>> You were right ! It works with NetBeans 7.1.2 !!! >>> >>> I have one remark for the tests. In many files, you put the number of >>> the port. For example, the address for the WSDL files. When you change >>> the number of ports for the http-listener, you have to change it >>> everywere. By default, glassfish listen to 8181 for https without client >>> authentication (I change it to 8442 to be the same as jboss, it could be >>> interesting to put it in the doc). It will be better to set it once for >>> everywhere. It is just a small improvement which could run the tests >>> without errors faster. >>> >>> However, my error of the trust anchors is always there. >>> [junit] >>> Testcase:testReloadConfiguration(org.signserver.adminws.client.AdminWebServiceTest): >>> >>> Caused an ERROR >>> [junit] Failed to access the WSDL at: >>> https://localhost:8181/signserver/AdminWSService/AdminWS?wsdl. >>> It failed with: >>> [junit] java.lang.RuntimeException: Unexpected error: >>> java.security.InvalidAlgorithmParameterException: the trustAnchors >>> parameter must be non-empty." >>> >>> Is there something to do with cacert or anything else to run tests ? >>> >>> Thanks a lot Markus, >>> >>> Le 25/07/2012 20:35, Markus Kilås a écrit : >>>> Reverting the changes automagically done in */build-impl.xml, >>>> */genfiles.properties, */project.properties and */project.xml and use >>>> NetBeans IDE 7.1.2 should work until the problem is found and fixed. >> >> > -- Kind regards, Markus Kilås Security Consultant & Developer PrimeKey Solutions AB Anderstorpsv. 16 171 54 Solna Sweden Phone: +46 70 424 94 85 Skype: markusatskype Email: mar...@pr... www.primekey.se |