summaryrefslogtreecommitdiffstats
path: root/snaps/config/tests/cluster_template_tests.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-11-28 13:16:54 -0700
committerspisarski <s.pisarski@cablelabs.com>2017-11-28 13:16:54 -0700
commit530ca566f0554d69ac11dd3b919be25c2e689ed6 (patch)
tree1a2013266bfaa0ce467b38c7b3ffcf64eac8408d /snaps/config/tests/cluster_template_tests.py
parent0e06ebe62fcff9b491a0edd89bdf511f88d091e7 (diff)
Added cluster template creator/state machine class.
Created class and tests for creating and managing cluster templates. JIRA: SNAPS-235 Change-Id: Ia91aef9507fc39d1814dce03169aab0b784721a6 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/config/tests/cluster_template_tests.py')
-rw-r--r--snaps/config/tests/cluster_template_tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/snaps/config/tests/cluster_template_tests.py b/snaps/config/tests/cluster_template_tests.py
index 5c695b9..e06b783 100644
--- a/snaps/config/tests/cluster_template_tests.py
+++ b/snaps/config/tests/cluster_template_tests.py
@@ -14,9 +14,9 @@
# limitations under the License.
import unittest
-from snaps.config.cluster_template import ClusterTemplateConfig, \
- ClusterTypeConfigError, ServerType, DockerStorageDriver, \
- ContainerOrchestrationEngine
+from snaps.config.cluster_template import (
+ ClusterTemplateConfig, ClusterTemplateConfigError, ServerType,
+ DockerStorageDriver, ContainerOrchestrationEngine)
class ClusterTemplateConfigUnitTests(unittest.TestCase):
@@ -25,15 +25,15 @@ class ClusterTemplateConfigUnitTests(unittest.TestCase):
"""
def test_no_params(self):
- with self.assertRaises(ClusterTypeConfigError):
+ with self.assertRaises(ClusterTemplateConfigError):
ClusterTemplateConfig()
def test_empty_config(self):
- with self.assertRaises(ClusterTypeConfigError):
+ with self.assertRaises(ClusterTemplateConfigError):
ClusterTemplateConfig(config=dict())
def test_name_only(self):
- with self.assertRaises(ClusterTypeConfigError):
+ with self.assertRaises(ClusterTemplateConfigError):
ClusterTemplateConfig(name='foo')
def test_minimal_named(self):