Documentation
¶
Overview ¶
Package fakeufsdata contains fake UFS data to be used in tests.
Comments adorning fake responses should contain enough information to indicate: 1) the UFS RPC that they are faking. 2) the resource that they describe.
Index ¶
Constants ¶
View Source
const FakeOctopusDUTHostname = "fake-octopus-dut-1"
FakeOctopusDUTHostname is the hostname of a fake octopus DUT.
Variables ¶
View Source
var FakeOctopusDUTDeviceDataResponse = &ufsAPI.GetDeviceDataResponse{ Resource: &ufsAPI.GetDeviceDataResponse_ChromeOsDeviceData{ ChromeOsDeviceData: &models.ChromeOSDeviceData{ LabConfig: &models.MachineLSE{ Lse: &models.MachineLSE_ChromeosMachineLse{ ChromeosMachineLse: &models.ChromeOSMachineLSE{ ChromeosLse: &models.ChromeOSMachineLSE_DeviceLse{ DeviceLse: &models.ChromeOSDeviceLSE{ Device: &models.ChromeOSDeviceLSE_Dut{ Dut: &lab.DeviceUnderTest{ Hostname: FakeOctopusDUTHostname, }, }, }, }, }, }, }, Machine: &models.Machine{ Device: &models.Machine_ChromeosMachine{ ChromeosMachine: &models.ChromeOSMachine{ BuildTarget: "build-target", Model: "model", }, }, }, }, }, ResourceType: ufsAPI.GetDeviceDataResponse_RESOURCE_TYPE_CHROMEOS_DEVICE, }
FakeOctopusDUTDeviceDataResponse is a fake octopus DUT with hostname "fake-octopus-dut-1".
It is very useful in tests.
View Source
var FakeOctopusDUTWithServoDeviceDataResponse = &ufsAPI.GetDeviceDataResponse{ Resource: &ufsAPI.GetDeviceDataResponse_ChromeOsDeviceData{ ChromeOsDeviceData: &models.ChromeOSDeviceData{ LabConfig: &models.MachineLSE{ Lse: &models.MachineLSE_ChromeosMachineLse{ ChromeosMachineLse: &models.ChromeOSMachineLSE{ ChromeosLse: &models.ChromeOSMachineLSE_DeviceLse{ DeviceLse: &models.ChromeOSDeviceLSE{ Device: &models.ChromeOSDeviceLSE_Dut{ Dut: &lab.DeviceUnderTest{ Hostname: FakeOctopusDUTHostname, Peripherals: &lab.Peripherals{ Servo: &lab.Servo{ ServoHostname: "fake-labstation", }, }, }, }, }, }, }, }, }, Machine: &models.Machine{ Device: &models.Machine_ChromeosMachine{ ChromeosMachine: &models.ChromeOSMachine{ BuildTarget: "build-target", Model: "model", }, }, }, }, }, ResourceType: ufsAPI.GetDeviceDataResponse_RESOURCE_TYPE_CHROMEOS_DEVICE, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.