Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional updates for 215 policy script #2485

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add additional restrictions into 215 policy script
  • Loading branch information
dboltovskyi committed Nov 19, 2020
commit 77c2a24b018c64208700192c08bd8b8364c05c5a
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@
-- SDL->HMI: BC.UpdateDeviceList(device1, device2)
-- HMI->SDL: BC.UpdateDeviceList(SUCCESS)
--------------------------------------------------------------------------------------------------------
if config.defaultMobileAdapterType == "WS" or config.defaultMobileAdapterType == "WSS" then
require('user_modules/script_runner').skipTest("Test is not applicable for WS/WSS connection")
end
require('user_modules/script_runner').isTestApplicable({ { extendedPolicy = { "EXTERNAL_PROPRIETARY" } } })

--[[ Required Shared libraries ]]
local actions = require("user_modules/sequences/actions")
local utils = require("user_modules/utils")
local common = require('test_scripts/Capabilities/PersistingHMICapabilities/common')
local SDL = require('SDL')

--[[ Local Variables ]]
local anotherDeviceParams = { host = "1.0.0.1", port = config.mobilePort }
local anotherDeviceName = anotherDeviceParams.host .. ":" .. anotherDeviceParams.port

--[[ Local Functions ]]
local function connectDeviceTwo()
EXPECT_HMICALL("BasicCommunication.UpdateDeviceList",
{
deviceList = {
{
transportType = "WEBENGINE_WEBSOCKET",
},
local weDevice = { transportType = "WEBENGINE_WEBSOCKET" }
local devices = {
{
name = anotherDeviceName,
isSDLAllowed = false,
Expand All @@ -48,7 +48,11 @@ local function connectDeviceTwo()
name = utils.getDeviceName(),
transportType = utils.getDeviceTransportType()
}
}})
}
if SDL.buildOptions.webSocketServerSupport == "ON" then
table.insert(devices, 1, weDevice)
end
EXPECT_HMICALL("BasicCommunication.UpdateDeviceList", { deviceList = devices })
:Do(function(_,data)
actions.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", {})
end)
Expand Down