370ff365f4439fe227ca5ff0918c19342e922fe3
[policy/engine.git] / POLICY-SDK-APP / src / test / resources / Config_PM_TestClosedLoopPMPolicy.1.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2  <Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="urn:xacml:policy:id:a3ff3c48-b16f-436a-9aaa-ac7a3515b0e8" Version="1" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides">
3      <Description>TestClosedLoopPMPolicy@CreatedBy:rb7147@CreatedBy:@ModifiedBy:rb7147@ModifiedBy:</Description>
4      <Target>
5          <AnyOf>
6              <AllOf>
7                  <Match MatchId="org.onap.function.regex-match">
8                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">com.Config_PM_TestClosedLoopPMPolicy.1.xml</AttributeValue>
9                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="PolicyName" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
10                  </Match>
11              </AllOf>
12              <AllOf>
13                  <Match MatchId="org.onap.function.regex-match">
14                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Test</AttributeValue>
15                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="ONAPName" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
16                  </Match>
17                  <Match MatchId="org.onap.function.regex-match">
18                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SampleRiskType</AttributeValue>
19                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="RiskType" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
20                  </Match>
21                  <Match MatchId="org.onap.function.regex-match">
22                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue>
23                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="RiskLevel" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
24                  </Match>
25                  <Match MatchId="org.onap.function.regex-match">
26                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">True</AttributeValue>
27                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="guard" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
28                  </Match>
29                  <Match MatchId="org.onap.function.regex-match">
30                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">08-06-2017</AttributeValue>
31                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="TTLDate" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
32                  </Match>
33                  <Match MatchId="org.onap.function.regex-match">
34                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Registration Failure(Trinity)</AttributeValue>
35                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="ServiceType" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
36                  </Match>
37              </AllOf>
38          </AnyOf>
39      </Target>
40      <Rule RuleId="" Effect="Permit">
41          <Target>
42              <AnyOf>
43                  <AllOf>
44                      <Match MatchId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case">
45                          <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">ACCESS</AttributeValue>
46                          <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
47                      </Match>
48                      <Match MatchId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case">
49                          <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Config</AttributeValue>
50                          <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
51                      </Match>
52                  </AllOf>
53              </AnyOf>
54          </Target>
55          <AdviceExpressions>
56              <AdviceExpression AdviceId="PMID" AppliesTo="Permit">
57                  <AttributeAssignmentExpression AttributeId="type" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
58                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Configuration</AttributeValue>
59                  </AttributeAssignmentExpression>
60                  <AttributeAssignmentExpression AttributeId="URLID" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
61                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">$URL/Config/com.Config_PM_TestClosedLoopPMPolicy.1.json</AttributeValue>
62                  </AttributeAssignmentExpression>
63                  <AttributeAssignmentExpression AttributeId="PolicyName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
64                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">com.Config_PM_TestClosedLoopPMPolicy.1.xml</AttributeValue>
65                  </AttributeAssignmentExpression>
66                  <AttributeAssignmentExpression AttributeId="VersionNumber" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
67                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue>
68                  </AttributeAssignmentExpression>
69                  <AttributeAssignmentExpression AttributeId="matching:ONAPName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
70                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Test</AttributeValue>
71                  </AttributeAssignmentExpression>
72                  <AttributeAssignmentExpression AttributeId="matching:ServiceType" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
73                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Registration Failure(Trinity)</AttributeValue>
74                  </AttributeAssignmentExpression>
75                  <AttributeAssignmentExpression AttributeId="RiskType" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
76                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SampleRiskType</AttributeValue>
77                  </AttributeAssignmentExpression>
78                  <AttributeAssignmentExpression AttributeId="RiskLevel" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
79                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue>
80                  </AttributeAssignmentExpression>
81                  <AttributeAssignmentExpression AttributeId="guard" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
82                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">True</AttributeValue>
83                  </AttributeAssignmentExpression>
84                  <AttributeAssignmentExpression AttributeId="TTLDate" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
85                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">08-06-2017</AttributeValue>
86                  </AttributeAssignmentExpression>
87              </AdviceExpression>
88          </AdviceExpressions>
89      </Rule>
90  </Policy>