aboutsummaryrefslogtreecommitdiffstats
path: root/test/placement-tests/test_by_scope.yaml
blob: 1968b8946fb02422ffa5bb40d01f6ed07fb79863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
references:
    service_name:
        source: request
        value: serviceInfo.serviceName
    resource:
        source: request
        value: placementInfo.placementDemands.resourceModuleName
    subscriber_role:
        source: onap.policies.optimization.SubscriberPolicy
        value: properties.properties.subscriberRole

policy_info:
    placement:
        policy_fetch: by_scope
        policy_scope:
            -
                scope:
                    - OSDF_FRANKFURT
                    - onap.policies.optimization.SubscriberPolicy
                service:
                    - get_param: service_name
            -
                scope:
                    - OSDF_FRANKFURT
                    - get_param: subscriber_role
                service:
                    - get_param: service_name
    #            -
    #                - get_param: service_name
    #                - get_param: subscriber_role
    default:  # if no explicit service related information is needed
        policy_fetch: by_name
        policy_scope: none