History log of /external/autotest/client/cros/cryptohome.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9a0ce56043bd7d7c5ebca6b51e44f3e7981b85a9 30-May-2017 Mary Ruthven <mruthven@chromium.org> autotest: add test to cr50 responds to CCD disable flag

This test will use firmware_SetFWMP to modify the FWMP space. It
verifies that the flags can be set and that Cr50 unlock acts correctly
during each flag state. Eventually tests will be added that test
enterprise enrollment sets the correct flags. This test uses cryptohome
to set the flags.

BUG=b:35587053
BRANCH=none
TEST=run test

Change-Id: Ic83c59a66fd29b5fff3ed5ed472ecf9947ac7140
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/518550
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
/external/autotest/client/cros/cryptohome.py
be9789ce5ecfccb15bba6a181a9f3e815ce04516 19-May-2017 Dan Spaid <dspaid@google.com> Add support for mount_ex and crypto-migration

Add relevent methods to support autotests dealing with direncryption
migration.

BUG=chromium:714474
TEST=test_that kevin cheets_MigrationTest

Change-Id: I9c0e0020b3303472430e7f8d6d8289f1c85de668
Reviewed-on: https://chromium-review.googlesource.com/509370
Commit-Ready: Dan Spaid <dspaid@chromium.org>
Tested-by: Dan Spaid <dspaid@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
/external/autotest/client/cros/cryptohome.py
6bad6729b6c63efdbe4fa56447d97a41e4f199c1 10-Jun-2016 Gwendal Grignou <gwendal@chromium.org> cryptohome: Add support for ext4 crypto

Adapt is_vault_mounted() to handle mount output when ext4 crypto is used.
Add is_permanent_vault_mounted() to test if a mount is operational and
permanent.

To test a regular user is mounted,
with ecryptfs, we have:
...
/home/.shadow/<uid>/vault /home/user/<uid> ecryptfs rw,seclabe...
with ext4:
/dev/mmcblk0p1 /home/user/<uid> ext4 rw....

BUG=chromium:688258
TEST=Check ext4 based mount are recognized.
Check ecryptfs still works.
Check guestfs tests works (login_CryptohomeIncognito)

Change-Id: If758bced366da4fb6e377a7f38dfb2e307ddc882
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/440848
/external/autotest/client/cros/cryptohome.py
ccb16be83172c3f10c421a0a6eb582f1bed359e0 02-Feb-2017 Alexis Savery <asavery@chromium.org> autotest: Add retry loop to mount_vault

Add retry loop to mount_vault to allow cryptohomed enough time to
restart.

BUG=chromium:593791
TEST=Ran platform_CryptohomeFio.stress and all tests pass, some
retry mounting up to 4 times and then continue as expected.

Change-Id: If0043435e120bca347ad0615065db1ad7ed40697
Reviewed-on: https://chromium-review.googlesource.com/435946
Commit-Ready: Alexis Savery <asavery@chromium.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
/external/autotest/client/cros/cryptohome.py
a3bf6450658769b06a732df315fb9c6bcd68033a 08-Feb-2017 Kazuhiro Inaba <kinaba@chromium.org> ext4crypto: Update security_ProfilePermissions test to support ext4 crypto.

The test assumed that the 'device' field of mount info of user directory is
/home/.shadow/hash/vault, but that's not the case (actually the directory
does not even exist) on cryptohome implementation using ext4 encryption as
the backend.

This patch changes the test to obtain the shadow path by a simple calculation.

BUG=chromium:689340
TEST=Run the test both on ecryptfs and ext4crypto devices.

Change-Id: Ia4fc6273881d5794a3945a970b678032eceecfaa
Reviewed-on: https://chromium-review.googlesource.com/439206
Commit-Ready: Kazuhiro Inaba <kinaba@chromium.org>
Tested-by: Kazuhiro Inaba <kinaba@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
/external/autotest/client/cros/cryptohome.py
2ec3279c9f7f2b19c88e3e3efce3b563a77442eb 01-Feb-2017 Daniel Erat <derat@chromium.org> autotest: Move cryptohome mounts from info to debug.

To reduce log spam, make autotest's cryptohome module log
mount points at the "debug" level rather than "info".

BUG=none
TEST=none

