horizon/openstack_dashboard/test/jasmine/jasmine_tests.py
Matt Borland 550d3a821b [Launch Instance Fix] Add Security Group Step Unit Tests
This patch adds unit tests for the security group step.  These tests are
focused around the controller and its related components (no selenium tests
or view tests).

Change-Id: I14dbc603e3bafdcebcb13b0ef7f77d05a26a2122
Partial-Bug: 1435869
2015-04-13 12:01:41 -07:00

51 lines
1.8 KiB
Python

#
# (c) Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# 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.
from horizon.test import helpers as test
LAUNCH_INST = "dashboard/launch-instance"
class ServicesTests(test.JasmineTests):
# sources would go here
sources = [
'dashboard/dashboard.module.js',
'dashboard/workflow/workflow.js',
LAUNCH_INST + '/launch-instance.js',
LAUNCH_INST + '/launch-instance.model.js',
LAUNCH_INST + '/security-groups/security-groups.js',
LAUNCH_INST + '/keypair/keypair.js',
LAUNCH_INST + '/configuration/configuration.js',
LAUNCH_INST + '/flavor/flavor.js',
LAUNCH_INST + '/network/network.js',
LAUNCH_INST + '/source/source.js',
]
# spec files would go here
specs = [
'dashboard/dashboard.module.js',
'dashboard/workflow/workflow.js',
LAUNCH_INST + '/launch-instance.spec.js',
LAUNCH_INST + '/launch-instance.model.spec.js',
LAUNCH_INST + '/security-groups/security-groups.spec.js',
LAUNCH_INST + '/keypair/keypair.spec.js',
LAUNCH_INST + '/configuration/configuration.spec.js',
LAUNCH_INST + '/flavor/flavor.spec.js',
LAUNCH_INST + '/network/network.spec.js',
LAUNCH_INST + '/source/source.spec.js',
]
externalTemplates = [
]