diff --git a/sasjs-tests/README.md b/sasjs-tests/README.md index 075e220..cebec2c 100644 --- a/sasjs-tests/README.md +++ b/sasjs-tests/README.md @@ -65,6 +65,7 @@ The code below will work on ALL SAS platforms (Viya, SAS 9 EBI, SASjs Server). ```sas filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; %inc mc; +%let apploc=/Public/app/adapter-tests; filename ft15f001 temp lrecl=1000; parmcards4; %webout(FETCH) @@ -80,7 +81,7 @@ parmcards4; %mend; %x() %webout(CLOSE) ;;;; -%mx_createwebservice(path=/Public/app/common,name=sendObj) +%mx_createwebservice(path=&apploc/services/common,name=sendObj) parmcards4; %webout(FETCH) %webout(OPEN) @@ -95,7 +96,7 @@ parmcards4; %mend; %x() %webout(CLOSE) ;;;; -%mx_createwebservice(path=/Public/app/common,name=sendArr) +%mx_createwebservice(path=&apploc/services/common,name=sendArr) parmcards4; data work.macvars; set sashelp.vmacro; @@ -104,14 +105,14 @@ parmcards4; %webout(OBJ,macvars) %webout(CLOSE) ;;;; -%mx_createwebservice(path=/Public/app/common,name=sendMacVars) +%mx_createwebservice(path=&apploc/services/common,name=sendMacVars) parmcards4; If you can keep your head when all about you Are losing theirs and blaming it on you, If you can trust yourself when all men doubt you, But make allowance for their doubting too; ;;;; -%mx_createwebservice(path=/Public/app/common,name=makeErr) +%mx_createwebservice(path=&apploc/services/common,name=makeErr) parmcards4; %webout(OPEN) data _null_; @@ -120,7 +121,7 @@ data _null_; run; %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. diff --git a/sasjs-tests/public/config.json b/sasjs-tests/public/config.json index 334150a..0521d21 100644 --- a/sasjs-tests/public/config.json +++ b/sasjs-tests/public/config.json @@ -3,10 +3,10 @@ "password": "", "sasJsConfig": { "serverUrl": "", - "appLoc": "/Public/app", - "serverType": "SASVIYA", + "appLoc": "/Public/app/adapter-tests", + "serverType": "SASJS", "debug": false, "contextName": "sasjs adapter compute context", "useComputeApi": true } -} +} \ No newline at end of file diff --git a/sasjs-tests/sasjs/sasjsconfig.json b/sasjs-tests/sasjs/sasjsconfig.json index 8d8aebd..331a467 100644 --- a/sasjs-tests/sasjs/sasjsconfig.json +++ b/sasjs-tests/sasjs/sasjsconfig.json @@ -11,7 +11,7 @@ "name": "4gl", "serverType": "SASJS", "serverUrl": "https://sas9.4gl.io", - "appLoc": "/Public/app/common" + "appLoc": "/Public/app/adapter-tests" } ] } \ No newline at end of file diff --git a/sasjs-tests/src/testSuites/Compute.ts b/sasjs-tests/src/testSuites/Compute.ts index 2f4f75f..8c0e962 100644 --- a/sasjs-tests/src/testSuites/Compute.ts +++ b/sasjs-tests/src/testSuites/Compute.ts @@ -48,7 +48,7 @@ export const computeTests = (adapter: SASjs, appLoc: string): TestSuite => ({ test: () => { const data: any = { table1: [{ col1: 'first col value' }] } return adapter.startComputeJob( - '/Public/app/common/sendArr', + '/Public/app/adapter-tests/services/common/sendArr', data, {}, undefined,