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

Issue 9960074: Add a test for the "ephemeral_users_enabled" device policy (Closed)

Created:
8 years, 8 months ago by bartfab (slow)
Modified:
8 years, 8 months ago
Reviewers:
xot, Nirnimesh
CC:
chromium-reviews, dennis_jeffrey, anantha, dyu1, frankf, scottc
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add a test for the "ephemeral_users_enabled" device policy This CL adds a test for the "ephemeral users enabled" policy. The policy prevents persistent information from accumulating by mounting cryptohome vaults via tmpfs and not writing user preferences to the local store. Information that previously accumulated on the system is cleared when the policy is turned on and the first user logs in. BUG=chromium-os:27702 TEST=New PyAuto: ChromeosEphemeralUsersEnabled.* (ChromeOS) TEST=Affected PyAutos: prefs.PrefsTest.testHaveLocalStatePrefs, TEST= policy.* (ChromeOS, Linux); prefs.* (ChromeOS) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132161

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments addressed. Tests clearing of local state as well now. #

Total comments: 20

Patch Set 3 : Test updated to work with rootfs verification on as well. #

Patch Set 4 : Fix reversed logic in debug output. #

Total comments: 2

Patch Set 5 : Nit addressed. #

Patch Set 6 : Meh. Copy & paste error in license header. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -2 lines) Patch
M chrome/test/functional/PYAUTO_TESTS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/functional/chromeos_ephemeral.py View 1 2 3 4 5 1 chunk +221 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/chromeos/suid_actions.py View 1 2 3 2 chunks +37 lines, -1 line 0 comments Download
M chrome/test/pyautolib/pyauto.py View 1 2 3 4 3 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
bartfab (slow)
Hi Nirnimesh, now that we have a testing framework for device policies, here is a ...
8 years, 8 months ago (2012-04-10 19:54:40 UTC) #1
xot
some comments and questions. https://chromiumcodereview.appspot.com/9960074/diff/1/chrome/test/functional/chromeos_ephemeral_users_enabled.py File chrome/test/functional/chromeos_ephemeral_users_enabled.py (right): https://chromiumcodereview.appspot.com/9960074/diff/1/chrome/test/functional/chromeos_ephemeral_users_enabled.py#newcode18 chrome/test/functional/chromeos_ephemeral_users_enabled.py:18: """Tests a policy that makes ...
8 years, 8 months ago (2012-04-11 01:42:24 UTC) #2
bartfab (slow)
https://chromiumcodereview.appspot.com/9960074/diff/1/chrome/test/functional/chromeos_ephemeral_users_enabled.py File chrome/test/functional/chromeos_ephemeral_users_enabled.py (right): https://chromiumcodereview.appspot.com/9960074/diff/1/chrome/test/functional/chromeos_ephemeral_users_enabled.py#newcode18 chrome/test/functional/chromeos_ephemeral_users_enabled.py:18: """Tests a policy that makes all users except the ...
8 years, 8 months ago (2012-04-11 13:44:00 UTC) #3
bartfab (slow)
Nirnimesh: As just pointed out to me by Mattias, it is not possible to remount ...
8 years, 8 months ago (2012-04-11 14:07:44 UTC) #4
Nirnimesh
On 2012/04/11 14:07:44, bartfab wrote: > Nirnimesh: As just pointed out to me by Mattias, ...
8 years, 8 months ago (2012-04-12 01:15:14 UTC) #5
Nirnimesh
On 2012/04/12 01:15:14, Nirnimesh wrote: > On 2012/04/11 14:07:44, bartfab wrote: > > Nirnimesh: As ...
8 years, 8 months ago (2012-04-12 01:17:43 UTC) #6
Nirnimesh
https://chromiumcodereview.appspot.com/9960074/diff/6001/chrome/test/functional/chromeos_ephemeral_users_enabled.py File chrome/test/functional/chromeos_ephemeral_users_enabled.py (right): https://chromiumcodereview.appspot.com/9960074/diff/6001/chrome/test/functional/chromeos_ephemeral_users_enabled.py#newcode2 chrome/test/functional/chromeos_ephemeral_users_enabled.py:2: # Use of this source code is governed by ...
8 years, 8 months ago (2012-04-12 01:46:24 UTC) #7
bartfab (slow)
https://chromiumcodereview.appspot.com/9960074/diff/6001/chrome/test/functional/chromeos_ephemeral_users_enabled.py File chrome/test/functional/chromeos_ephemeral_users_enabled.py (right): https://chromiumcodereview.appspot.com/9960074/diff/6001/chrome/test/functional/chromeos_ephemeral_users_enabled.py#newcode2 chrome/test/functional/chromeos_ephemeral_users_enabled.py:2: # Use of this source code is governed by ...
8 years, 8 months ago (2012-04-12 12:49:31 UTC) #8
Nirnimesh
LGTM https://chromiumcodereview.appspot.com/9960074/diff/13003/chrome/test/functional/chromeos_ephemeral.py File chrome/test/functional/chromeos_ephemeral.py (right): https://chromiumcodereview.appspot.com/9960074/diff/13003/chrome/test/functional/chromeos_ephemeral.py#newcode40 chrome/test/functional/chromeos_ephemeral.py:40: return os.path.exists(os.path.join('/home/.shadow', user_hash)) use constants.SHADOW_ROOT?
8 years, 8 months ago (2012-04-12 18:58:41 UTC) #9
bartfab (slow)
https://chromiumcodereview.appspot.com/9960074/diff/13003/chrome/test/functional/chromeos_ephemeral.py File chrome/test/functional/chromeos_ephemeral.py (right): https://chromiumcodereview.appspot.com/9960074/diff/13003/chrome/test/functional/chromeos_ephemeral.py#newcode40 chrome/test/functional/chromeos_ephemeral.py:40: return os.path.exists(os.path.join('/home/.shadow', user_hash)) On 2012/04/12 18:58:41, Nirnimesh wrote: > ...
8 years, 8 months ago (2012-04-13 07:54:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/9960074/15002
8 years, 8 months ago (2012-04-13 07:56:10 UTC) #11
commit-bot: I haz the power
Presubmit check for 9960074-15002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-13 07:56:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/9960074/11003
8 years, 8 months ago (2012-04-13 07:58:11 UTC) #13
commit-bot: I haz the power
8 years, 8 months ago (2012-04-13 09:14:21 UTC) #14
Change committed as 132161

Powered by Google App Engine
This is Rietveld 408576698