Change-Id: I6a5c7cbd3847aabd73e204b2f1dbdfc7152831f6
Reviewed-on: https://chromium-review.googlesource.com/435423
Commit-Ready: Dan Erat <derat@chromium.org>
Tested-by: Dan Erat <derat@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Andrey Pronin <apronin@chromium.org>
/external/autotest/client/cros/cryptohome.py
e0b08e6170b57f90262726eb7f04e059cb47419c 11-Aug-2015 Hsinyu Chao <hychao@chromium.org> Revert "autotest: move constants to common_lib"

This reverts commit a4ac7a8f67d61f8a616724f9426dbc0fce71ce69.

BUG=chromium:519353

Change-Id: Iec2873ad22b5bb90e46a9e5b323f9626a2c07d9b
Reviewed-on: https://chromium-review.googlesource.com/292347
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Commit-Queue: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
/external/autotest/client/cros/cryptohome.py
a4ac7a8f67d61f8a616724f9426dbc0fce71ce69 06-Aug-2015 Eric Caruso <ejcaruso@chromium.org> autotest: move constants to common_lib

This file gets imported from lots of server-side tests and
infrastructure so it shouldn't be hiding in client/cros. This
moves the file and fixes all imports.

BUG=chromium:485834
TEST=run many tests, make sure there are no problems importing
constants

Change-Id: I5c2b2a0bef6ebc998e62f40162a6ec9cc4436480
Reviewed-on: https://chromium-review.googlesource.com/291302
Trybot-Ready: Eric Caruso <ejcaruso@chromium.org>
Commit-Queue: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Chris Sosa <sosa@google.com>
/external/autotest/client/cros/cryptohome.py
be1325913520a113dd3b2079f8af356655e5d16d 17-Dec-2014 Kris Rambish <krisr@chromium.org> Add parsing to handle string values.

Update the method to handle booleans, ints, and strings.

BUG=chromium:443187
TEST=Manual; Ran it
DEPLOY=test_importer

Change-Id: I10607e7be993123a228a11f5bddc164679e9a823
Reviewed-on: https://chromium-review.googlesource.com/236431
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
/external/autotest/client/cros/cryptohome.py
bb5258c31dc93a747d2db3c9ed199b406bc99bd2 17-Dec-2014 Kris Rambish <krisr@chromium.org> Check if cryptohome returns "Unknown action..."

--action:more_tpm_status only exists on M41 and later. Check
if the command is supported and if not return an empty dictionary.

In the lab the latest version of the cautotest bundle will be run
against older builds which can cause incompatibilites like this.

TEST=Manual; Ran it
BUG=chromium:442270

Change-Id: I7cd5f27c09a5f715c1e4686e9d1b0ec02b11db26
Reviewed-on: https://chromium-review.googlesource.com/236131
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Kris Rambish <krisr@chromium.org>
/external/autotest/client/cros/cryptohome.py
94fd6b33e073d7d49557c839cb956d0b32f9a022 14-Dec-2014 Christopher Wiley <wiley@chromium.org> autotest: Tolerate devices without cryptohome installed

BUG=chromium:442099
TEST=network_WiFi_SimpleConnect.wifi_checkWPA_TKIP passes against gizmo
images.

Change-Id: Ib662a0d6bb05c40c5392de6252e3234b4cf8d9f7
Reviewed-on: https://chromium-review.googlesource.com/235651
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
Commit-Queue: Kris Rambish <krisr@chromium.org>
/external/autotest/client/cros/cryptohome.py
82ee1c03049720c473d8e6e742e49ff87d961139 11-Dec-2014 Kris Rambish <krisr@chromium.org> Move TPM lockout detection to cryptohome.py

BUG=chromium:440241
TEST=Manual; Ran it
DEPLOY=test_importer

Change-Id: I517c7700ffbab72dae3ee32ccc1acad056f756dc
Reviewed-on: https://chromium-review.googlesource.com/234247
Reviewed-by: Kris Rambish <krisr@chromium.org>
Commit-Queue: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
/external/autotest/client/cros/cryptohome.py
2a2ef34045c5bf4460754865d681c48fe68b8cdc 17-Oct-2014 David Pursell <dpursell@chromium.org> autotest: Add cryptohome login status tests

Added finalization status check to platform_BootLockbox, created
login_CryptohomeOwnerQuery test for device owner query.

