#9175 ipatests: need to update expected output for ipa-healthcheck's DogtagCertsConnectivityCheck
Closed: fixed 2 years ago by frenaud. Opened 2 years ago by frenaud.

Issue

ipa-healthcheck 0.11 has a different output for the check DogtagCertsConnectivityCheck and the test test_ipahealthcheck.py::TestIpaHealthCheck::test_ipahealthcheck_dogtag_ca_connectivity_check needs to be adapted to handle both old and new outputs.

The test is stopping PKI, then launches ipa-healthcheck and checks that DogtagCertsConnectivityCheck properly reports an issue.

With ipa-healthcheck < 0.11:

[
  {
    "source": "ipahealthcheck.dogtag.ca",
    "check": "DogtagCertsConnectivityCheck",
    "result": "ERROR",
    "uuid": "e8dfb583-99d8-4291-9cb5-09b5107744f2",
    "when": "20220609012302Z",
    "duration": "0.032547",
    "kw": {
      "key": "cert_show_1",
      "msg": "Request for certificate failed, Certificate operation cannot be completed: Request failed with status 503: Non-2xx response from CA REST API: 503.  (503)"
    }
  }
]

With ipa-healthcheck 0.11:

[
  {
    "source": "ipahealthcheck.dogtag.ca",
    "check": "DogtagCertsConnectivityCheck",
    "result": "ERROR",
    "uuid": "d1ca61c8-83ae-4006-b76b-0fce1eb8ac23",
    "when": "20220608102612Z",
    "duration": "0.095807",
    "kw": {
      "key": "cert_show_1",
      "error": "Certificate operation cannot be completed: Request failed with status 503: Non-2xx response from CA REST API: 503.  (503)",
      "serial": "1",
      "msg": "Request for certificate failed: {error}"
    }
  }
]

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6299

2 years ago

master:

  • d5e4e57 ipatest: update expected out for ipa-healthcheck's DogtagCertsConnectivityCheck

ipa-4-9:

  • 6147f87 ipatest: update expected out for ipa-healthcheck's DogtagCertsConnectivityCheck

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata