1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 from ..service_templates import (consume_use_case, consume_node_cellar)
21 def test_use_case_compute_1():
22 consume_use_case('compute-1', 'instance')
25 def test_use_case_software_component_1():
26 consume_use_case('software-component-1', 'instance')
29 def test_use_case_block_storage_1():
30 consume_use_case('block-storage-1', 'instance')
33 def test_use_case_block_storage_2():
34 consume_use_case('block-storage-2', 'instance')
37 def test_use_case_block_storage_3():
38 consume_use_case('block-storage-3', 'instance')
41 def test_use_case_block_storage_4():
42 consume_use_case('block-storage-4', 'instance')
45 def test_use_case_block_storage_5():
46 consume_use_case('block-storage-5', 'instance')
49 def test_use_case_block_storage_6():
50 consume_use_case('block-storage-6', 'instance')
53 def test_use_case_object_storage_1():
54 consume_use_case('object-storage-1', 'instance')
57 def test_use_case_network_1():
58 consume_use_case('network-1', 'instance')
61 def test_use_case_network_2():
62 consume_use_case('network-2', 'instance')
65 def test_use_case_network_3():
66 consume_use_case('network-3', 'instance')
69 def test_use_case_network_4():
70 consume_use_case('network-4', 'instance')
73 def test_use_case_webserver_dbms_1():
74 consume_use_case('webserver-dbms-1', 'template')
77 def test_use_case_webserver_dbms_2():
78 consume_use_case('webserver-dbms-2', 'instance')
81 def test_use_case_multi_tier_1():
82 consume_use_case('multi-tier-1', 'instance')
85 def test_use_case_container_1():
86 consume_use_case('container-1', 'template')
91 def test_node_cellar_validation():
92 consume_node_cellar('validate')
95 def test_node_cellar_validation_no_cache():
96 consume_node_cellar('validate', False)
99 def test_node_cellar_presentation():
100 consume_node_cellar('presentation')
103 def test_node_cellar_model():
104 consume_node_cellar('template')
107 def test_node_cellar_types():
108 consume_node_cellar('types')
111 def test_node_cellar_instance():
112 consume_node_cellar('instance')