update link to upper-constraints.txt
[optf/osdf.git] / test / placement-tests / test_by_scope.yaml
1 references:
2     service_name:
3         source: request
4         value: serviceInfo.serviceName
5     resource:
6         source: request
7         value: placementInfo.placementDemands.resourceModuleName
8     subscriber_role:
9         source: onap.policies.optimization.SubscriberPolicy
10         value: properties.properties.subscriberRole
11
12 policy_info:
13     placement:
14         policy_fetch: by_scope
15         policy_scope:
16             -
17                 scope:
18                     - OSDF_FRANKFURT
19                     - onap.policies.optimization.SubscriberPolicy
20                 service:
21                     - get_param: service_name
22             -
23                 scope:
24                     - OSDF_FRANKFURT
25                     - get_param: subscriber_role
26                 service:
27                     - get_param: service_name
28     #            -
29     #                - get_param: service_name
30     #                - get_param: subscriber_role
31     default:  # if no explicit service related information is needed
32         policy_fetch: by_name
33         policy_scope: none