Skip to content

Ui/test metrics mirage#10341

Merged
chelshaw merged 6 commits into
masterfrom
ui/test-metrics-mirage
Nov 9, 2020
Merged

Ui/test metrics mirage#10341
chelshaw merged 6 commits into
masterfrom
ui/test-metrics-mirage

Conversation

@chelshaw
Copy link
Copy Markdown
Contributor

@chelshaw chelshaw commented Nov 6, 2020

This PR adds the Mirage dependency and uses it for testing the pricing metrics UI.

Up until now, all of our front end tests take advantage of real calls to vault APIs, because none of the data is expected to just live on the server. However, with this new endpoint it does expect data to accumulate over time, which is unreasonable to wait for testing.

While writing these tests I did find a legitimate bug where if the data is queried but doesn't have any data, "Invalid date" is shown:
before-no-data-for-period

Fixed:
no-data-for-period

@chelshaw chelshaw added the bug Used to indicate a potential bug label Nov 6, 2020
@chelshaw chelshaw added this to the 1.6 milestone Nov 6, 2020
@chelshaw chelshaw added the ui label Nov 6, 2020
Comment thread ui/app/templates/vault/cluster/metrics/index.hbs Outdated
Copy link
Copy Markdown
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! There's a failing UI test, but other than that looks great!

@chelshaw chelshaw merged commit dd4bead into master Nov 9, 2020
@chelshaw chelshaw deleted the ui/test-metrics-mirage branch November 9, 2020 15:41
chelshaw added a commit that referenced this pull request Nov 9, 2020
chelshaw added a commit that referenced this pull request Nov 9, 2020
tsaarni pushed a commit to Nordix/vault that referenced this pull request Nov 18, 2025
…icorp#10523)

* [UI] Ember Data Migration - PKI Config Setup (hashicorp#10320)

* adds api and capabilities services to pki engine

* updates eslintrc to ignore rest siblings for no-unused-vars rule

* adds ember-template-lint to pki engine

* updates check-issuers decorator to use api service

* adds constants for pki capabilities paths

* updates pki configuration route to use api service and fetch capabilities

* [UI] Ember Data Migration - PKI Config Generate Form (hashicorp#10322)

* updates form class data object to tracked

* adds isNot validator

* updates tsconfig to resolve json modules

* updates open-api form class to use the spec file rather than help response for form field/group generation

* adds pki config generate form

* [UI] Ember Data Migration - PKI Config Create (hashicorp#10331)

* updates pki configure create route and component

* updates pki generate csr component to use api service and form class

* updates pki generate root component to use api service and form class

* updates pki import bundle component to use api service

* [UI] Ember Data Migration - PKI Config Generate Sub Components (hashicorp#10332)

* updates pki generate toggle groups component to support form class

* updates pki key parameters component to support form class

* updates pki generate immediate component based on csr component changes

* updates pki generate root component based on root component changes

* more pki config sub component updates

* updates pki issuer rotate root component to use api serivce and form

* updates pki acceptance tests (hashicorp#10341)

* [UI] Ember Data Migration - PKI Configuration Edit (hashicorp#10339)

* adds forms for pki config acme, cluster, crl and urls

* updates pki config edit worflow to use api service and forms

* updates pki config details workflow to use api service (hashicorp#10340)

* updates auth configure section route to pass schema key to OpenApiForm constructor

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Used to indicate a potential bug ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants