Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 6677180: [autotest] More ownership/device policy tests (Closed)

Created:
9 years, 8 months ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
sosa
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli
Visibility:
Public.

Description

[autotest] More ownership/device policy tests Improve ownership test infrastructure, make a base class for ownership tests that actually exercise the API, and add a new test that validates the owner key setting/rotating logic that will be (mostly) used by enterprise managed device support. BUG=13746 TEST=login_Ownership*, login_RemoteOwnership Change-Id: I6a3a405744ca585bb93bb7b0a47f4536b0832744 R=sosa@chromium.org Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=eac4f4f

Patch Set 1 #

Patch Set 2 : add login_RemoteOwnership #

Patch Set 3 : added comments, removed needless async dbus calls #

Total comments: 4

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -100 lines) Patch
A client/cros/cros_ownership_test.py View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
M client/cros/cros_ui_test.py View 11 chunks +18 lines, -26 lines 0 comments Download
M client/cros/ownership.py View 5 chunks +47 lines, -14 lines 0 comments Download
M client/site_tests/login_OwnershipApi/control View 1 chunk +1 line, -2 lines 0 comments Download
M client/site_tests/login_OwnershipApi/login_OwnershipApi.py View 4 chunks +13 lines, -53 lines 0 comments Download
A + client/site_tests/login_RemoteOwnership/control View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
A client/site_tests/login_RemoteOwnership/login_RemoteOwnership.py View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
A client/site_tests/login_RemoteOwnership/src/Makefile View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Chris Masone
9 years, 8 months ago (2011-04-05 23:41:32 UTC) #1
sosa
Nice cleanup and refactoring! Sorry rietveld is hating at the moment but my only real ...
9 years, 8 months ago (2011-04-06 01:25:00 UTC) #2
Chris Masone
heh...I forgot to add a bunch of files to the CL! Lemme add those tonight ...
9 years, 8 months ago (2011-04-06 01:27:57 UTC) #3
Chris Masone
Ok, now all the right code is here, and comments are added.
9 years, 8 months ago (2011-04-06 04:43:42 UTC) #4
sosa
If I understand the second test correctly ... we: Set up a key to emulate ...
9 years, 8 months ago (2011-04-06 21:19:52 UTC) #5
Chris Masone
login_RemoteOwnership isn't testing local-device-owner cases. The first thing it does is take ownership, as an ...
9 years, 8 months ago (2011-04-06 21:28:19 UTC) #6
sosa
9 years, 8 months ago (2011-04-06 21:30:35 UTC) #7
Ok that's also consistent with what I saw.

LGTM

On Wed, Apr 6, 2011 at 2:28 PM,  <cmasone@chromium.org> wrote:
> login_RemoteOwnership isn't testing local-device-owner cases.
>
> The first thing it does is take ownership, as an enterprise would, by
> pushing a
> policy with a key in it before anyone has logged in.
>
> The second thing is force a new key to be honored, which we have decided to
> do
> by just blindly accepting any key that is pushed down in a policy while no
> one
> is logged in.
>
> The last thing is the graceful key-rotation case, where we only honor new
> keys
> that are signed with the currently-registered owner key
>
>
>
http://codereview.chromium.org/6677180/diff/5005/client/site_tests/login_Remo...
> File client/site_tests/login_RemoteOwnership/control (right):
>
>
http://codereview.chromium.org/6677180/diff/5005/client/site_tests/login_Remo...
> client/site_tests/login_RemoteOwnership/control:12: PURPOSE = "Validate
> the the Ownership DBus API works for device policies"
> On 2011/04/06 21:19:52, sosa wrote:
>>
>> s/first "the"/that
>
> Done.
>
>
http://codereview.chromium.org/6677180/diff/5005/client/site_tests/login_Remo...
> File client/site_tests/login_RemoteOwnership/login_RemoteOwnership.py
> (right):
>
>
http://codereview.chromium.org/6677180/diff/5005/client/site_tests/login_Remo...
> client/site_tests/login_RemoteOwnership/login_RemoteOwnership.py:57:
> raise error.TestFail('Could not start session for random user')
> On 2011/04/06 21:19:52, sosa wrote:
>>
>> s/start/stop?
>
> Done.
>
> http://codereview.chromium.org/6677180/
>

Powered by Google App Engine
This is Rietveld 408576698