BUG=chromium:423576
TEST=Ran test_that on a panther device.
CQ-DEPEND=CL:223549

Change-Id: Ic7b09bcd22c45b2650d4037763d02bd0c4ca2d21
Reviewed-on: https://chromium-review.googlesource.com/224413
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: David Pursell <dpursell@chromium.org>
Tested-by: David Pursell <dpursell@chromium.org>
/external/autotest/client/cros/cryptohome.py
fef135aba6304a3e3e6e662663f1a1c3822ed026 23-May-2014 Will Drewry <wad@chromium.org> cros/cryptohome.py: move signal data clearing _before_ async calls

Ensure that received signal data is not cleared after a call has been
issued. There is a risk that a fast response from cryptohome will be
cleared from the signal data before the test attempts to process it.

TEST=none yet
BUG=chromium:367278

Change-Id: Icf3101847d704d99c8765990fcd2f3a05fc12e80
Reviewed-on: https://chromium-review.googlesource.com/201372
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
78db9dcd935c8aaca91c3ebbf6d30282a1965e95 01-Apr-2014 Will Drewry <wad@chromium.org> cros/cryptohome.py: use a global bus_loop if none is supplied

Remove an extra "not" in the test for a lacking bus_loop to
ensure the global bus_loop is only used when no bus_loop is
supplied.

TEST=platform_CryptohomeMount works now
BUG=chromium:355079

Change-Id: I9b0303f26db7b191a6483ba1c0f91b4c340d4e08
Reviewed-on: https://chromium-review.googlesource.com/192483
Reviewed-by: Will Drewry <wad@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
e6c44b98a58561d1b2cbed1ff6131e37d1938499 31-Mar-2014 Darren Krahn <dkrahn@chromium.org> Added a dbus main loop to cryptohome proxy instances.

BUG=chromium:355079
TEST=Run the tests, make sure no dbus mainloop errors.

Change-Id: I5b69dfd0c9c2ac4bf3d28a9957623efede9e5021
Reviewed-on: https://chromium-review.googlesource.com/192410
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Darren Krahn <dkrahn@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
/external/autotest/client/cros/cryptohome.py
64170f8e7053f92f4bbad501c61a352fdabf6d82 14-Mar-2014 Chris Masone <cmasone@chromium.org> Update all login_* tests to use CryptohomeProxy

Instead of shelling out to a command-line tool, we should
talk to crypthomed directly over DBus.

BUG=chromium:344862
TEST=login_*

Change-Id: I3a57d8158638cab60e8a7e0dd5c72293e87a87ac
Reviewed-on: https://chromium-review.googlesource.com/190343
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
/external/autotest/client/cros/cryptohome.py
19e305e5e6044c229a675197038568c5c7d25fdf 14-Mar-2014 Chris Masone <cmasone@chromium.org> Switch login_MultipleSessions to use CryptohomeProxy

Instead of shelling out to the cryptohome command line tool,
use CryptohomeProxy to speak to cryptohomed over DBus.

BUG=chromium:344862
TEST=login_MultipleSessions

Change-Id: Ib79cf092b2385b2d922abbc81cf6bd744fe8a0da
Reviewed-on: https://chromium-review.googlesource.com/190088
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Will Drewry <wad@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
/external/autotest/client/cros/cryptohome.py
f59d9dfa948a95874d93204359d8426a6e39c26a 14-Mar-2014 Chris Masone <cmasone@chromium.org> Up DBus method call timeout in cryptohome.py

Sometimes slow devices get so bogged down that cryptohome
fails to ACK a method call within the default time out.
Bump it up while we focus on refactoring cryptohomed to
avoid these bottlenecks altogether.

BUG=chromium:344862
TEST=login_MultipleSessions
TEST=http://chromegw/p/tryserver.chromiumos/builders/daisy-paladin/builds/1245

Change-Id: I4237d78db7336515031d8f9e41b521eac9f0c5ac
Reviewed-on: https://chromium-review.googlesource.com/190007
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Will Drewry <wad@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
/external/autotest/client/cros/cryptohome.py
c4de5ff4d397c8a3bd4b82400eb9344d59d0bc68 03-Feb-2014 Will Drewry <wad@chromium.org> cryptohome.py: don't fail on the nested timeout!

