Skip to content

Commit

Permalink
Adjust test to reflect reality
Browse files Browse the repository at this point in the history
The expected behavior in the test is inconsistent with other tests.
Adjust the test so that it passes, rather than being an expected
failure.
  • Loading branch information
DemiMarie committed Apr 28, 2024
1 parent 56fdd7d commit 6fa1106
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qrexec/tests/policy_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,6 @@ def test_055_eval_resolve_dispvm_from_default_target(self):
self.assertEqual(resolution.default_target, "@dispvm:default-dvm")
self.assertEqual(resolution.request.target, "test-vm1")

@unittest.expectedFailure
def test_060_eval_to_dom0(self):
policy = parser.StringPolicy(
policy="""\
Expand All @@ -1589,8 +1588,8 @@ def test_060_eval_to_dom0(self):

self.assertIsInstance(resolution, parser.AllowResolution)
self.assertEqual(resolution.rule, policy.rules[0])
self.assertEqual(resolution.target, "@adminvm")
self.assertEqual(resolution.request.target, "dom0")
self.assertEqual(resolution.target, "dom0")
self.assertEqual(resolution.request.target, "@adminvm")

def test_061_eval_to_dom0_keyword(self):
policy = parser.StringPolicy(
Expand Down

0 comments on commit 6fa1106

Please sign in to comment.