Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mx_createwebservice.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mx_createwebservice macro
4
5 Be sure to run <code>%let mcTestAppLoc=/Public/temp/macrocore;</code> when
6 running in Studio
7
8 <h4> SAS Macros </h4>
9 @li mf_uid.sas
10 @li mp_assert.sas
11 @li mp_assertscope.sas
12 @li mx_createwebservice.sas
13 @li mx_getcode.sas
14
15**/
16
17%let path=&mcTestAppLoc/mx_createwebservice;
18%let name=%mf_uid();
19
20%global test1;
21%let test1=FAIL;
22
23filename ft15f001 temp;
24parmcards4;
25 %let test1=SUCCESS;
26;;;;
27
28%mp_assertscope(SNAPSHOT)
29%mx_createwebservice(path=&path, name=&name)
30%mp_assertscope(COMPARE,
31 desc=mx_createwebservice does not leak scope,
32 outds=work.test_results
33)
34
35/* the artefact is the service, so read it back and run it: a dispatch that
36 returned cleanly having written nothing would leave test1 at FAIL */
37%mx_getcode(&path/&name, outref=testref1)
38%inc testref1/lrecl=1000;
39
40%mp_assert(
41 iftrue=(&test1=SUCCESS),
42 desc=Check the service was created and carries the supplied code
43)