wait_for_signal timed out at 10s. The same exception
bubbled up to the wrapper, wait_for_specific_signal which
overrode the longer timeout. The inner timeout is now
translated to a no-match ({}) response allowing the outer
timeout to take priority.

TEST=in progress
BUG=chromium:303677

Change-Id: I7df2bec4f84b8fa5fa924ccd53c3203a7fc39ba6
Reviewed-on: https://chromium-review.googlesource.com/184625
Tested-by: Will Drewry <wad@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
934d153f5c7b5c75276e9a5dcdcb01ceb9b734d7 30-Jan-2014 Will Drewry <wad@chromium.org> cros/cryptohome.py: increase the DBus signal timeout to 180s

Chrome will wait forever when attempting to interact with
most cryptohome features. This avoids flake in the user
experience, but we don't want to match that here. Daisy
has our slowest TPM and is failing at 60s. We've never
seen delays more than ~120s, so 180s seems like a safe
place to set the timeout. If flakiness continues,
let's increase it or see if there was ways to get slightly
smoother performance our of the TPM (avoid parallel TPM-bound
autotest jobs, etc).

BUG=chromium:303677
TEST=none-yet

Change-Id: I5a6f6c776d7837d66616e572846b1c6a9dc608f9
Reviewed-on: https://chromium-review.googlesource.com/184335
Reviewed-by: David James <davidjames@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
9e44079454f17cebdb2d75349c0f0856dd6308a7 12-Dec-2013 Will Drewry <wad@chromium.org> cryptohome.py: make CryptohomeProxy async

Move the proxy from sync to async calls which requires
signal handling.

Supporting the asynchronous methods ensures testing matches
behavior of the in use interfaces (async) and not the legacy
synchronous interfaces. In particular, this is needed for
catching and analyzing blocking behavior on slower systems
(cpu or TPM). There is substantial testing flake that cannot
easily be caught without aborting cryptohome on occurrence.
The support for aborting landed in prior CLs and this one
ensures we don't just see slow synchronous calls.

BUG=chromium:303677
TEST=tests pass; still catches issues if cryptohome STOP'd.

Change-Id: Ibe233a00dcd5b6f2816a370051f579b75e7be5e5
Reviewed-on: https://chromium-review.googlesource.com/179870
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
dc2b0dd49016d251d3088c22ced3872f63392697 10-Dec-2013 Will Drewry <wad@chromium.org> cryptohome.py: wait for cryptohomed death

Get rid of the sleep and replace it with a poll on a 60 second timeout
to try to wait for cryptohomed to core dump.

TEST=pkill -STOP cryptohomed; run_remote_test; confirm crash dump; Repeat without the -CONT line and see it times out.
BUG=chromium:303677

Change-Id: I194a4450647aa49c7bd947b3d9001f58659dc7cc
Reviewed-on: https://chromium-review.googlesource.com/179490
Reviewed-by: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
d2fed972d744abb98c79d7f5dd9da5fc5b397e9c 05-Dec-2013 Will Drewry <wad@chromium.org> platform_Cryptohome, cryptohome.py: kill c-homed on dbus silence

Move platform_Cryptohome over to using the CryptohomeProxy and
ensure that any unreplied DBus call results in cryptohomed being
ABRT'd with the hope that we'll get a crash dump on daisy flake.

As we discover blocking operations, we can move them off the main
thread.

TEST=passes; kills -ABRT if cryptohomed gets a SIGSTOP during the test (as a proof of hang detection)
BUG=chromium:303677

Change-Id: Ia40b0120f4f7a918c8288bf65b5c251fb0671223
Reviewed-on: https://chromium-review.googlesource.com/178881
Reviewed-by: Kees Cook <keescook@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
3543e517bee4e673d0cb7d91387b33ce850bd7fc 04-Nov-2013 Chris Masone <cmasone@chromium.org> Make cryptohome mount calls asynchronous under the hood

Sometimes we see failures during testing where mounting/unmounting/remounting
leads to DBus timeouts when trying to talk to cryptohomed. The synchronous
API for this isn't supposed to be used anymore anyhow, so let's stop
using it during testing.

BUG=None
TEST=login_RemoteOwnership, suite:smoke

Change-Id: I46f4f3028facc616a2e77ff43a9bdbbce41bb693
Reviewed-on: https://chromium-review.googlesource.com/175594
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Will Drewry <wad@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
/external/autotest/client/cros/cryptohome.py
569f867f35d6cc8b20a287f6f204c31e6a14f652 07-Aug-2013 beeps <beeps@chromium.org> [autotest] Cryptohome library throws terse mount-point exceptions.

The cryptohome library greps for mount points of a logged in user.
The shadow directory of said user is based on a hash, which
confuses the bug filer into creating a unique failure for each
mount point exception.

TEST=Tried get_mount_point on a DUT with a valid mount point,
tried the same with an invalid mount point.
BUG=chromium:267770

Change-Id: I0f6a650f82ab20e64e3f9f196484c833dd68e8ab
Reviewed-on: https://gerrit.chromium.org/gerrit/64960
Tested-by: Prashanth Balasubramanian <beeps@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Queue: Prashanth Balasubramanian <beeps@chromium.org>
/external/autotest/client/cros/cryptohome.py
6cb26ad178990814fce3209c464afe7f131ec5b0 21-May-2013 Elly Fong-Jones <ellyjones@chromium.org> [autotest] remove dependencies on /home/chronos/user

BUG=chromium:212419
TEST=suite_Smoke

Change-Id: I8849e3eb6e76a3a3358422f1c2269a926d35994f
Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/56050
Reviewed-by: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
5d010aa50a0694d498e8317fd8044e56474ce7ed 06-May-2013 Chris Masone <cmasone@chromium.org> Add multiprofile tests for session_manager.StartSession()

Multiple calls to StartSession() with different users should be allowed,
while multiple calls with the same user should not.

BUG=chromium:235179
TEST=run these new tests

CQ-DEPEND=I1200c4463d43cd8cf7d49a2f9f0667ac1cccc261
CQ-DEPEND=I5ee9fb18e1f8c1a933b899acc62618323f2df9bf

Change-Id: I912d3ded053a7f0f41c604f5ffef15477d634017
Reviewed-on: https://gerrit.chromium.org/gerrit/50223
Commit-Queue: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
/external/autotest/client/cros/cryptohome.py
5f880f6fd95e85e9806d25ab63cab3ec0cf77baa 03-Oct-2012 Darren Krahn <dkrahn@chromium.org> Added an attestation autotest.

BUG=chromium-os:34805
TEST=Ran the test.

Change-Id: Ice5f6a884dd293b56e13b081e9ce79fdd741131b
Reviewed-on: https://gerrit.chromium.org/gerrit/34467
Reviewed-by: David Yu <davidyu@chromium.org>
Commit-Ready: Darren Krahn <dkrahn@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
/external/autotest/client/cros/cryptohome.py
0e73e7f91759217254bee0d9d90c5a541ea8c543 06-Sep-2012 Darren Krahn <dkrahn@chromium.org> New autotest to verify TPM endorsement key.

BUG=chrome-os-partner:13610
TEST=Ran test on lumpy in following states:
- Not owned (success)
- Owned and owner password available (success)
- Owned and owner password not available (error)
- TPM disabled (error)
CQ-DEPEND=Ia7bb79d33867281e1764eb087e63b5a7d1844ac7

Change-Id: Ifdbdb78fa25c53e95609fbcdbd00ac1c9d98fc9d
Reviewed-on: https://gerrit.chromium.org/gerrit/32316
Reviewed-by: Jon Salz <jsalz@chromium.org>
Commit-Ready: Darren Krahn <dkrahn@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
/external/autotest/client/cros/cryptohome.py
630f3a966506381e43f60d5b4220a1ffd6595b35 17-Apr-2012 Elly Jones <ellyjones@chromium.org> [autotest] use --async for cryptohome test_auth

If we don't use --async, the auth test can spuriously fail if it takes longer
than the DBus timeout, which it can under test conditions.

TEST=platform_CryptohomeTestAuth
BUG=None

Change-Id: I487ebafaa8f4627123e03db2b3777846a4b801dd
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/20399
Reviewed-by: Will Drewry <wad@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
/external/autotest/client/cros/cryptohome.py
4458f44785ab386053af0b917c96527bd3afe638 16-Apr-2012 Elly Jones <ellyjones@chromium.org> [autotest] add platform_CryptohomeMigrateKey

