adds mount config details to kubernetes configuration view (#22926)

* adds mount config details to kubernetes configuration view

* adds changelog entry
This commit is contained in:
Jordan Reimer
2023-09-08 15:18:54 -06:00
committed by GitHub
parent 2b74a4826b
commit 4bcd4db765
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}} {{/if}}
{{else}} {{else}}
<ConfigCta /> <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(); await this.renderComponent();
assert.dom('.title svg').hasClass('flight-icon-kubernetes', 'Kubernetes icon renders in title'); assert.dom('.title svg').hasClass('flight-icon-kubernetes', 'Kubernetes icon renders in title');
assert.dom('.title').hasText('kubernetes-test', 'Mount path 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]') .dom('[data-test-toolbar-config-action]')
.hasText('Configure Kubernetes', 'Toolbar action has correct text'); .hasText('Configure Kubernetes', 'Toolbar action has correct text');
assert.dom('[data-test-config-cta]').exists('Config cta renders'); 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) { test('it should render message for inferred configuration', async function (assert) {