Loading...
Searching...
No Matches
dirlist.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief testing admin dirlist service - admin gate (security)
4 @details The service requires membership of the DC administrators
5 group. The test suite runs as a member of that group, so the gate
6 passes and the directory listing is returned. (A non-admin negative
7 test would need a second user, which this suite does not have.)
8
9 <h4> SAS Macros </h4>
10 @li mp_assert.sas
11 @li mx_execute.sas
12
13**/
14
15%let _program=&appLoc/services/admin/dirlist;
16
17data work.params;
18 length name $32 value $1000;
19 name='parent';value='/tmp';
20run;
21
22%mx_execute(&_program,
23 viyacontext=&defaultcontext,
24 inputparams=work.params,
25 outlib=web1
26)
27
28%let nobs=0;
29proc sql noprint;
30select count(*) into: nobs from web1.dirlist;
31quit;
32
33%mp_assert(
34 iftrue=(&nobs>0),
35 desc=Admin user gets a directory listing,
36 outds=work.test_results
37)
38
39/**
40 * dump results to the log for offline inspection
41 */
42data _null_;
43 set work.test_results;
44 putlog 'TEST_RESULT_LINE: ' test_result ' - ' test_description;
45run;