Test that migration between passkeys works. Also test that migration with the
wrong passkey doesn't work, and that migration of a nonexistent user doesn't
work.

TEST=Yes
BUG=chromium-os:20778

Change-Id: If11df67fb3712afeb70f1fad20ed9defcce68cee
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/20325
Reviewed-by: Will Drewry <wad@chromium.org>
/external/autotest/client/cros/cryptohome.py
b6d2993fb77f771a886c41ace0850773f5498bed 11-Apr-2012 barfab@chromium.org <bartfab@chromium.org> Fix includes, unbreaking PyAuto functional and improving style

* Ensure "common" is imported whenever "autotest_lib.client" is used.
* Remove unnecessary "autotest_lib.client.cros" prefix from includes.
* Remove hashbang lines from files that cannot be run from the
command line anyway.
* Improve autotest style guide conformance:
-> Reorder includes into groups and alphabetically within these.
-> Lump together includes in each group.

BUG=chromium-os:29150
TEST=desktopui_PyAutoFunctionalTests.CHROMEOS_POLICY
TEST=desktopui_PyAutoFunctionalTests.FULL, suite:bvt

Change-Id: I87479ed729bca38888e4bcf250cf7997406387e5
Reviewed-on: https://gerrit.chromium.org/gerrit/19886
Commit-Ready: Bartosz Fabianowski <bartfab@chromium.org>
Reviewed-by: Bartosz Fabianowski <bartfab@chromium.org>
Tested-by: Bartosz Fabianowski <bartfab@chromium.org>
/external/autotest/client/cros/cryptohome.py
5c37463bb75ff025af20eac152c12af6ccbf7ccf 05-Apr-2012 barfab@chromium.org <bartfab@chromium.org> Teach autotest_lib about per-user mounts and ephemeral users

This CL improves the utility methods for writing cryptohome tests so that
they can deal with per-user mount points and recoginize ephemeral user
cryptohomes backed by tmpfs correctly. The unmount_vault() method remains
to be updated when umount requests are made per-user as well.

All cryptohome tests are updated and verified to work in the current
hybrid world where per-user mount points and the shared mount point
coexist. Once concurrent per-user mounts are actually deployed, some of
the tests may need further tweaking.

As a final improvement, three cryptohome tests that were slated for the
bvt suite but accidentally dropped off the radar are fixed up and added
to the suite.

BUG=chromium-os:29003
TEST=all affected pyauto tests: login_Cryptohome*, platform_Cryptohome*,
TEST=logging_LogVolume, security_ProfilePermissions

Change-Id: Ib8301844e72ef3901889cce91fd58c9e06ce0a65
Reviewed-on: https://gerrit.chromium.org/gerrit/19668
Reviewed-by: Elly Jones <ellyjones@chromium.org>
Commit-Ready: Bartosz Fabianowski <bartfab@chromium.org>
Tested-by: Bartosz Fabianowski <bartfab@chromium.org>
/external/autotest/client/cros/cryptohome.py
cf2151eeb556c9ee37b387e831adf9d53e5c89e0 04-Apr-2012 barfab@chromium.org <bartfab@chromium.org> Add function to remove all cryptohome vaults

This function finds any cryptohome vaults present in /home/.shadow and
removes them. The function can be used by Chrome functional tests to
ensure that all vaults will be created from scratch.

BUG=chromium-os:28664
TEST=manual

Change-Id: Ie2486ff736c0407bf5af494b225939b1a2d0159c
Reviewed-on: https://gerrit.chromium.org/gerrit/19220
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
Tested-by: Bartosz Fabianowski <bartfab@chromium.org>
Commit-Ready: Bartosz Fabianowski <bartfab@chromium.org>
/external/autotest/client/cros/cryptohome.py
d5e36318e968091881b56145ed3a390375791f8e 13-Jan-2012 Frank Farzan <frankf@chromium.org> Add server/client tests for enterrpise enrolling/unenrolling a device.

BUG=chromium-os:19965
TEST=run_remote_tests.sh desktopui_EnterprisePolicyServer

