aboutsummaryrefslogtreecommitdiffstats
path: root/test/afb-test/tests/signal-composer_BasicAPITest.lua
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-09-13 14:09:34 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-09-23 22:24:44 +0000
commit07f57e23b57fa1fcabddc5f4074e47bcdd669d29 (patch)
treeb23f2f58bc364d0268aa2459a995445e23f296bb /test/afb-test/tests/signal-composer_BasicAPITest.lua
parent2e4bbe051ab130a3859e0b3c3a4477d7205df6a7 (diff)
txc-binding: migration to AFB_BINDING_VERSION 3guppy_6.90.0guppy/6.90.06.90.0
txc-binding.c is moving to version 3 in order to be compatible with app-afb-test fix some typo error: - rename txc api into txc-binding - wrong path files Change-Id: I9c59cbc59a457611fbf495a64f116170ef7898d8 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'test/afb-test/tests/signal-composer_BasicAPITest.lua')
-rw-r--r--test/afb-test/tests/signal-composer_BasicAPITest.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/afb-test/tests/signal-composer_BasicAPITest.lua b/test/afb-test/tests/signal-composer_BasicAPITest.lua
index b5ebb62..30c4f3a 100644
--- a/test/afb-test/tests/signal-composer_BasicAPITest.lua
+++ b/test/afb-test/tests/signal-composer_BasicAPITest.lua
@@ -79,7 +79,7 @@ _AFT.testVerbStatusSuccess(testPrefix.."addObjectsDirect","signal-composer","add
signals= {
{
uid= "vehicle_speedTest3",
- event= "txc/vehicle_speed",
+ event= "txc-binding/vehicle_speed",
retention= 30,
unit= "km/h",
getSignalsArgs= {
@@ -95,7 +95,7 @@ _AFT.testVerbStatusSuccess(testPrefix.."addObjectsDirect","signal-composer","add
},
{
uid= "engine_speedTest4",
- event= "txc/engine_speed",
+ event= "txc-binding/engine_speed",
retention= 30,
unit= "rpm",
getSignalsArgs= {
@@ -113,7 +113,7 @@ _AFT.testVerbStatusError(testPrefix.."addObjectsDirect_InvalidSignal","signal-co
signals= {
{
uid= "invalidSignal",
- event= "txc/invalidSignal",
+ event= "txc-binding/invalidSignal",
retention= -1,
unit= "invalidSignal",
getSignalsArgs= {
@@ -137,7 +137,7 @@ _AFT.testVerbStatusError(testPrefix.."addObjectsDirect_MissingField","signal-com
{
signals= {
{
- event= "txc/invalidSignal2",
+ event= "txc-binding/invalidSignal2",
retention= 30,
unit= "km/h",
getSignalsArgs= {
@@ -157,11 +157,11 @@ _AFT.testVerbStatusError(testPrefix.."addObjectsDirect_MissingField","signal-com
--[[ This tests the 'addObjects' verb of the signal-composer API, this is by passing the path of a json containing signals
This one has invalid values for most of its field, the binding should not be able to add it ]]
-_AFT.testVerbStatusError(testPrefix.."addObjectsByFile_InvalidSignal","signal-composer","addObjects",{file = _AFT.bindingRootDir.."var/sig_testInvalid.json"});
+_AFT.testVerbStatusError(testPrefix.."addObjectsByFile_InvalidSignal","signal-composer","addObjects",{file = _AFT.bindingRootDir.."/var/sig_testInvalid.json"});
--[[ This tests the 'addObjects' verb of the signal-composer API, this is by passing the path of a json containing signals
This one is missing the mandatory 'uid' field, the binding should not be able to add it ]]
-_AFT.testVerbStatusError(testPrefix.."addObjectsByFile_Missingfield","signal-composer","addObjects",{file = _AFT.bindingRootDir.."var/sig_incomplete.json"});
+_AFT.testVerbStatusError(testPrefix.."addObjectsByFile_Missingfield","signal-composer","addObjects",{file = _AFT.bindingRootDir.."/var/sig_incomplete.json"});
-- This tests the 'subscribe' verb of the signal-composer API, with a non existing signal, it should reply with an error
_AFT.testVerbStatusError(testPrefix.."subscribeNonExistingSignal","signal-composer","subscribe",{ signal = "notASignal"});