|
@@ -25,8 +25,8 @@ describe('App.HostStackVersion', function () {
|
|
|
describe("#displayStatus", function () {
|
|
|
var testCases = [
|
|
|
{
|
|
|
- status: 'INIT',
|
|
|
- result: Em.I18n.t('hosts.host.stackVersions.status.init')
|
|
|
+ status: 'OUT_OF_SYNC',
|
|
|
+ result: Em.I18n.t('hosts.host.stackVersions.status.out_of_sync')
|
|
|
},
|
|
|
{
|
|
|
status: 'INSTALLED',
|
|
@@ -41,8 +41,20 @@ describe('App.HostStackVersion', function () {
|
|
|
result: Em.I18n.t('hosts.host.stackVersions.status.install_failed')
|
|
|
},
|
|
|
{
|
|
|
- status: '',
|
|
|
- result: Em.I18n.t('common.unknown')
|
|
|
+ status: 'UPGRADE_FAILED',
|
|
|
+ result: Em.I18n.t('hosts.host.stackVersions.status.upgrade_failed')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ status: 'UPGRADING',
|
|
|
+ result: Em.I18n.t('hosts.host.stackVersions.status.upgrading')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ status: 'CURRENT',
|
|
|
+ result: Em.I18n.t('hosts.host.stackVersions.status.current')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ status: 'ANY',
|
|
|
+ result: 'Any'
|
|
|
}
|
|
|
];
|
|
|
afterEach(function () {
|