Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADCM-6321: Add advanced tests for mapping #91

Merged
merged 6 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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