Skip to content

Commit

Permalink
Rename policy files from *.xml to *.policy.xml
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
  • Loading branch information
ivanpauno committed Mar 31, 2020
1 parent 547e2c2 commit 8e10288
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sros2/test/policies/policy_to_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
permissions_xsd = etree.XMLSchema(etree.parse(permissions_xsd_path))

# Get policy
policy_xml_path = 'sample_policy.xml'
policy_xml_path = 'sample.policy.xml'
policy_xml = etree.parse(policy_xml_path)
policy_xml.xinclude()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<policy version="0.1.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<profiles>
<xi:include href="talker_listener.xml"
<xi:include href="talker_listener.policy.xml"
xpointer="xpointer(/policy/profiles/*)"/>
<xi:include href="add_two_ints.xml"
<xi:include href="add_two_ints.policy.xml"
xpointer="xpointer(/policy/profiles/*)"/>
<xi:include href="minimal_action.xml"
<xi:include href="minimal_action.policy.xml"
xpointer="xpointer(/policy/profiles/*)"/>
<profile ns="/" node="admin">
<xi:include href="common/node.xml"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sros2/test/test_policy_to_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_policy_to_permissions():

# Get policy
test_dir = os.path.dirname(os.path.abspath(__file__))
policy_xml_path = os.path.join(test_dir, 'policies', 'sample_policy.xml')
policy_xml_path = os.path.join(test_dir, 'policies', 'sample.policy.xml')
policy_xml = etree.parse(policy_xml_path)
policy_xml.xinclude()

Expand Down

0 comments on commit 8e10288

Please sign in to comment.