aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/121_json/lib.robot
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2021-05-04 21:43:55 +0200
committerAndrew Lewis <nerf@judo.za.org>2021-05-04 21:52:33 +0200
commita84cecac6bef1211cf8ab245d997b6ac64b6686a (patch)
tree6df6518a5cc60411967a513fa8e5bc418316a1d5 /test/functional/cases/121_json/lib.robot
parentdb4da2c22d159d1a6450b9447ad90e1795e5c535 (diff)
downloadrspamd-a84cecac6bef1211cf8ab245d997b6ac64b6686a.tar.gz
rspamd-a84cecac6bef1211cf8ab245d997b6ac64b6686a.zip
[Test] Use automatically exported variables
Diffstat (limited to 'test/functional/cases/121_json/lib.robot')
-rw-r--r--test/functional/cases/121_json/lib.robot10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/cases/121_json/lib.robot b/test/functional/cases/121_json/lib.robot
index b1ec0ac18..6ae6ae73b 100644
--- a/test/functional/cases/121_json/lib.robot
+++ b/test/functional/cases/121_json/lib.robot
@@ -1,12 +1,12 @@
*** Variables ***
-${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
+${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat
*** Keywords ***
JSON Setup
- New Setup LUA_SCRIPT=${LUA_SCRIPT} URL_TLD=${URL_TLD}
+ New Setup
Stat Test
- @{result} = HTTP GET ${LOCAL_ADDR} ${PORT_CONTROLLER} /stat
+ @{result} = HTTP GET ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_CONTROLLER} /stat
Check JSON ${result}[1]
Should Be Equal As Integers ${result}[0] 200
@@ -14,12 +14,12 @@ History Test
[Arguments] ${rspamc_expected_result}
${result} = Scan Message With Rspamc ${MESSAGE}
Check Rspamc ${result} ${rspamc_expected_result}
- @{result} = HTTP GET ${LOCAL_ADDR} ${PORT_CONTROLLER} /history
+ @{result} = HTTP GET ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_CONTROLLER} /history
Check JSON ${result}[1]
Should Be Equal As Integers ${result}[0] 200
Scan Test
${content} = Get File ${MESSAGE}
- @{result} = HTTP POST ${LOCAL_ADDR} ${PORT_NORMAL} /check ${content}
+ @{result} = HTTP POST ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_NORMAL} /check ${content}
Check JSON ${result}[1]
Should Be Equal As Integers ${result}[0] 200