Skip to content

Commit

Permalink
Update generate_policy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffsl committed May 1, 2020
1 parent 2e56123 commit eeb7282
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_generate_policy_topics():
# Load the policy and pull out the allowed publications and subscriptions
policy = load_policy(os.path.join(tmpdir, 'test-policy.xml'))
profile = policy.find(
path='profiles/profile[@ns="/"][@node="test_generate_policy_topics_node"]')
path='enclaves/enclave[@path="/"]/profiles/profile[@ns="/"][@node="test_generate_policy_topics_node"]')
assert profile is not None
topics_publish_allowed = profile.find(path='topics[@publish="ALLOW"]')
assert topics_publish_allowed is not None
Expand Down Expand Up @@ -88,7 +88,7 @@ def test_generate_policy_services():
# Load the policy and pull out allowed replies and requests
policy = load_policy(os.path.join(tmpdir, 'test-policy.xml'))
profile = policy.find(
path='profiles/profile[@ns="/"][@node="test_generate_policy_services_node"]')
path='enclaves/enclave[@path="/"]/profiles/profile[@ns="/"][@node="test_generate_policy_services_node"]')
assert profile is not None
service_reply_allowed = profile.find(path='services[@reply="ALLOW"]')
assert service_reply_allowed is not None
Expand Down

0 comments on commit eeb7282

Please sign in to comment.