Dashboard ReOrg - Move cloud-services into app/core

This patch relocates the 'cloud-services' directory because
they are application specific, but needed by multiple dashboards.

Co-Authored-By: Tyr Johanson <tyr@hp.com>
Co-Authored-By: Shaoquan Chen <sean.chen2@hp.com>

Change-Id: Ief3b522ddeca2ea433c664c9b2ad61c245960812
Partially-Bug: #1458697
This commit is contained in:
Shaoquan Chen 2015-07-09 10:47:33 -07:00
parent 3c1ebed5c4
commit e3e5ab8345
3 changed files with 17 additions and 19 deletions

View File

@ -31,7 +31,6 @@ LAUNCH_INST = 'dashboard/launch-instance/'
ADD_JS_FILES = [
'dashboard/dashboard.module.js',
'dashboard/cloud-services/cloud-services.js',
LAUNCH_INST + 'launch-instance.module.js',
LAUNCH_INST + 'launch-instance-workflow.service.js',
LAUNCH_INST + 'launch-instance-modal.controller.js',
@ -57,7 +56,6 @@ ADD_JS_FILES = [
ADD_JS_SPEC_FILES = [
'dashboard/dashboard.module.spec.js',
'dashboard/cloud-services/cloud-services.spec.js',
LAUNCH_INST + 'launch-instance.module.spec.js',
LAUNCH_INST + 'launch-instance-workflow.service.spec.js',
LAUNCH_INST + 'launch-instance-modal.controller.spec.js',

View File

@ -20,12 +20,12 @@
var fromJson = angular.fromJson;
var isArray = angular.isArray;
angular.module('hz.dashboard')
angular.module('horizon.app.core')
/**
* @ngdoc factory
* @name hz.dashboard:factory:cloudServices
* @module hz.dashboard
* @name horizon.app.core:factory:cloudServices
* @module horizon.app.core
* @kind hash table
* @description
*
@ -78,8 +78,8 @@
/**
* @ngdoc factory
* @name hz.dashboard:factory:ifFeaturesEnabled
* @module hz.dashboard
* @name horizon.app.core:factory:ifFeaturesEnabled
* @module horizon.app.core
* @kind function
* @description
*
@ -111,8 +111,8 @@
/**
* @ngdoc factory
* @name hz.dashboard:factory:createDirectiveSpec
* @module hz.dashboard
* @name horizon.app.core:factory:createDirectiveSpec
* @module horizon.app.core
* @kind function
* @description
*
@ -160,8 +160,8 @@
/**
* @ngdoc directive
* @name hz.dashboard:directive:novaExtension
* @module hz.dashboard
* @name horizon.app.core:directive:novaExtension
* @module horizon.app.core
* @description
*
* This is to enable specifying conditional UI in a declarative way.
@ -204,8 +204,8 @@
/**
* @ngdoc directive
* @name hz.dashboard:directive:settingsService
* @module hz.dashboard
* @name horizon.app.core:directive:settingsService
* @module horizon.app.core
* @description
*
* This is to enable specifying conditional UI in a declarative way.

View File

@ -17,14 +17,14 @@
(function () {
'use strict';
describe('hz.dashboard', function () {
describe('horizon.app.core', function () {
// factory:cloudServices
describe('factory:cloudServices', function () {
var cloudServices;
beforeEach(module('hz.dashboard', function ($provide) {
beforeEach(module('horizon.app.core', function ($provide) {
$provide.value('horizon.openstack-service-api.cinder', {});
$provide.value('horizon.openstack-service-api.glance', {});
$provide.value('horizon.openstack-service-api.keystone', {});
@ -80,7 +80,7 @@
$q,
cloudServices;
beforeEach(module('hz.dashboard', function ($provide) {
beforeEach(module('horizon.app.core', function ($provide) {
$q = {
all: function () {
return {
@ -155,7 +155,7 @@
var createDirectiveSpec,
ifFeaturesEnabled;
beforeEach(module('hz.dashboard', function ($provide) {
beforeEach(module('horizon.app.core', function ($provide) {
ifFeaturesEnabled = function () {
return {
then: function () {
@ -212,7 +212,7 @@
].join('');
var element;
beforeEach(module('hz.dashboard', function ($provide) {
beforeEach(module('horizon.app.core', function ($provide) {
$provide.value('ifFeaturesEnabled', function () {
return {
then: function (successCallback) {
@ -262,7 +262,7 @@
].join('');
var element;
beforeEach(module('hz.dashboard', function ($provide) {
beforeEach(module('horizon.app.core', function ($provide) {
$provide.value('ifFeaturesEnabled', function () {
return {
then: function (successCallback) {