mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-11 01:14:36 +00:00
chore: updating appLoc to /Public/app/adapter-tests in sasjs-tests
This commit is contained in:
@@ -65,6 +65,7 @@ The code below will work on ALL SAS platforms (Viya, SAS 9 EBI, SASjs Server).
|
|||||||
```sas
|
```sas
|
||||||
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
|
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
|
||||||
%inc mc;
|
%inc mc;
|
||||||
|
%let apploc=/Public/app/adapter-tests;
|
||||||
filename ft15f001 temp lrecl=1000;
|
filename ft15f001 temp lrecl=1000;
|
||||||
parmcards4;
|
parmcards4;
|
||||||
%webout(FETCH)
|
%webout(FETCH)
|
||||||
@@ -80,7 +81,7 @@ parmcards4;
|
|||||||
%mend; %x()
|
%mend; %x()
|
||||||
%webout(CLOSE)
|
%webout(CLOSE)
|
||||||
;;;;
|
;;;;
|
||||||
%mx_createwebservice(path=/Public/app/common,name=sendObj)
|
%mx_createwebservice(path=&apploc/services/common,name=sendObj)
|
||||||
parmcards4;
|
parmcards4;
|
||||||
%webout(FETCH)
|
%webout(FETCH)
|
||||||
%webout(OPEN)
|
%webout(OPEN)
|
||||||
@@ -95,7 +96,7 @@ parmcards4;
|
|||||||
%mend; %x()
|
%mend; %x()
|
||||||
%webout(CLOSE)
|
%webout(CLOSE)
|
||||||
;;;;
|
;;;;
|
||||||
%mx_createwebservice(path=/Public/app/common,name=sendArr)
|
%mx_createwebservice(path=&apploc/services/common,name=sendArr)
|
||||||
parmcards4;
|
parmcards4;
|
||||||
data work.macvars;
|
data work.macvars;
|
||||||
set sashelp.vmacro;
|
set sashelp.vmacro;
|
||||||
@@ -104,14 +105,14 @@ parmcards4;
|
|||||||
%webout(OBJ,macvars)
|
%webout(OBJ,macvars)
|
||||||
%webout(CLOSE)
|
%webout(CLOSE)
|
||||||
;;;;
|
;;;;
|
||||||
%mx_createwebservice(path=/Public/app/common,name=sendMacVars)
|
%mx_createwebservice(path=&apploc/services/common,name=sendMacVars)
|
||||||
parmcards4;
|
parmcards4;
|
||||||
If you can keep your head when all about you
|
If you can keep your head when all about you
|
||||||
Are losing theirs and blaming it on you,
|
Are losing theirs and blaming it on you,
|
||||||
If you can trust yourself when all men doubt you,
|
If you can trust yourself when all men doubt you,
|
||||||
But make allowance for their doubting too;
|
But make allowance for their doubting too;
|
||||||
;;;;
|
;;;;
|
||||||
%mx_createwebservice(path=/Public/app/common,name=makeErr)
|
%mx_createwebservice(path=&apploc/services/common,name=makeErr)
|
||||||
parmcards4;
|
parmcards4;
|
||||||
%webout(OPEN)
|
%webout(OPEN)
|
||||||
data _null_;
|
data _null_;
|
||||||
@@ -120,7 +121,7 @@ data _null_;
|
|||||||
run;
|
run;
|
||||||
%webout(CLOSE)
|
%webout(CLOSE)
|
||||||
;;;;
|
;;;;
|
||||||
%mx_createwebservice(path=/Public/app/common,name=invalidJSON)
|
%mx_createwebservice(path=&apploc/services/common,name=invalidJSON)
|
||||||
```
|
```
|
||||||
|
|
||||||
You should now be able to access the tests in your browser at the deployed path on your server.
|
You should now be able to access the tests in your browser at the deployed path on your server.
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
"password": "",
|
"password": "",
|
||||||
"sasJsConfig": {
|
"sasJsConfig": {
|
||||||
"serverUrl": "",
|
"serverUrl": "",
|
||||||
"appLoc": "/Public/app",
|
"appLoc": "/Public/app/adapter-tests",
|
||||||
"serverType": "SASVIYA",
|
"serverType": "SASJS",
|
||||||
"debug": false,
|
"debug": false,
|
||||||
"contextName": "sasjs adapter compute context",
|
"contextName": "sasjs adapter compute context",
|
||||||
"useComputeApi": true
|
"useComputeApi": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
"name": "4gl",
|
"name": "4gl",
|
||||||
"serverType": "SASJS",
|
"serverType": "SASJS",
|
||||||
"serverUrl": "https://sas9.4gl.io",
|
"serverUrl": "https://sas9.4gl.io",
|
||||||
"appLoc": "/Public/app/common"
|
"appLoc": "/Public/app/adapter-tests"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ export const computeTests = (adapter: SASjs, appLoc: string): TestSuite => ({
|
|||||||
test: () => {
|
test: () => {
|
||||||
const data: any = { table1: [{ col1: 'first col value' }] }
|
const data: any = { table1: [{ col1: 'first col value' }] }
|
||||||
return adapter.startComputeJob(
|
return adapter.startComputeJob(
|
||||||
'/Public/app/common/sendArr',
|
'/Public/app/adapter-tests/services/common/sendArr',
|
||||||
data,
|
data,
|
||||||
{},
|
{},
|
||||||
undefined,
|
undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user