f52e1f607d
Adds visibility for `Expose.Checks` config setting for proxies. 1. Adds an 'Exposed Path' tab to the proxy detail page to show the user information on exposed paths. 2. If the users has exposed their healthchecks we also add this information to the Service detail page for this proxy (only for http2 and gRPC checks)
24 lines
751 B
JavaScript
24 lines
751 B
JavaScript
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render, find } from '@ember/test-helpers';
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
module('Integration | Component | healthcheck output', function(hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function(assert) {
|
|
// Set any properties with this.set('myProperty', 'value');
|
|
// Handle any actions with this.on('myAction', function(val) { ... });
|
|
|
|
await render(hbs`{{healthcheck-output}}`);
|
|
|
|
assert.equal(find('*').textContent.trim(), '');
|
|
|
|
// Template block usage:
|
|
await render(hbs`
|
|
{{#healthcheck-output}}{{/healthcheck-output}}
|
|
`);
|
|
assert.equal(find('*').textContent.trim(), '');
|
|
});
|
|
});
|