-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADCM-6321: Add advanced tests for mapping (#91)
- Loading branch information
1 parent
0b5e24d
commit 491e8ca
Showing
3 changed files
with
393 additions
and
2 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
tests/integration/bundles/cluster_bound_to_component/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
--- | ||
- type: cluster | ||
name: cluster_bound | ||
version: 1.0 | ||
|
||
- type: service | ||
name: first_service | ||
flag_autogeneration: | ||
enable_outdated_config: True | ||
version: 1.5 | ||
|
||
components: | ||
first_component: | ||
flag_autogeneration: | ||
enable_outdated_config: True | ||
second_component: | ||
flag_autogeneration: | ||
enable_outdated_config: False | ||
|
||
- type: service | ||
name: second_service | ||
flag_autogeneration: | ||
enable_outdated_config: False | ||
version: 1.2 | ||
components: | ||
first_component: | ||
bound_to: | ||
service: first_service | ||
component: first_component | ||
flag_autogeneration: | ||
enable_outdated_config: False | ||
second_component: | ||
flag_autogeneration: | ||
enable_outdated_config: False | ||
|
51 changes: 51 additions & 0 deletions
51
tests/integration/bundles/cluster_requires_service/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
--- | ||
- type: cluster | ||
name: cluster_dep | ||
version: 1.0 | ||
|
||
config: &config | ||
- name: string_param | ||
type: string | ||
default: some_default_value | ||
|
||
- name: int_param | ||
type: integer | ||
display_name: Some Int | ||
default: 12 | ||
|
||
- type: service | ||
name: first_service | ||
flag_autogeneration: | ||
enable_outdated_config: True | ||
version: 1.5 | ||
config: *config | ||
|
||
components: | ||
first_component: | ||
flag_autogeneration: | ||
enable_outdated_config: True | ||
config: *config | ||
second_component: | ||
flag_autogeneration: | ||
enable_outdated_config: False | ||
config: *config | ||
|
||
- type: service | ||
name: second_service | ||
requires: | ||
- service: first_service | ||
component: first_component | ||
flag_autogeneration: | ||
enable_outdated_config: False | ||
version: 1.2 | ||
config: *config | ||
components: | ||
first_component: | ||
flag_autogeneration: | ||
enable_outdated_config: False | ||
config: *config | ||
second_component: | ||
flag_autogeneration: | ||
enable_outdated_config: False | ||
config: *config |
Oops, something went wrong.