|
@@ -85,12 +85,13 @@ describe('App.MainServiceItemView', function () {
|
|
|
totalCount: 1
|
|
|
})
|
|
|
],
|
|
|
- hostComponents: [
|
|
|
+ clientComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'HDFS_CLIENT',
|
|
|
- isMaster: false,
|
|
|
- isSlave: false
|
|
|
- }),
|
|
|
+ totalCount: 1
|
|
|
+ })
|
|
|
+ ],
|
|
|
+ hostComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'NAMENODE',
|
|
|
isMaster: true,
|
|
@@ -111,20 +112,21 @@ describe('App.MainServiceItemView', function () {
|
|
|
{"action": "runSmokeTest", "label": "Run Service Check", "cssClass": "icon-thumbs-up-alt"},
|
|
|
{"action": "turnOnOffPassive", "context": "Turn On Maintenance Mode for HDFS", "label": "Turn On Maintenance Mode", "cssClass": "icon-medkit", "disabled": false},
|
|
|
{"action": "rebalanceHdfsNodes", "customCommand": "REBALANCEHDFS", "context": "Rebalance HDFS", "label": "Rebalance HDFS", "cssClass": "icon-refresh", "disabled": false},
|
|
|
- {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": true, "disabled": false, hasSubmenu: false, submenuOptions: []}
|
|
|
+ {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": false, "disabled": false, hasSubmenu: false, submenuOptions: []}
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
serviceName: "ZOOKEEPER",
|
|
|
displayName: "ZooKeeper",
|
|
|
serviceTypes: [],
|
|
|
slaveComponents: [],
|
|
|
- hostComponents: [
|
|
|
+ clientComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'ZOOKEEPER_CLIENT',
|
|
|
- isMaster: false,
|
|
|
- isSlave: false
|
|
|
- }),
|
|
|
+ totalCount: 1
|
|
|
+ })
|
|
|
+ ],
|
|
|
+ hostComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'ZOOKEEPER_SERVER',
|
|
|
isMaster: true,
|
|
@@ -140,7 +142,7 @@ describe('App.MainServiceItemView', function () {
|
|
|
{"action": "runSmokeTest", "label": "Run Service Check", "cssClass": "icon-thumbs-up-alt"},
|
|
|
{"action": "turnOnOffPassive", "context": "Turn On Maintenance Mode for ZooKeeper", "label": "Turn On Maintenance Mode", "cssClass": "icon-medkit", "disabled": false},
|
|
|
{"cssClass": "icon-plus", "label": "Add ZooKeeper Server", "service": "ZOOKEEPER", "component": "ZOOKEEPER_SERVER", "action": "addZOOKEEPER_SERVER", "disabled": "disabled", tooltip: ''},
|
|
|
- {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": true, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
+ {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": false, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -153,6 +155,12 @@ describe('App.MainServiceItemView', function () {
|
|
|
totalCount: 1
|
|
|
})
|
|
|
],
|
|
|
+ clientComponents: [
|
|
|
+ Em.Object.create({
|
|
|
+ componentName: 'YARN_CLIENT',
|
|
|
+ totalCount: 1
|
|
|
+ })
|
|
|
+ ],
|
|
|
hostComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'APP_TIMELINE_SERVER',
|
|
@@ -163,11 +171,6 @@ describe('App.MainServiceItemView', function () {
|
|
|
componentName: 'RESOURCEMANAGER',
|
|
|
isMaster: true,
|
|
|
isSlave: false
|
|
|
- }),
|
|
|
- Em.Object.create({
|
|
|
- componentName: 'YARN_CLIENT',
|
|
|
- isMaster: false,
|
|
|
- isSlave: false
|
|
|
})
|
|
|
],
|
|
|
result: [
|
|
@@ -179,7 +182,7 @@ describe('App.MainServiceItemView', function () {
|
|
|
{"action": "enableRMHighAvailability", "label": "Enable ResourceManager HA", "cssClass": "icon-arrow-up", "isHidden": false, disabled: false},
|
|
|
{"action": "runSmokeTest", "label": "Run Service Check", "cssClass": "icon-thumbs-up-alt"},
|
|
|
{"action": "turnOnOffPassive", "context": "Turn On Maintenance Mode for YARN", "label": "Turn On Maintenance Mode", "cssClass": "icon-medkit", "disabled": false},
|
|
|
- {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": true, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
+ {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": false, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -187,23 +190,24 @@ describe('App.MainServiceItemView', function () {
|
|
|
displayName: "MapReduce2",
|
|
|
serviceTypes: [],
|
|
|
slaveComponents: [],
|
|
|
+ clientComponents: [
|
|
|
+ Em.Object.create({
|
|
|
+ componentName: 'MAPREDUCE2_CLIENT',
|
|
|
+ totalCount: 1
|
|
|
+ })
|
|
|
+ ],
|
|
|
hostComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'HISTORYSERVER',
|
|
|
isMaster: true,
|
|
|
isSlave: false
|
|
|
- }),
|
|
|
- Em.Object.create({
|
|
|
- componentName: 'MAPREDUCE2_CLIENT',
|
|
|
- isMaster: false,
|
|
|
- isSlave: false
|
|
|
})
|
|
|
],
|
|
|
result: [
|
|
|
{"action": "restartAllHostComponents", "context": "MAPREDUCE2", "label": "Restart All", "cssClass": "icon-repeat", "disabled": false},
|
|
|
{"action": "runSmokeTest", "label": "Run Service Check", "cssClass": "icon-thumbs-up-alt"},
|
|
|
{"action": "turnOnOffPassive", "context": "Turn On Maintenance Mode for MapReduce2", "label": "Turn On Maintenance Mode", "cssClass": "icon-medkit", "disabled": false},
|
|
|
- {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": true, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
+ {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": false, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -211,6 +215,7 @@ describe('App.MainServiceItemView', function () {
|
|
|
displayName: "Kafka",
|
|
|
serviceTypes: [],
|
|
|
slaveComponents: [],
|
|
|
+ clientComponents: [],
|
|
|
hostComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'KAFKA_BROKER',
|
|
@@ -229,6 +234,7 @@ describe('App.MainServiceItemView', function () {
|
|
|
serviceName: "FLUME",
|
|
|
displayName: "Flume",
|
|
|
serviceTypes: [],
|
|
|
+ clientComponents: [],
|
|
|
slaveComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'FLUME_HANDLER',
|
|
@@ -261,12 +267,13 @@ describe('App.MainServiceItemView', function () {
|
|
|
totalCount: 1
|
|
|
})
|
|
|
],
|
|
|
- hostComponents: [
|
|
|
+ clientComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'HBASE_CLIENT',
|
|
|
- isMaster: false,
|
|
|
- isSlave: false
|
|
|
- }),
|
|
|
+ totalCount: 1
|
|
|
+ })
|
|
|
+ ],
|
|
|
+ hostComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'HBASE_MASTER',
|
|
|
isMaster: true,
|
|
@@ -283,7 +290,7 @@ describe('App.MainServiceItemView', function () {
|
|
|
{"action": "runSmokeTest", "label": "Run Service Check", "cssClass": "icon-thumbs-up-alt"},
|
|
|
{"action": "turnOnOffPassive", "context": "Turn On Maintenance Mode for HBase", "label": "Turn On Maintenance Mode", "cssClass": "icon-medkit", "disabled": false},
|
|
|
{"cssClass": "icon-plus", "label": "Add HBase Master", "service": "HBASE", "component": "HBASE_MASTER", "action": "addHBASE_MASTER", "disabled": '', tooltip: ''},
|
|
|
- {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": true, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
+ {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": false, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -291,12 +298,13 @@ describe('App.MainServiceItemView', function () {
|
|
|
displayName: "Oozie",
|
|
|
serviceTypes: [],
|
|
|
slaveComponents: [],
|
|
|
- hostComponents: [
|
|
|
+ clientComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'OOZIE_CLIENT',
|
|
|
- isMaster: false,
|
|
|
- isSlave: false
|
|
|
- }),
|
|
|
+ totalCount: 1
|
|
|
+ })
|
|
|
+ ],
|
|
|
+ hostComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'OOZIE_SERVER',
|
|
|
isMaster: true,
|
|
@@ -308,7 +316,7 @@ describe('App.MainServiceItemView', function () {
|
|
|
{"action": "reassignMaster", "context": "OOZIE_SERVER", "label": "Move Oozie Server", "cssClass": "icon-share-alt", "disabled": false},
|
|
|
{"action": "runSmokeTest", "label": "Run Service Check", "cssClass": "icon-thumbs-up-alt"},
|
|
|
{"action": "turnOnOffPassive", "context": "Turn On Maintenance Mode for Oozie", "label": "Turn On Maintenance Mode", "cssClass": "icon-medkit", "disabled": false},
|
|
|
- {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": true, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
+ {"action": "downloadClientConfigs", "label": "Download Client Configs", "cssClass": "icon-download-alt", "isHidden": false, "disabled": false, "hasSubmenu": false, "submenuOptions": []}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -316,6 +324,7 @@ describe('App.MainServiceItemView', function () {
|
|
|
displayName: "Knox",
|
|
|
serviceTypes: [],
|
|
|
slaveComponents: [],
|
|
|
+ clientComponents: [],
|
|
|
hostComponents: [
|
|
|
Em.Object.create({
|
|
|
componentName: 'KNOX_GATEWAY',
|
|
@@ -402,13 +411,13 @@ describe('App.MainServiceItemView', function () {
|
|
|
content: Em.Object.create({
|
|
|
hostComponents: testCase.hostComponents,
|
|
|
slaveComponents: testCase.slaveComponents,
|
|
|
+ clientComponents: testCase.clientComponents,
|
|
|
serviceName: testCase.serviceName,
|
|
|
displayName: testCase.displayName,
|
|
|
serviceTypes: testCase.serviceTypes,
|
|
|
passiveState: 'OFF'
|
|
|
}),
|
|
|
- isSeveralClients: false,
|
|
|
- clientComponents: []
|
|
|
+ isSeveralClients: false
|
|
|
}),
|
|
|
mastersExcludedCommands: mastersExcludedCommands,
|
|
|
hasConfigTab: hasConfigTab
|