Add a golden path E2E test case for command_uuid (#756)

This commit is contained in:
Damon Aw
2021-06-03 17:45:59 -04:00
committed by GitHub
parent b75a7575ce
commit 0b2caa5b77

View File

@@ -344,6 +344,18 @@ func TestEndToEnd(t *testing.T) {
}
},
},
{
name: "Set Command UUID",
requestBytes: []byte(
`{"request_type":"VerifyFirmwarePassword","password":"test","command_uuid":"this-uuid-should-be-used"}`,
),
testFn: func(t *testing.T, parts endToEndParts) {
if parts.payload.CommandUUID != "this-uuid-should-be-used" {
t.Error("CommandUUID should be set to request payload's command_uuid")
}
},
},
}
for _, tt := range tests {