Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1718

Metrics must return a 406 for OPTIONS and text/plain

    Details

      Description

      MP-Metrics requires that an OPTIONS request for a media type other than application/json results in a 406 respsonse.

      The MP-Metrics 1.0.1 TCK enforces this

      [ERROR] testPrometheus406ForOptions(org.eclipse.microprofile.metrics.test.MpMetricTest) Time elapsed: 0.028 s <<< FAILURE!
      java.lang.AssertionError:
      Expected status code <406> doesn't match actual status code <200>.

      at org.eclipse.microprofile.metrics.test.MpMetricTest.testPrometheus406ForOptions(MpMetricTest.java:648)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pilhuhn Heiko Rupp
                Reporter:
                pilhuhn Heiko Rupp
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: