neutron-lbaas-dashboard/neutron_lbaas_dashboard/static/dashboard/project/nlbaasv2/workflow/loadbalancer/loadbalancer.controller.spec.js
Michael Johnson cddbf697e6 Fix neutron-lbaas-dashboard and octavia-dashboard
This patch fixes neutron-lbaas-dashboard to function properly when
installed in horizon with octavia-dashboard.

Story: 2004913
Task: 29266

Change-Id: Ib3e1e4d0bef08745bdbba2437481bfba169931ec
2019-03-18 17:19:44 +00:00

42 lines
1.2 KiB
JavaScript

/*
* Copyright 2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function() {
'use strict';
describe('Load Balancer Details Step', function() {
beforeEach(module('horizon.framework.util.i18n'));
beforeEach(module('horizon.dashboard.project.nlbaasv2'));
describe('nLBaaSLoadBalancerDetailsController', function() {
var ctrl;
beforeEach(inject(function($controller) {
ctrl = $controller('nLBaaSLoadBalancerDetailsController');
}));
it('should define error messages for invalid fields', function() {
expect(ctrl.ipError).toBeDefined();
});
it('should define patterns for field validation', function() {
expect(ctrl.ipPattern).toBeDefined();
});
});
});
})();