add test scripts and fix some mistakes
This commit is contained in:
parent
2f75cdd3ad
commit
efcecb0dd1
@ -120,6 +120,7 @@ QVariantMap JsonRPCServer::packDevice(Device *device)
|
||||
triggers.append(trigger.id());
|
||||
}
|
||||
variant.insert("triggers", triggers);
|
||||
variant.insert("params", device->params());
|
||||
return variant;
|
||||
}
|
||||
|
||||
|
||||
4
tests/addconfigureddevice.sh
Executable file
4
tests/addconfigureddevice.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Creates a Mumbi remote
|
||||
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClass": "{d85c1ef4-197c-4053-8e40-707aa671d302}", "deviceParams": {"channel1":"true", "channel2":"false", "channel3":"false", "channel4": "false", "channel5":"false" }}}'; sleep 1) | nc localhost 1234
|
||||
3
tests/getconfigureddevices.sh
Executable file
3
tests/getconfigureddevices.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
(echo '{"id":1, "method":"Devices.GetConfiguredDevices"}'; sleep 1) | nc localhost 1234
|
||||
3
tests/getsupporteddevices.sh
Executable file
3
tests/getsupporteddevices.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
(echo '{"id":1, "method":"Devices.GetSupportedDevices"}'; sleep 1) | nc localhost 1234
|
||||
Reference in New Issue
Block a user