Fix fake-gcd-server to include device resource timestamp

Buffet now requires lastUpdateTimeMs timestamp on device resource,
so changed the test fake GCD server to include the timestamp.

Also, fixed GET request for '/devices/<id>' to retrieve the api_key
from the authorization header via access token, when this call
originates from buffet process (which does not include "?key=..."
query parameters on the URL).

TEST=`test_that -b link <ip> "e:buffet_.*"`

Change-Id: I9e0a6bef538ba94ca6a57ca4b6fb873d79bc3eeb
Trybot-Ready: Alex Vakulenko <>
Tested-by: Alex Vakulenko <>
Reviewed-by: Aaron Kemp <>
Commit-Queue: Alex Vakulenko <>
Reviewed-by: Alex Vakulenko <>
1 file changed