e9b38cc139efdf6b6b06271fd8292586544eb043
[policy/engine.git] / POLICY-SDK-APP / src / test / resources / Config_BRMS_Raw_TestBRMSRawPolicy.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:05c1c4eb-a94c-4f1c-8ff7-548f7d0b03c2" Version="1" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides">
3      <Description>TestBRMSRawPolicy@CreatedBy:@CreatedBy:@ModifiedBy:@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_BRMS_Raw_TestBRMSRawPolicy.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">DROOLS</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">BRMS_RAW_RULE</AttributeValue>
19                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="ConfigName" 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">High</AttributeValue>
23                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="RiskType" 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">2</AttributeValue>
27                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="RiskLevel" 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">True</AttributeValue>
31                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="guard" 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">08-06-2017</AttributeValue>
35                      <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="TTLDate" 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="BRMSRAWID" 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_BRMS_Raw_TestBRMSRawPolicy.1.txt</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_BRMS_Raw_TestBRMSRawPolicy.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">DROOLS</AttributeValue>
71                  </AttributeAssignmentExpression>
72                  <AttributeAssignmentExpression AttributeId="matching:ConfigName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
73                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">BRMS_RAW_RULE</AttributeValue>
74                  </AttributeAssignmentExpression>
75                  <AttributeAssignmentExpression AttributeId="controller:TestController" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
76                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">{
77      "artifactId": "testing",
78      "groupId" : "org.onap"
79  }</AttributeValue>
80                  </AttributeAssignmentExpression>
81                  <AttributeAssignmentExpression AttributeId="dependencies:TestBRMSDependency," Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
82                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">[{
83      "groupId" :"org.test" ,
84      "artifactId" : "test_2.10",
85      "version" : "3.0.2",
86      "exclusions" : [ {
87          "groupId" :"org.test.tests" ,
88          "artifactId" : "test-config_2.10"
89      }]
90  }]</AttributeValue>
91                  </AttributeAssignmentExpression>
92                  <AttributeAssignmentExpression AttributeId="key:controller" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
93                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">vFW</AttributeValue>
94                  </AttributeAssignmentExpression>
95                  <AttributeAssignmentExpression AttributeId="RiskType" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
96                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">High</AttributeValue>
97                  </AttributeAssignmentExpression>
98                  <AttributeAssignmentExpression AttributeId="RiskLevel" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
99                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">2</AttributeValue>
100                  </AttributeAssignmentExpression>
101                  <AttributeAssignmentExpression AttributeId="guard" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
102                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">True</AttributeValue>
103                  </AttributeAssignmentExpression>
104                  <AttributeAssignmentExpression AttributeId="TTLDate" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
105                      <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">08-06-2017</AttributeValue>
106                  </AttributeAssignmentExpression>
107              </AdviceExpression>
108          </AdviceExpressions>
109      </Rule>
110  </Policy>