-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
81 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"userCredentials":{"username":"test-superUser"},"authorities":[]} |
1 change: 1 addition & 0 deletions
1
search/cachedApiCalls/sharing_9f4d4646ecf845e13812ec667c2543a2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"meta":{"allowPublicAccess":false,"allowExternalAccess":false},"object":{"id":"XFjvfUkYdp1","name":"0001_KBC_TX_CURR_ARTDISP_3 TO 5 months","displayName":"0001_KBC_TX_CURR_ARTDISP_3 TO 5 months","publicAccess":"r-------","user":{"id":"bRlrnaZAmgw","name":"KOUADIO BOITINI CHARLES"},"userGroupAccesses":[],"userAccesses":[],"externalAccess":false}} |
1 change: 0 additions & 1 deletion
1
search/cachedApiCalls/sqlViews_VisNavgSrch_data_7fc4316f8ee0005344390df4c3dcb79a.json
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import datimApi from "@pepfar-react-lib/datim-api"; | ||
import {renderSearch} from "./lib/shared.testLib"; | ||
|
||
let searchUrl:string = `/sqlViews/VisNavgSrch/data?paging=false&var=uid:_,favoriteName:_,user:_,visualizationType:_,minViewCount:-1,maxViewCount:9223372036854776000,lastViewedMinDate:1969-01-01,lastViewedMaxDate:2100-01-01,limitViewsMinDate:1969-01-01,limitViewsMaxDate:2100-01-01,limit:100,includeNeverViewed:1` | ||
let searchResponse = { | ||
"listGrid": { | ||
"rows": [ | ||
[ | ||
"n0CaxnRk0Pn", | ||
"test visualization", | ||
1, | ||
"2022-01-01", | ||
"chart", | ||
"", | ||
"enhanced" | ||
] | ||
] | ||
} | ||
} | ||
|
||
test(`8 > Non SuperUser share`, async ()=>{ | ||
renderSearch(); | ||
datimApi.registerGetMock(searchUrl,) | ||
search(); | ||
}) | ||
|
||
function search() { | ||
throw new Error("Function not implemented."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// import {loadUsers} from "@pepfar-react-lib/dhis2-loader/jsbuild"; | ||
let loadUsers = require("@pepfar-react-lib/dhis2-loader").loadUsers; | ||
let superUser = { | ||
id: 'testSuperUs', | ||
name: 'Test SuperUser', | ||
firstName: 'Test', | ||
surname:'SuperUser', | ||
userCredentials: { | ||
username: 'test-superUser', | ||
password: 'Password123', | ||
}, | ||
authorities: ['ALL'] | ||
}; | ||
let superUser = { | ||
id: 'testSuperUs', | ||
name: 'Test SuperUser', | ||
firstName: 'Test', | ||
surname:'SuperUser', | ||
userCredentials: { | ||
username: 'test-superUser', | ||
password: 'Password123', | ||
}, | ||
authorities: ['ALL'] | ||
} | ||
loadUsers([superUser],'jakub.datim.org','Basic amZsYXNrYTpHcmVlbjE4IQ==') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters