Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7707

HttpMethodsTest.testDocs should not fail if internal docs are not used

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.0.0, EJBCA 6.15.2
    • Component/s: None
    • Labels:

      Description

      When web.docbaseuri=disabled or web.docbaseuri=https://www.ejbca.org/docs the correct behavior by EJBCA is to not bundle the doc.war deployment.

      HttpMethodsTest.testDocs needs to take the value of this variable server side and adapt the test.

      Test image / org.ejbca.ui.web.pub.HttpMethodsTest.testDocs
      Failing for the past 1 build (Since Unstable#10 )
      Took 1.1 sec.
      add description
      Error Message
      
      HTTP GET is not supported. (This test expects http://4d2256f0739e:8080/ejbca/doc/index.html to exist and return 200). expected:<200> but was:<404>
      
      Stacktrace
      
      junit.framework.AssertionFailedError: HTTP GET is not supported. (This test expects http://4d2256f0739e:8080/ejbca/doc/index.html to exist and return 200). expected:<200> but was:<404>
      	at org.ejbca.ui.web.pub.HttpMethodsTest.performResourceTest(HttpMethodsTest.java:208)
      	at org.ejbca.ui.web.pub.HttpMethodsTest.testDocs(HttpMethodsTest.java:91)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johan Johan Eklund
                Reporter:
                johan Johan Eklund
                Verified by:
                Samuel Lidén Borell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: