Commit 7f97a666 authored by Christian Kellner's avatar Christian Kellner

test: integration: adjustment of default policy

When enrolling an already authorized device with the 'default'
policy, make sure we end up with the specific default of the daemon.
parent 7ee10f09
Pipeline #10232 passed with stage
in 4 minutes and 5 seconds
......@@ -1738,7 +1738,7 @@ class BoltTest(dbusmock.DBusTestCase):
self.assertEqual(remote.status, BoltDevice.AUTHORIZED)
self.assertEqual(remote.stored, False)
policy = BoltClient.POLICY_AUTO
policy = BoltClient.POLICY_DEFAULT
for remote, uid in [(d1_remote, d1_uid), (d2_remote, d2_uid)]:
with remote.record() as tape:
......@@ -1747,6 +1747,7 @@ class BoltTest(dbusmock.DBusTestCase):
'Stored',
True)
self.assertTrue(res)
self.assertEqual(remote.policy, client.default_policy)
now = int(time.time())
self.assertEqual(remote.stored, True)
self.assertTrue(remote.StoreTime > 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment