backport of commit 4bcd4db765 (#22947)

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
This commit is contained in:
hc-github-team-secure-vault-core
2023-09-08 18:12:06 -04:00
committed by GitHub
parent 94db7e0e52
commit 5498501c7c
3 changed files with 8 additions and 2 deletions

3
changelog/22926.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:improvement
ui: Adds mount configuration details to Kubernetes secrets engine configuration view
```

View File

@@ -28,4 +28,6 @@
{{/if}}
{{else}}
<ConfigCta />
{{/if}}
{{/if}}
<SecretsEngineMountConfig @model={{@backend}} class="has-top-margin-xl has-bottom-margin-xl" data-test-mount-config />

View File

@@ -56,7 +56,7 @@ module('Integration | Component | kubernetes | Page::Configuration', function (h
};
});
test('it should render tab page header and config cta', async function (assert) {
test('it should render tab page header, config cta and mount config', async function (assert) {
await this.renderComponent();
assert.dom('.title svg').hasClass('flight-icon-kubernetes', 'Kubernetes icon renders in title');
assert.dom('.title').hasText('kubernetes-test', 'Mount path renders in title');
@@ -64,6 +64,7 @@ module('Integration | Component | kubernetes | Page::Configuration', function (h
.dom('[data-test-toolbar-config-action]')
.hasText('Configure Kubernetes', 'Toolbar action has correct text');
assert.dom('[data-test-config-cta]').exists('Config cta renders');
assert.dom('[data-test-mount-config]').exists('Mount config renders');
});
test('it should render message for inferred configuration', async function (assert) {