Change-Id: I63ac7c909e5c21848c2bb3ff0200bc477fa59bad
Reviewed-on: https://gerrit.chromium.org/gerrit/14178
Reviewed-by: Joao da Silva <joaodasilva@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Tested-by: Frank Farzan <frankf@chromium.org>
Commit-Ready: Frank Farzan <frankf@chromium.org>
Reviewed-by: Frank Farzan <frankf@chromium.org>
/external/autotest/client/cros/cryptohome.py
5c3c2b0feff43748a05aaddd00f456a8c5e4ffb2 21-Dec-2011 Elly Jones <ellyjones@chromium.org> [autotest] cryptohome: don't subscript result of Unmount().

BUG=chromium-os:16681
TEST=platform_CryptohomeMultiple

Change-Id: I78785d0150dc420b6f890a1e884161e9744146db
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/13349
Reviewed-by: Kees Cook <keescook@chromium.org>
/external/autotest/client/cros/cryptohome.py
2f0ebba3c2ac427cee397bfe45ef7d58f64911aa 27-Oct-2011 Elly Jones <ellyjones@chromium.org> platform_Cryptohome: Add more test cases.

In particular, test bad dirents in the multi-mount paths. CryptohomeBadPerms
tests directories with bad permissions, CryptohomeNonDirs tests non-dirents in
the mount path.

BUG=chromium-os:20778
TEST=Yes. Needs CLs 10193 and 10670.

Change-Id: I3ad1cd65a88739ab4ac6bcc675def358ff728384
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/10801
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
/external/autotest/client/cros/cryptohome.py
686c2f457512331a37cc9ed8fab34cf90513c433 24-Oct-2011 Elly Jones <ellyjones@chromium.org> platform_CryptohomeMultiple: add.

Tests multiple concurrent cryptohome mounts.

BUG=chromium-os:20778
TEST=Yes

Change-Id: I78aa1d35a6554d8fda2a1d0980bb1a3d0b9c9f69
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/10588
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
/external/autotest/client/cros/cryptohome.py
6681449d981acd60bdb68e9aff86c2a26092b6ad 28-Jun-2011 Nirnimesh <nirnimesh@chromium.org> Add base setup for autotest tests to use pyauto for chrome automation

All setup required to make pyauto calls in the context of autotest tests is encapsulated in PyAutoTest.
Any autotest test deriving from it will be able to use pyauto.

- updated a basic test desktopui_UrlFetch that uses pyauto
- moved a common helper function from cros_ui_test.py to cryptohome.py

BUG=chromium-os:13288

Change-Id: I3f23a00c324d2b0e8644be28d897a24752b75e0b
Reviewed-on: http://gerrit.chromium.org/gerrit/3285
Tested-by: Nirnimesh <nirnimesh@chromium.org>
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/cros/cryptohome.py
f08f88dd651084aedc9d55d4a22ca768cc33449c 22-Apr-2011 Jim Hebert <jimhebert@chromium.org> Factor out the key bit from is_mounted, so we can query which vault is mounted
This method is needed so we can then inspect permissions on that vault,
pursuant to the testing called for in chromium-os:381.

Change-Id: I75e8797329062005250e610369c0f2cd0531ab5e

BUG=chromium-os:381
TEST=login_CryptohomeMounted and login_CryptohomeUnmounted still pass
(those autotests depend on is_mounted still working)

Review URL: http://codereview.chromium.org/6873163
/external/autotest/client/cros/cryptohome.py
f7b8192287cc65919f61ea0d9330d141725f0739 04-Mar-2011 Eric Li <ericli@chromium.org> Fix import of some autotest cros modules, make them callable outside of autotest runtime.

Change-Id: Ibd2e309e02490ed9c580c046663e287911f2bc75

BUG=None
TEST=run_remote_test bvt

Review URL: http://codereview.chromium.org/6626031
/external/autotest/client/cros/cryptohome.py
c4d8f4aab4e434fcb1a9fb33931768ffebfb8f1c 10-Dec-2010 Eric Li <ericli@google.com> Move site_httpd, site_uim, site_login and site_cryptohome into cros/ dir.

And change import site_utils to import utils as I touched more source code.

Change-Id: I18bbac502c67ddedaccc7ef034c4f8c8b204506e

BUG=7236
TEST=BVT

Review URL: http://codereview.chromium.org/5680003
/external/autotest/client/cros/cryptohome.py