- {{#each featuresInfo as |info|}}
+ {{#each this.featuresInfo as |info|}}
{{#if info.active}}
diff --git a/ui/app/templates/vault/cluster/unseal.hbs b/ui/app/templates/vault/cluster/unseal.hbs
index d135f5544..89b32a233 100644
--- a/ui/app/templates/vault/cluster/unseal.hbs
+++ b/ui/app/templates/vault/cluster/unseal.hbs
@@ -21,7 +21,7 @@
@bottomBorder={{true}}
@message="Your Vault license has terminated and Vault is sealed. To unseal, add a current license to your configuration and restart Vault."
>
- License documentation
+ License documentation
diff --git a/ui/config/environment.js b/ui/config/environment.js
index d8b4be440..5e1fa3667 100644
--- a/ui/config/environment.js
+++ b/ui/config/environment.js
@@ -45,6 +45,9 @@ module.exports = function(environment) {
ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
+ // ENV['ember-cli-mirage'] = {
+ // enabled: true,
+ // };
}
if (environment === 'test') {
diff --git a/ui/mirage/config.js b/ui/mirage/config.js
index d70eae4ac..208b3764b 100644
--- a/ui/mirage/config.js
+++ b/ui/mirage/config.js
@@ -1,3 +1,5 @@
+const EXPIRY_DATE = '2021-05-12T23:20:50.52Z';
+
export default function() {
this.namespace = 'v1';
@@ -29,6 +31,33 @@ export default function() {
};
});
+ this.get('/sys/license/status', function() {
+ return {
+ autoloading_used: false,
+ stored: {
+ expiration_time: EXPIRY_DATE,
+ features: ['DR Replication', 'Namespaces', 'Lease Count Quotas', 'Automated Snapshots'],
+ license_id: '0eca7ef8-ebc0-f875-315e-3cc94a7870cf',
+ performance_standby_count: 0,
+ start_time: '2020-04-28T00:00:00Z',
+ },
+ persisted_autoload: {
+ expiration_time: EXPIRY_DATE,
+ features: ['DR Replication', 'Namespaces', 'Lease Count Quotas', 'Automated Snapshots'],
+ license_id: '0eca7ef8-ebc0-f875-315e-3cc94a7870cf',
+ performance_standby_count: 0,
+ start_time: '2020-04-28T00:00:00Z',
+ },
+ autoloaded: {
+ expiration_time: EXPIRY_DATE,
+ features: ['DR Replication', 'Namespaces', 'Lease Count Quotas', 'Automated Snapshots'],
+ license_id: '0eca7ef8-ebc0-f875-315e-3cc94a7870cf',
+ performance_standby_count: 0,
+ start_time: '2020-04-28T00:00:00Z',
+ },
+ };
+ });
+
this.get('/sys/health', function() {
return {
initialized: true,
diff --git a/ui/tests/integration/components/license-info-test.js b/ui/tests/integration/components/license-info-test.js
index 3b6125ea4..407c0578f 100644
--- a/ui/tests/integration/components/license-info-test.js
+++ b/ui/tests/integration/components/license-info-test.js
@@ -3,7 +3,6 @@ import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-import sinon from 'sinon';
import { create } from 'ember-cli-page-object';
import license from '../../pages/components/license-info';
import { allFeatures } from 'vault/helpers/all-features';
@@ -15,39 +14,6 @@ const component = create(license);
module('Integration | Component | license info', function(hooks) {
setupRenderingTest(hooks);
- const LICENSE_WARNING_TEXT = `Warning Your temporary license expires in 30 minutes and your vault will seal. Please enter a valid license below.`;
-
- test('it renders properly for temporary license', async function(assert) {
- const now = Date.now();
- this.set('licenseId', 'temporary');
- this.set('expirationTime', addMinutes(now, 30));
- this.set('startTime', now);
- this.set('features', ['HSM', 'Namespaces']);
- await render(
- hbs`