On 02/16/2015 12:14 PM, Sergey P wrote:
> Thanks, Bartosz
>
> I added --disable-policy-key-verification and --enterprise-enrollment-skip-robot-auth options
> to chrome,
> and it behaves exactly as it was with only --device-management-url=
> specified:
> On enterprise entrollment screen (Alt+Ctrl+E on first login) I type my
> google account credentials. On other machine I monitor testing policy
> server console.
> On submitting enterprise enrollment screen I see one POST request to policy
> server POST /device_management?request=register&devicetype=2&apptype=Chrome&agent=..
> with reply code 200 and second POST request after few seconds: POST
> /device_management?request=policy&devicetype=2&apptype=Chrome&agent=...
> with 200 reply code.
> On the chromiumos I then see an error:
>
> Error when fetching policy settings from the server: Failed to decode
> response.
> Once again
> Cancel
I have not used the python cloud policy test server in a long time. Two
possibilities come to mind:
- Maybe the policy JSON file you set up is invalid? It may have
incorrect syntax (e.g. trailing commas) or invalid settings inside it.
- Maybe the cloud policy test server bitrotted and broke?
>
> Any suggestions how to check enrollment and device reset/wipe/powerwash
> feature?
What exactly would you like to check out? It may be possible to trigger
it in another way.
> I wonder how tests for enrollment process pass while I'm unable to
> reproduce desired behavior.
These tests do not use the test server.
> Maybe I use outdated policy config for testing policy server? Where can I
> get a working config?
You can remove all the policies as a minimal test. You could also check
out user policy first - set up all command line parameters as before,
but do *not* enroll. Instead, log in with a non-consumer account and
check whether Chrome is able to pull policy for this user from your server.
- Bartosz
>> <javascript:>