faeed916c4e60dc1febce898bcbd5e4556aa21e0
[policy/engine.git] / POLICY-SDK-APP / src / test / resources / Config_Fault_TestClosedLoopPolicy.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:947cfa37-71da-4c10-9e64-bb3635aa9f52" Version="1" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides">
3      <Description>TestClosedLoopPolicy@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_Fault_TestClosedLoopPolicy.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">DCAE</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">07-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              </AllOf>
34          </AnyOf>
35      </Target>
36      <Rule RuleId="" Effect="Permit">
37          <Target>
38              <AnyOf>
39                  <AllOf>
40                      <Match MatchId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case">
41                          <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">ACCESS</AttributeValue>
42                          <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"/>
43                      </Match>
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">Config</AttributeValue>
46                          <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"/>
47                      </Match>
48                  </AllOf>
49              </AnyOf>
50          </Target>
51          <AdviceExpressions>
52              <AdviceExpression AdviceId="faultID" AppliesTo="Permit">
53                  <AttributeAssignmentExpression AttributeId="type" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
54                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Configuration</AttributeValue>
55                  </AttributeAssignmentExpression>
56                  <AttributeAssignmentExpression AttributeId="URLID" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
57                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">$URL/Config/com.Config_Fault_TestClosedLoopPolicy.1.json</AttributeValue>
58                  </AttributeAssignmentExpression>
59                  <AttributeAssignmentExpression AttributeId="PolicyName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
60                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">com.Config_Fault_TestClosedLoopPolicy.1.xml</AttributeValue>
61                  </AttributeAssignmentExpression>
62                  <AttributeAssignmentExpression AttributeId="VersionNumber" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
63                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue>
64                  </AttributeAssignmentExpression>
65                  <AttributeAssignmentExpression AttributeId="matching:ONAPName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
66                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">DCAE</AttributeValue>
67                  </AttributeAssignmentExpression>
68                  <AttributeAssignmentExpression AttributeId="RiskType" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
69                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SampleRiskType</AttributeValue>
70                  </AttributeAssignmentExpression>
71                  <AttributeAssignmentExpression AttributeId="RiskLevel" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
72                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue>
73                  </AttributeAssignmentExpression>
74                  <AttributeAssignmentExpression AttributeId="guard" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
75                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">True</AttributeValue>
76                  </AttributeAssignmentExpression>
77                  <AttributeAssignmentExpression AttributeId="TTLDate" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
78                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">07-06-2017</AttributeValue>
79                  </AttributeAssignmentExpression>
80              </AdviceExpression>
81          </AdviceExpressions>
82      </Rule>
83  </Policy>