summaryrefslogtreecommitdiffstats
path: root/test/afb-test
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-09-16 15:30:26 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-10 10:53:48 +0200
commitc541040fb5fa1b5333edb3755914428aa0af36ff (patch)
treed2ab1bc5eb318651d3dfb10d48d542900b66f102 /test/afb-test
parent79bb6f3be1303025a2ed3914c5012ab2c9c08f73 (diff)
Rename test service api to be more discriminant.
Using aftest and aft-aftest api name to self test was difficult because of searching file using the binder process name which could be the same although api name were diffirent. Change-Id: Id14e30024f0b98c29feed5b707ab9dc8b74d3552 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'test/afb-test')
-rw-r--r--test/afb-test/etc/aft-selftest.json (renamed from test/afb-test/etc/aft-aftest-self.json)2
-rw-r--r--test/afb-test/tests/aftTest.lua16
2 files changed, 9 insertions, 9 deletions
diff --git a/test/afb-test/etc/aft-aftest-self.json b/test/afb-test/etc/aft-selftest.json
index f8ebbcd..5a3f1dd 100644
--- a/test/afb-test/etc/aft-aftest-self.json
+++ b/test/afb-test/etc/aft-selftest.json
@@ -4,7 +4,7 @@
"metadata": {
"uid": "Test",
"version": "1.0",
- "api": "aft-aftest",
+ "api": "aft-selftest",
"info": "Binding made to test other bindings",
"require": [
"low-can"
diff --git a/test/afb-test/tests/aftTest.lua b/test/afb-test/tests/aftTest.lua
index 0503ae3..5c11d1d 100644
--- a/test/afb-test/tests/aftTest.lua
+++ b/test/afb-test/tests/aftTest.lua
@@ -97,13 +97,13 @@ _AFT.describe("testAssertNotIsThread", function() _AFT.assertNotIsThread(2) end)
_AFT.describe("testAssertNotIsUserdata", function() _AFT.assertNotIsUserdata(2) end)
function _callback(responseJ) _AFT.assertNotIsNil(responseJ) end
-function _callbackError(responseJ) _AFT.assertStrContains(responseJ.request.info, "verb pingfail unknown within api afTest") end
-
-_AFT.describe("testAssertVerbStatusSuccess",function() _AFT.assertVerbStatusSuccess('afTest', 'ping', {}) end)
-_AFT.describe("testAssertVerbResponseEquals",function() _AFT.assertVerbResponseEquals('afTest', 'ping', {}) end)
-_AFT.describe("testAssertVerbCb",function() _AFT.assertVerbCb('afTest', 'ping', {},_callback) end)
-_AFT.describe("testAssertVerbStatusError",function() _AFT.assertVerbStatusError('afTest', 'pingfail', {}) end)
-_AFT.describe("testAssertVerbResponseEqualsError",function() _AFT.assertVerbResponseEqualsError('afTest', 'nonexistentverb', {},"Ping Binder Daemon fails") end)
-_AFT.describe("testAssertVerbCbError",function() _AFT.assertVerbCbError('afTest', 'pingfail', {},_callbackError) end)
+function _callbackError(responseJ) _AFT.assertStrContains(responseJ.request.info, "verb pingfail unknown within api aft") end
+
+_AFT.describe("testAssertVerbStatusSuccess",function() _AFT.assertVerbStatusSuccess('aft', 'ping', {}) end)
+_AFT.describe("testAssertVerbResponseEquals",function() _AFT.assertVerbResponseEquals('aft', 'ping', {}) end)
+_AFT.describe("testAssertVerbCb",function() _AFT.assertVerbCb('aft', 'ping', {},_callback) end)
+_AFT.describe("testAssertVerbStatusError",function() _AFT.assertVerbStatusError('aft', 'pingfail', {}) end)
+_AFT.describe("testAssertVerbResponseEqualsError",function() _AFT.assertVerbResponseEqualsError('aft', 'nonexistentverb', {},"Ping Binder Daemon fails") end)
+_AFT.describe("testAssertVerbCbError",function() _AFT.assertVerbCbError('aft', 'pingfail', {},_callbackError) end)
_AFT.exitAtEnd()