Skip to content

BB-3864: Add DomainSettings page

Boros Gábor requested to merge arjun/bb-3864-dns-ui into master

Created by: arjunsinghy96

Adds Domain settings page

JIRA Tickets: BB-3864 Gitlab#717

Testing Instructions

  1. Checkout to this PR.
  2. Start OCIM backend and make sure a BetaTestApplication is setup for testing.
  3. From admin panel set external_domain to empty string and dns_configuration_state to no_required
  4. Visit http://localhost:3000/console/settings/domain in your browser.
  5. Verify that the [Add External Domain] button is visible.
  6. Verify that clicking the button shows add domain modal.
  7. Enter invalid domains in text field and submit.
  8. Verify that errors are reported with text field.
  9. Enter a valid domain and submit.
  10. Verifiy that the domain is visible and modal closes.
  11. Click [Check DNS Configuration] button and verify that the DNS config helper modal is visible.
  12. From admin panel set dns_configuration_state to verified (External DNS configured from dropdown)
  13. Verify that the [Check DNS Configuration] button is not visisble.

Author Notes

  1. Delete Domain button does not work currently because we do not have support for it in the OCIM Backend. Sending null or empty string value results in a 400 response.
  2. Adding domain was made a 1 step action instead of 2 (First verify and them Add) because we do not have a separate verification endpoint.
  3. User consent checkboxes were skipped in this implementation as we do not have dedicated fields to store them in OCIM backend.

Screenshots Domain Settings Page no-domain

Add Domain Modal domain-modal

Add Domain Modal with error add-domain-error

Domain Added domain-added

Domain Added and DNS configured dns-configured

DNS Config Modal dns-config-modal

Options Dropdown Open options-open

Merge request reports