Skip to content

Commit

Permalink
ADCM-6321: Add advanced tests for mapping (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Starovoitov authored Feb 13, 2025
1 parent f6f663f commit ed89f46
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 2 deletions.
36 changes: 36 additions & 0 deletions tests/integration/bundles/cluster_bound_to_component/config.yaml
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 tests/integration/bundles/cluster_requires_service/config.yaml
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
Loading

0 comments on commit ed89f46

Please sign in to comment.