mirror of
https://github.com/sasjs/core.git
synced 2026-01-04 16:10:06 +00:00
fix: tests for ms_createwebservice and mp_createwebservice
This commit is contained in:
28
tests/crossplatform/mp_createwebservice.test.sas
Normal file
28
tests/crossplatform/mp_createwebservice.test.sas
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
@file
|
||||
@brief Testing ms_createwebservice.sas macro
|
||||
|
||||
<h4> SAS Macros </h4>
|
||||
@li mf_getuniquefileref.sas
|
||||
@li mp_assertscope.sas
|
||||
@li mp_createwebservice.sas
|
||||
|
||||
**/
|
||||
|
||||
%let path=&mcTestAppLoc/mp_createwebservice;
|
||||
%let name=myservice;
|
||||
%let fref=%mf_getuniquefileref();
|
||||
|
||||
data _null_;
|
||||
file &fref lrecl=3000;
|
||||
put '%put hello world;';
|
||||
run;
|
||||
|
||||
%mp_assertscope(SNAPSHOT)
|
||||
%mp_createwebservice(path=&path,name=&name,code=&fref,mdebug=&sasjs_mdebug)
|
||||
%mp_assertscope(COMPARE)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
28
tests/serveronly/ms_createwebservice.test.sas
Normal file
28
tests/serveronly/ms_createwebservice.test.sas
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
@file
|
||||
@brief Testing ms_createwebservice.sas macro
|
||||
|
||||
<h4> SAS Macros </h4>
|
||||
@li mf_getuniquefileref.sas
|
||||
@li mp_assertscope.sas
|
||||
@li ms_createwebservice.sas
|
||||
|
||||
**/
|
||||
|
||||
%let path=&mcTestAppLoc/ms_createwebservice;
|
||||
%let name=myservice;
|
||||
%let fref=%mf_getuniquefileref();
|
||||
|
||||
data _null_;
|
||||
file &fref lrecl=3000;
|
||||
put '%put hello world;';
|
||||
run;
|
||||
|
||||
%mp_assertscope(SNAPSHOT)
|
||||
%ms_createwebservice(path=&path,name=&name,code=&fref,mdebug=&sasjs_mdebug)
|
||||
%mp_assertscope(COMPARE)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
@brief init file for tests
|
||||
|
||||
<h4> SAS Macros </h4>
|
||||
@li mf_uid.sas
|
||||
@li mp_init.sas
|
||||
@li mv_webout.sas
|
||||
|
||||
**/
|
||||
|
||||
/* location in metadata or SAS Drive for temporary files */
|
||||
%let mcTestAppLoc=/Public/temp/macrocore;
|
||||
%let mcTestAppLoc=/tmp/tests/sasjs/core/%mf_uid();
|
||||
|
||||
/* set defaults */
|
||||
%mp_init()
|
||||
|
||||
Reference in New Issue
Block a user